Ports the shuttle console hijack from TG. Tweaks malf AI hijack. (#19018)

* *puts on sunglasses* "I'm in."

* whoops

* Apply suggestions from code review

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* Caching, danger, range, xenomorphs can no longer hijack

* Update code/modules/shuttle/emergency.dm

Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>

* Update code/modules/shuttle/emergency.dm

Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>
Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>
This commit is contained in:
Qwertytoforty
2022-09-13 23:22:19 +01:00
committed by GitHub
co-authored by Luc Sirryan2002 Charlie
parent b8885719f4
commit ae0efa00b5
4 changed files with 147 additions and 15 deletions
+11
View File
@@ -1539,6 +1539,17 @@
/datum/mind/proc/remove_all_antag_datums() //For the Lazy amongst us.
QDEL_LIST(antag_datums)
/// This proc sets the hijack speed for a mob. If greater than zero, they can hijack. Outputs in seconds.
/datum/mind/proc/get_hijack_speed()
var/hijack_speed = 0
if(special_role)
hijack_speed = 15 SECONDS
if(locate(/datum/objective/hijack) in get_all_objectives())
hijack_speed = 10 SECONDS
return hijack_speed
/**
* Returns an antag datum instance if the src mind has the specified `datum_type`. Returns `null` otherwise.
*