From aa6dad1c42f475e8293c7e529a1ed4fddf3570d1 Mon Sep 17 00:00:00 2001 From: Mikeeeyy Date: Sun, 8 Feb 2015 00:20:41 +0000 Subject: [PATCH 1/4] Toggle Slow Zombies --- SQF/dayz_code/init/variables.sqf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SQF/dayz_code/init/variables.sqf b/SQF/dayz_code/init/variables.sqf index b383c0b53..6caa5d536 100644 --- a/SQF/dayz_code/init/variables.sqf +++ b/SQF/dayz_code/init/variables.sqf @@ -574,6 +574,9 @@ if(isNil "dayz_spawnAirCount") then { if(isNil "dayz_zedsAttackVehicles") then { dayz_zedsAttackVehicles = true; }; +if (isNil "DZE_slowZombies") then { + DZE_slowZombies = false; +}; // update objects dayz_updateObjects = ["Plane","Tank","Car", "Helicopter", "Motorcycle", "Ship", "TentStorage", "VaultStorage","LockboxStorage","OutHouse_DZ","Wooden_shed_DZ","WoodShack_DZ","StorageShed_DZ","GunRack_DZ","WoodCrate_DZ","Scaffolding_DZ"]; From 75e674aeedbbc039c4aab3b6d9e92b3e73fa0827 Mon Sep 17 00:00:00 2001 From: Mikeeeyy Date: Sun, 8 Feb 2015 00:23:55 +0000 Subject: [PATCH 2/4] 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*/ From ece508a8d27399fa8f79d4957236c1e99d0abc8e Mon Sep 17 00:00:00 2001 From: Mikeeeyy Date: Sun, 8 Feb 2015 00:26:55 +0000 Subject: [PATCH 3/4] Update zombie_agent.fsm --- SQF/dayz_code/system/zombie_agent.fsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/system/zombie_agent.fsm b/SQF/dayz_code/system/zombie_agent.fsm index 66c4ae9eb..dfbc88292 100644 --- a/SQF/dayz_code/system/zombie_agent.fsm +++ b/SQF/dayz_code/system/zombie_agent.fsm @@ -472,7 +472,7 @@ class FSM "" \n "//Move to target" \n "_agent moveTo _targetPos;" \n - "_speed = if (!isNil "DZE_slowZombies" && {DZE_slowZombies}) then { 2 } else { 10 }; + "_speed = if (!isNil "DZE_slowZombies" && {DZE_slowZombies}) then { 2 } else { 10 };" \n "_agent forceSpeed _speed;" \n "" \n "if (_losCheck == 2) then {" \n From 9d3890cce52644576f5ffa6ef85fe36f58ee19b8 Mon Sep 17 00:00:00 2001 From: Mikeeeyy Date: Sun, 8 Feb 2015 00:28:53 +0000 Subject: [PATCH 4/4] Update zombie_agent.fsm --- SQF/dayz_code/system/zombie_agent.fsm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SQF/dayz_code/system/zombie_agent.fsm b/SQF/dayz_code/system/zombie_agent.fsm index dfbc88292..8560ca6e3 100644 --- a/SQF/dayz_code/system/zombie_agent.fsm +++ b/SQF/dayz_code/system/zombie_agent.fsm @@ -1,7 +1,7 @@ /*%FSM*/ /*%FSM*/ /* -item0[] = {"init",0,4346,-75.000000,-250.000000,25.000000,-200.000000,0.000000,"init"}; +item0[] = {"init",0,250,-75.000000,-250.000000,25.000000,-200.000000,0.000000,"init"}; item1[] = {"End",1,250,175.000000,-250.000000,275.000000,-200.000000,0.000000,"End"}; item2[] = {"wait",4,218,-75.000000,0.000000,25.000000,50.000000,0.000000,"wait"}; item3[] = {"Looking_for_Targ",2,250,-75.000000,75.000000,25.000000,125.000000,0.000000,"Looking for" \n "Target"}; @@ -18,7 +18,7 @@ item13[] = {"",7,210,-29.000006,-29.000004,-20.999996,-20.999996,0.000000,""}; item14[] = {"",7,210,-279.000061,-29.000004,-270.999969,-20.999996,0.000000,""}; item15[] = {"",7,210,-254.000046,146.000000,-245.999954,154.000000,0.000000,""}; item16[] = {"Has_Target",4,218,-150.000000,225.000000,-50.000000,275.000000,1.000000,"Has" \n "Target"}; -item17[] = {"Chase",2,250,-150.000000,300.000000,-50.000000,350.000000,0.000000,"Chase"}; +item17[] = {"Chase",2,4346,-150.000000,300.000000,-50.000000,350.000000,0.000000,"Chase"}; item18[] = {"Time_Check",4,218,50.000000,75.000000,150.000000,125.000000,0.000000,"Time" \n "Check"}; item19[] = {"",7,210,-29.000006,146.000000,-20.999996,154.000000,0.000000,""}; item20[] = {"",7,210,-29.000006,196.000000,-20.999996,204.000000,0.000000,""}; @@ -134,8 +134,8 @@ link71[] = {54,32}; link72[] = {55,7}; link73[] = {56,3}; link74[] = {57,1}; -globals[] = {25.000000,1,0,0,0,640,480,1,98,6316128,1,-542.928589,768.370728,784.378479,-389.521301,983,1030,1}; -window[] = {2,-1,-1,-1,-1,806,26,1234,26,3,1001}; +globals[] = {25.000000,1,0,0,0,640,480,1,98,6316128,1,-542.928589,768.370728,784.378479,-389.521301,983,910,1}; +window[] = {2,-1,-1,-1,-1,962,182,1390,182,3,1001}; *//*%FSM*/ class FSM { @@ -472,7 +472,7 @@ class FSM "" \n "//Move to target" \n "_agent moveTo _targetPos;" \n - "_speed = if (!isNil "DZE_slowZombies" && {DZE_slowZombies}) then { 2 } else { 10 };" \n + "_speed = if (!isNil ""DZE_slowZombies"" && {DZE_slowZombies}) then { 2 } else { 10 };" \n "_agent forceSpeed _speed;" \n "" \n "if (_losCheck == 2) then {" \n @@ -701,7 +701,7 @@ class FSM initState="init"; finalStates[] = { - "End" + "End", }; }; /*%FSM*/