Prototype of Ai tracking in MALF. Need help for testing.

I have currently in need of help for testing out the strings I added in
malf mode, as I'm having trouble booting up the game mode properly.
This commit is contained in:
Laharl Montogmmery
2013-11-19 00:20:58 +01:00
parent 389355f35a
commit fbf6f7485a
@@ -5,7 +5,7 @@
name = "AI malfunction"
config_tag = "malfunction"
antag_flag = BE_MALF
required_players = 20
required_players = 0
required_enemies = 1
recommended_enemies = 1
pre_setup_before_jobs = 1
@@ -31,7 +31,7 @@
//Triumvirate?
if (ticker.triai == 1)
required_enemies = 3
required_players = max(required_enemies+1, required_players) //to prevent issues if players are set too low
//required_players = max(required_enemies+1, required_players) //to prevent issues if players are set too low
return ..()
/datum/game_mode/malfunction/get_players_for_role(var/role = BE_MALF)
@@ -187,6 +187,12 @@
command_alert("Hostile runtimes detected in all station systems, please deactivate your AI to prevent possible damage to its morality core.", "Anomaly Alert")
set_security_level("delta")
for(var/obj/item/weapon/pinpointer/point in world)
for(var/datum/mind/AI_mind in malf_ai)
var/mob/living/silicon/ai/A = AI_mind.current // the current mob the mind owns
if(A.stat != DEAD)
point.the_disk = A
ticker.mode:malf_mode_declared = 1
for(var/datum/mind/AI_mind in ticker.mode:malf_ai)
AI_mind.current.verbs -= /datum/game_mode/malfunction/proc/takeover