Merge pull request #16511 from VOREStation/verb-subsystem

Verb manager subsystem & Speech controller
This commit is contained in:
Heroman3003
2024-11-28 14:43:53 +10:00
committed by GitHub
16 changed files with 460 additions and 1319 deletions
+15 -1
View File
@@ -143,7 +143,21 @@
if("openLink")
src << link(href_list["link"])
..() //redirect to hsrc.Topic()
if (hsrc)
var/datum/real_src = hsrc
if(QDELETED(real_src))
return
//fun fact: Topic() acts like a verb and is executed at the end of the tick like other verbs. So we have to queue it if the server is
//overloaded
if(hsrc && hsrc != holder && DEFAULT_TRY_QUEUE_VERB(VERB_CALLBACK(src, PROC_REF(_Topic), hsrc, href, href_list)))
return
..() //redirect to hsrc.Topic()
///dumb workaround because byond doesnt seem to recognize the Topic() typepath for /datum/proc/Topic() from the client Topic,
///so we cant queue it without this
/client/proc/_Topic(datum/hsrc, href, list/href_list)
return hsrc.Topic(href, href_list)
//This stops files larger than UPLOAD_LIMIT being sent from client to server via input(), client.Import() etc.
/client/AllowUpload(filename, filelength)