AOOC is now added to players upon reconnecting, if they are an antag.

Technically a lazy fix, because the verb should maybe be a mob verb instead, and thus be added automatically. But hey, it works.
This commit is contained in:
skull132
2016-08-14 22:07:04 +03:00
committed by GitHub
parent 1d277e4014
commit 7281e1f951
3 changed files with 24 additions and 0 deletions
+9
View File
@@ -28,3 +28,12 @@
M << "<font color='#960018'><span class='ooc'>" + create_text_tag("aooc", "Antag-OOC:", M.client) + " <EM>[display_name]:</EM> <span class='message'>[msg]</span></span></font>"
log_ooc("(ANTAG) [key] : [msg]")
// Checks if a newly joined player is an antag, and adds the AOOC verb if they are.
// Because they're tied to client objects, this gets removed every time you disconnect.
/client/proc/add_aooc_if_necessary()
if (!src.mob || !src.mob.mind)
return
if (player_is_antag(src.mob.mind))
src.verbs += /client/proc/aooc