From 75e674aeedbbc039c4aab3b6d9e92b3e73fa0827 Mon Sep 17 00:00:00 2001 From: Mikeeeyy Date: Sun, 8 Feb 2015 00:23:55 +0000 Subject: [PATCH] Toggle Slow Zombies --- SQF/dayz_code/system/zombie_agent.fsm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/system/zombie_agent.fsm b/SQF/dayz_code/system/zombie_agent.fsm index 1024fdc36..66c4ae9eb 100644 --- a/SQF/dayz_code/system/zombie_agent.fsm +++ b/SQF/dayz_code/system/zombie_agent.fsm @@ -472,7 +472,8 @@ class FSM "" \n "//Move to target" \n "_agent moveTo _targetPos;" \n - "_agent forceSpeed 10;" \n + "_speed = if (!isNil "DZE_slowZombies" && {DZE_slowZombies}) then { 2 } else { 10 }; + "_agent forceSpeed _speed;" \n "" \n "if (_losCheck == 2) then {" \n " _losCheck = 0;" \n @@ -703,4 +704,4 @@ class FSM "End" }; }; -/*%FSM*/ \ No newline at end of file +/*%FSM*/