mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Deadchat Plays SS13: Ghost Control of Mobs (#20600)
* Add dchat control * adds human support, cleans other things up * Bit of cleanup * actually use the item * minor proc ref mistake, laugh at this user * evil tg strings * Renames defines, adds vv menu item for it * Improve anarchy message formatting * don't go to_chatting tesla energy balls * aa review * Minor cleanups, replace some emotes * Addressing some reviews * Incorporate some checks for deadchat mutes/prefs
This commit is contained in:
@@ -522,3 +522,20 @@
|
||||
projectile_angle += angle_to_projectile / (distance ** 2)
|
||||
P.damage += 10 / distance
|
||||
P.set_angle(projectile_angle)
|
||||
|
||||
/obj/singularity/proc/end_deadchat_plays()
|
||||
move_self = TRUE
|
||||
|
||||
|
||||
/obj/singularity/deadchat_plays(mode = DEADCHAT_DEMOCRACY_MODE, cooldown = 12 SECONDS)
|
||||
. = AddComponent(/datum/component/deadchat_control/cardinal_movement, mode, list(), cooldown, CALLBACK(src, TYPE_PROC_REF(/atom/movable, stop_deadchat_plays)))
|
||||
|
||||
if(. == COMPONENT_INCOMPATIBLE)
|
||||
return
|
||||
|
||||
move_self = FALSE
|
||||
|
||||
|
||||
/obj/singularity/deadchat_controlled/Initialize(mapload, starting_energy)
|
||||
. = ..()
|
||||
deadchat_plays(mode = DEADCHAT_DEMOCRACY_MODE)
|
||||
|
||||
Reference in New Issue
Block a user