From ac79d91ca0df98b3b9bc3240157a1bcdcb5f95c6 Mon Sep 17 00:00:00 2001 From: AirwavesMan Date: Wed, 10 Jun 2020 17:03:31 +0200 Subject: [PATCH] Move unused functions to another folder --- CHANGE LOG 1.0.7.txt | 1 + .../Configs/CfgVehicles/Zeds/WildZeds.hpp | 2 +- SQF/dayz_code/init/compiles.sqf | 41 +--- SQF/dayz_code/old/Readme.txt | 26 +++ .../{ => old}/achievements/achievements.sqf | 0 .../achievements/achievementsMonitor.sqf | 0 .../achievements/achievementsServer.sqf | 0 .../{init => old}/achievements_init.sqf | 6 +- .../{compile => old}/fence_handleDam.sqf | 0 .../{compile => old}/fn_buildCamera.sqf | 0 .../{compile => old}/fn_collisions.sqf | 0 .../{compile => old}/fn_curTimeStr.sqf | 0 .../{compile => old}/fn_niceSpot.sqf | 0 .../{system => old}/fn_swarmagent.fsm | 0 .../{compile => old}/fn_updateCraftUI.sqf | 0 .../{actions => old}/object_build.sqf | 0 .../{compile => old}/object_cargoCheck.sqf | 0 .../object_upgradeFireplace.sqf | 0 .../player_buildPlaceables.sqf | 4 +- .../{actions => old}/player_buildVanilla.sqf | 4 +- .../{actions => old}/player_checkRecipe.sqf | 0 .../player_craftItemVanilla.sqf | 0 .../{actions => old}/player_craftitemGUI.sqf | 0 SQF/dayz_code/old/player_fixTools.sqf | 47 ++++ SQF/dayz_code/old/player_makefire.sqf | 97 +++++++++ .../{actions => old}/player_takeArrow.sqf | 0 .../{compile => old}/player_taskHint.sqf | 0 .../{compile => old}/player_weaponCheck.sqf | 0 .../player_zombieSwarmAttack.sqf | 0 .../processAccessCode.sqf | 0 .../processSetAccessCode.sqf | 0 .../scheduler => old}/sched_achievement.sqf | 0 .../sched_humanityChange.sqf | 0 .../{compile => old}/swarm_generate.sqf | 2 +- .../{system => old}/zombie_wildagent.fsm | 0 SQF/dayz_code/system/scheduler/sched_init.sqf | 2 - .../dayz_server/system/zombie_wildagent.fsm | 203 ------------------ 37 files changed, 185 insertions(+), 250 deletions(-) create mode 100644 SQF/dayz_code/old/Readme.txt rename SQF/dayz_code/{ => old}/achievements/achievements.sqf (100%) rename SQF/dayz_code/{ => old}/achievements/achievementsMonitor.sqf (100%) rename SQF/dayz_code/{ => old}/achievements/achievementsServer.sqf (100%) rename SQF/dayz_code/{init => old}/achievements_init.sqf (62%) rename SQF/dayz_code/{compile => old}/fence_handleDam.sqf (100%) rename SQF/dayz_code/{compile => old}/fn_buildCamera.sqf (100%) rename SQF/dayz_code/{compile => old}/fn_collisions.sqf (100%) rename SQF/dayz_code/{compile => old}/fn_curTimeStr.sqf (100%) rename SQF/dayz_code/{compile => old}/fn_niceSpot.sqf (100%) rename SQF/dayz_code/{system => old}/fn_swarmagent.fsm (100%) rename SQF/dayz_code/{compile => old}/fn_updateCraftUI.sqf (100%) rename SQF/dayz_code/{actions => old}/object_build.sqf (100%) rename SQF/dayz_code/{compile => old}/object_cargoCheck.sqf (100%) rename SQF/dayz_code/{actions => old}/object_upgradeFireplace.sqf (100%) rename SQF/dayz_code/{actions => old}/player_buildPlaceables.sqf (96%) rename SQF/dayz_code/{actions => old}/player_buildVanilla.sqf (97%) rename SQF/dayz_code/{actions => old}/player_checkRecipe.sqf (100%) rename SQF/dayz_code/{actions => old}/player_craftItemVanilla.sqf (100%) rename SQF/dayz_code/{actions => old}/player_craftitemGUI.sqf (100%) create mode 100644 SQF/dayz_code/old/player_fixTools.sqf create mode 100644 SQF/dayz_code/old/player_makefire.sqf rename SQF/dayz_code/{actions => old}/player_takeArrow.sqf (100%) rename SQF/dayz_code/{compile => old}/player_taskHint.sqf (100%) rename SQF/dayz_code/{compile => old}/player_weaponCheck.sqf (100%) rename SQF/dayz_code/{compile => old}/player_zombieSwarmAttack.sqf (100%) rename SQF/dayz_code/{eventHandlers => old}/processAccessCode.sqf (100%) rename SQF/dayz_code/{eventHandlers => old}/processSetAccessCode.sqf (100%) rename SQF/dayz_code/{system/scheduler => old}/sched_achievement.sqf (100%) rename SQF/dayz_code/{system/scheduler => old}/sched_humanityChange.sqf (100%) rename SQF/dayz_code/{compile => old}/swarm_generate.sqf (92%) rename SQF/dayz_code/{system => old}/zombie_wildagent.fsm (100%) delete mode 100644 Server Files/Archive/dayz_server/system/zombie_wildagent.fsm diff --git a/CHANGE LOG 1.0.7.txt b/CHANGE LOG 1.0.7.txt index 194e21f52..e518ddf11 100644 --- a/CHANGE LOG 1.0.7.txt +++ b/CHANGE LOG 1.0.7.txt @@ -121,4 +121,5 @@ [REMOVED] DayZ Vanilla Crafting - all recipes were moved to Epoch Crafting. (8315d899) @AirwavesMan [INFO] Synced with DayZMod upstream up to commit fe063a8 +[INFO] Removed functions can be found under "dayz_code\old". [INFO] Big thanks to the following authors which allowed us to use their content: SumrakDZN, Icewindo, Brainbug, lennard91, stagler, SyNcRoNiCzZ, Sam563, Alwarren, Robert Hammer, Marseille77 diff --git a/SQF/dayz_code/Configs/CfgVehicles/Zeds/WildZeds.hpp b/SQF/dayz_code/Configs/CfgVehicles/Zeds/WildZeds.hpp index c1529ff6e..d15c1b60c 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Zeds/WildZeds.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Zeds/WildZeds.hpp @@ -23,7 +23,7 @@ class WildZombie_Base : Zed_Base { forcedSpeed = 6; class Eventhandlers { - init = "_this execFSM ""\z\AddOns\dayz_code\system\zombie_wildagent.fsm"""; + init = "_this execFSM ""\z\AddOns\dayz_code\old\zombie_wildagent.fsm"""; local = "_z = _this select 0; if (!(_this select 1)) exitWith {}; if (isServer) exitWith { _z call sched_co_deleteVehicle; }; [_z,true] execFSM '\z\AddOns\dayz_code\system\zombie_wildagent.fsm';"; HandleDamage = "_this call local_zombieDamage;"; Killed = "[_this,'zombieKills'] call local_eventKill;"; diff --git a/SQF/dayz_code/init/compiles.sqf b/SQF/dayz_code/init/compiles.sqf index c482b4db7..cf5f9ef66 100644 --- a/SQF/dayz_code/init/compiles.sqf +++ b/SQF/dayz_code/init/compiles.sqf @@ -1,8 +1,6 @@ if (isServer) then { call compile preprocessFileLineNumbers "\z\addons\dayz_server\init\server_functions.sqf"; fnc_veh_setFixServer = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\veh_setFixServer.sqf"; //process the hit as a NORMAL damage (useful for persistent vehicles) - pvs_processSetAccessCode = compile preprocessFile "\z\addons\dayz_code\eventHandlers\processSetAccessCode.sqf"; - pvs_processAccessCode = compile preprocessFile "\z\addons\dayz_code\eventHandlers\processAccessCode.sqf"; server_spawnTraders = compile preprocessFile "\z\addons\dayz_server\compile\server_spawnTraders.sqf"; server_updateGroup = compile preprocessFileLineNumbers "\z\addons\dayz_code\groups\server_updateGroup.sqf"; }; @@ -36,8 +34,7 @@ if (!isDedicated) then { player_temp_calculation = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_temperatur.sqf"; //Temperatur System //TeeChange player_weaponFiredNear = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_weaponFiredNear.sqf"; player_spawnCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_spawnCheck.sqf"; - building_spawnLoot = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\building_spawnLoot.sqf"; - //player_taskHint = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_taskHint.sqf"; + building_spawnLoot = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\building_spawnLoot.sqf"; building_spawnZombies = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\building_spawnZombies.sqf"; player_fired = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_fired.sqf"; //Runs when player fires. Alerts nearby Zeds depending on calibre and audial rating player_packTent = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_packTent.sqf"; @@ -56,21 +53,15 @@ if (!isDedicated) then { player_countMagazines = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_countMagazines.sqf"; player_countMagazinesWBackpack = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_countMagazinesWBackpack.sqf"; player_forceSave = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_forceSave.sqf"; - //player_destroyTent = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_destroyTent.sqf"; vehicle_getOut = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\vehicle_getOut.sqf"; + //Objects object_setpitchbank = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_setpitchbank.sqf"; object_monitorGear = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_monitorGear.sqf"; - - //Collisions - //fn_collisions = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_collisions.sqf"; - //Zombies zombie_findTargetAgent = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\zombie_findTargetAgent.sqf"; zombie_loiter = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\zombie_loiter.sqf"; //Server compile, used for loiter behaviour - zombie_generate = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\zombie_generate.sqf"; //Server compile, used for loiter behaviours - //zombie_generateSwarm = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\swarm_generate.sqf"; - //player_zombieSwarmAttack = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieSwarmAttack.sqf"; + zombie_generate = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\zombie_generate.sqf"; //Server compile, used for loiter behaviours // Medical player_medBandage = compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\publicEH\medBandaged.sqf"; @@ -118,21 +109,7 @@ if (!isDedicated) then { player_tearClothes = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_tearClothes.sqf"; player_sharpen = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_sharpen.sqf"; player_butcher = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\gather_meat.sqf"; - player_pushPlane = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_pushPlane.sqf"; - - //player_fixHatchet = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_fixTools.sqf"; - //player_repairVehicle = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\repair_vehicle.sqf"; - //player_salvageVehicle = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\salvage_vehicle.sqf"; - //player_makeFire = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_makefire.sqf"; - //player_buildVanilla = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_buildVanilla.sqf"; - //player_buildPlaceables = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_buildPlaceables.sqf"; - //fn_buildCamera = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_buildCamera.sqf"; - //object_build = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\object_build.sqf"; - //object_upgradeFireplace = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\object_upgradeFireplace.sqf"; - //player_sleep = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_sleep.sqf"; - //player_takearrow = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_takeArrow.sqf"; - //player_goFishing = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_goFishing.sqf"; - //object_remove = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\remove.sqf"; + player_pushPlane = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_pushPlane.sqf"; //ui player_toggleSoundMute = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_toggleSoundMute.sqf"; @@ -158,10 +135,6 @@ if (!isDedicated) then { //Crafting player_craftItem = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_craftItem.sqf"; - //fn_updateCraftUI = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_updateCraftUI.sqf"; - //player_craftItemVanilla = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_craftItemVanilla.sqf"; - //player_craftItemGUI = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_craftItemGUI.sqf"; - //player_checkRecipe = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_checkRecipe.sqf"; // EPOCH ADDITIONS dayz_autoRunOff = {dayz_autoRun = false; terminate dayz_autoRunThread; if (speed player > 0) then {player playActionNow "Stop"};}; @@ -718,7 +691,7 @@ fnc_spawnObjects = compile preprocessFileLineNumbers "\z\addons\dayz_code\compil object_getHit = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_getHit.sqf"; //gets the hit value for a HitPoint (i.e. HitLegs) against the selection (i.e. "legs"), returns the value object_setHit = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_setHit.sqf"; //process the hit as a NORMAL damage (useful for persistent vehicles) object_processHit = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_processHit.sqf"; //process the hit in the REVO damage system (records and sets hit) -//object_cargoCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_cargoCheck.sqf"; //Run by the player or server to monitor changes in cargo contents + // Vehicle damage fix fnc_veh_handleDam = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\veh_handleDam.sqf"; fnc_veh_handleKilled = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\veh_handleKilled.sqf"; @@ -732,8 +705,6 @@ local_gutObject = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile local_zombieDamage = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandlerZ.sqf"; //Generated by the client who created a zombie to track damage local_setFuel = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_setFuel.sqf"; //Generated when someone refuels a vehicle local_eventKill = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_eventKill.sqf"; //Generated when something is killed -//player_weaponCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_weaponCheck.sqf"; //Run by the player or server to monitor whether they have picked up a new weapon -//curTimeStr = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_curTimeStr.sqf"; player_humanityChange = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_humanityChange.sqf"; //New player_humanityCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_humanityCheck.sqf"; //Old player_projectileNear = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_projectileNear.sqf"; @@ -742,13 +713,11 @@ fn_selectRandomLocation = compile preprocessFileLineNumbers "\z\addons\dayz_code fn_addCargo = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_addCargo.sqf"; fn_chance = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_selectRandomChance.sqf"; fn_getModelName = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_getModelName.sqf"; -//fn_niceSpot = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_niceSpot.sqf"; fnc_Obj_FenceHandleDam = {}; object_roadFlare = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_roadFlare.sqf"; fn_shuffleArray = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_shuffleArray.sqf"; zombie_initialize = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\zombie_initialize.sqf"; call compile preprocessFileLineNumbers "\z\addons\dayz_code\traps\init.sqf"; -//call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\achievements_init.sqf"; //start achievements_init fnc_fieldOfView = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_fieldOfView.sqf"; //object_pickupAction and object_BackpackAction needs to be compiled for server too, since backpacks and weaponholders can be spawned from the server object_pickupAction = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\pickupActions\object_pickupAction.sqf"; diff --git a/SQF/dayz_code/old/Readme.txt b/SQF/dayz_code/old/Readme.txt new file mode 100644 index 000000000..1b8b82870 --- /dev/null +++ b/SQF/dayz_code/old/Readme.txt @@ -0,0 +1,26 @@ +Folder for old scripts that are no longer used by epoch. All scripts can still be used without moving it to the missionfile. + +//fn_collisions = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\fn_collisions.sqf"; +//zombie_generateSwarm = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\swarm_generate.sqf"; +//player_zombieSwarmAttack = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\player_zombieSwarmAttack.sqf"; +//player_fixHatchet = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\player_fixTools.sqf"; +//player_makeFire = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\player_makefire.sqf"; +//player_buildVanilla = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\player_buildVanilla.sqf"; +//player_buildPlaceables = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\player_buildPlaceables.sqf"; +//fn_buildCamera = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\fn_buildCamera.sqf"; +//object_build = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\object_build.sqf"; +//object_upgradeFireplace = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\object_upgradeFireplace.sqf"; +//player_takearrow = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\player_takeArrow.sqf"; +//fn_updateCraftUI = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\fn_updateCraftUI.sqf"; +//player_craftItemVanilla = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\player_craftItemVanilla.sqf"; +//player_craftItemGUI = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\player_craftItemGUI.sqf"; +//player_checkRecipe = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\player_checkRecipe.sqf"; +//pvs_processSetAccessCode = compile preprocessFile "\z\addons\dayz_code\old\processSetAccessCode.sqf"; +//pvs_processAccessCode = compile preprocessFile "\z\addons\dayz_code\old\processAccessCode.sqf"; +//player_taskHint = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\player_taskHint.sqf"; +//object_cargoCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\object_cargoCheck.sqf"; +//player_weaponCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\player_weaponCheck.sqf"; +//curTimeStr = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\fn_curTimeStr.sqf"; +//fn_niceSpot = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\fn_niceSpot.sqf"; +//call compile preprocessFileLineNumbers "\z\addons\dayz_code\old\achievements_init.sqf"; +//fnc_Obj_FenceHandleDam = compile preprocessFileLineNumbers "\z\addons\dayz_code\old\fence_handleDam.sqf"; \ No newline at end of file diff --git a/SQF/dayz_code/achievements/achievements.sqf b/SQF/dayz_code/old/achievements/achievements.sqf similarity index 100% rename from SQF/dayz_code/achievements/achievements.sqf rename to SQF/dayz_code/old/achievements/achievements.sqf diff --git a/SQF/dayz_code/achievements/achievementsMonitor.sqf b/SQF/dayz_code/old/achievements/achievementsMonitor.sqf similarity index 100% rename from SQF/dayz_code/achievements/achievementsMonitor.sqf rename to SQF/dayz_code/old/achievements/achievementsMonitor.sqf diff --git a/SQF/dayz_code/achievements/achievementsServer.sqf b/SQF/dayz_code/old/achievements/achievementsServer.sqf similarity index 100% rename from SQF/dayz_code/achievements/achievementsServer.sqf rename to SQF/dayz_code/old/achievements/achievementsServer.sqf diff --git a/SQF/dayz_code/init/achievements_init.sqf b/SQF/dayz_code/old/achievements_init.sqf similarity index 62% rename from SQF/dayz_code/init/achievements_init.sqf rename to SQF/dayz_code/old/achievements_init.sqf index 175c5be98..f198fcdc5 100644 --- a/SQF/dayz_code/init/achievements_init.sqf +++ b/SQF/dayz_code/old/achievements_init.sqf @@ -3,19 +3,19 @@ if (isDedicated) then { achievementNewDB = true; // true = object_data table (1.8.x), false = instance_deployable table (1.7.x) - call compile preprocessFileLineNumbers "\z\addons\dayz_code\achievements\achievementsServer.sqf"; + call compile preprocessFileLineNumbers "\z\addons\dayz_code\old\achievements\achievementsServer.sqf"; "achievement" addPublicVariableEventHandler {[_this select 1] call achievementServer}; }; // Client only if (!isDedicated) then { - call compile preprocessFileLineNumbers "\z\addons\dayz_code\achievements\achievements.sqf"; + call compile preprocessFileLineNumbers "\z\addons\dayz_code\old\achievements\achievements.sqf"; // Allow server events to trigger the OSD "achievementClientPV" addPublicVariableEventHandler {[_this select 1] call achievementClientMsg}; // Start the mustyMonitor - [] execVM "\z\addons\dayz_code\achievements\achievementsMonitor.sqf"; + [] execVM "\z\addons\dayz_code\old\achievements\achievementsMonitor.sqf"; }; diff --git a/SQF/dayz_code/compile/fence_handleDam.sqf b/SQF/dayz_code/old/fence_handleDam.sqf similarity index 100% rename from SQF/dayz_code/compile/fence_handleDam.sqf rename to SQF/dayz_code/old/fence_handleDam.sqf diff --git a/SQF/dayz_code/compile/fn_buildCamera.sqf b/SQF/dayz_code/old/fn_buildCamera.sqf similarity index 100% rename from SQF/dayz_code/compile/fn_buildCamera.sqf rename to SQF/dayz_code/old/fn_buildCamera.sqf diff --git a/SQF/dayz_code/compile/fn_collisions.sqf b/SQF/dayz_code/old/fn_collisions.sqf similarity index 100% rename from SQF/dayz_code/compile/fn_collisions.sqf rename to SQF/dayz_code/old/fn_collisions.sqf diff --git a/SQF/dayz_code/compile/fn_curTimeStr.sqf b/SQF/dayz_code/old/fn_curTimeStr.sqf similarity index 100% rename from SQF/dayz_code/compile/fn_curTimeStr.sqf rename to SQF/dayz_code/old/fn_curTimeStr.sqf diff --git a/SQF/dayz_code/compile/fn_niceSpot.sqf b/SQF/dayz_code/old/fn_niceSpot.sqf similarity index 100% rename from SQF/dayz_code/compile/fn_niceSpot.sqf rename to SQF/dayz_code/old/fn_niceSpot.sqf diff --git a/SQF/dayz_code/system/fn_swarmagent.fsm b/SQF/dayz_code/old/fn_swarmagent.fsm similarity index 100% rename from SQF/dayz_code/system/fn_swarmagent.fsm rename to SQF/dayz_code/old/fn_swarmagent.fsm diff --git a/SQF/dayz_code/compile/fn_updateCraftUI.sqf b/SQF/dayz_code/old/fn_updateCraftUI.sqf similarity index 100% rename from SQF/dayz_code/compile/fn_updateCraftUI.sqf rename to SQF/dayz_code/old/fn_updateCraftUI.sqf diff --git a/SQF/dayz_code/actions/object_build.sqf b/SQF/dayz_code/old/object_build.sqf similarity index 100% rename from SQF/dayz_code/actions/object_build.sqf rename to SQF/dayz_code/old/object_build.sqf diff --git a/SQF/dayz_code/compile/object_cargoCheck.sqf b/SQF/dayz_code/old/object_cargoCheck.sqf similarity index 100% rename from SQF/dayz_code/compile/object_cargoCheck.sqf rename to SQF/dayz_code/old/object_cargoCheck.sqf diff --git a/SQF/dayz_code/actions/object_upgradeFireplace.sqf b/SQF/dayz_code/old/object_upgradeFireplace.sqf similarity index 100% rename from SQF/dayz_code/actions/object_upgradeFireplace.sqf rename to SQF/dayz_code/old/object_upgradeFireplace.sqf diff --git a/SQF/dayz_code/actions/player_buildPlaceables.sqf b/SQF/dayz_code/old/player_buildPlaceables.sqf similarity index 96% rename from SQF/dayz_code/actions/player_buildPlaceables.sqf rename to SQF/dayz_code/old/player_buildPlaceables.sqf index e318b27e3..9e0b90ce3 100644 --- a/SQF/dayz_code/actions/player_buildPlaceables.sqf +++ b/SQF/dayz_code/old/player_buildPlaceables.sqf @@ -260,8 +260,8 @@ while {Dayz_constructionContext select 4} do { _sfx = if (_object isKindOf "Land_A_tent") then {"tentunpack"} else {"repair"}; // placement is fine, enable "Build" in the menu - _actionBuild = player addAction [localize "str_player_build_complete", "\z\addons\dayz_code\actions\object_build.sqf", [_object, _requiredParts , _classname, _text, true, 20, _sfx], 1, true, true, "", "0 != count Dayz_constructionContext"]; - _actionCancel = player addAction [localize "str_player_build_cancel", "\z\addons\dayz_code\actions\object_build.sqf", [_object, _requiredParts , _classname, _text, false, 0, "none"], 1, true, true, "", "0 != count Dayz_constructionContext"]; + _actionBuild = player addAction [localize "str_player_build_complete", "\z\addons\dayz_code\old\object_build.sqf", [_object, _requiredParts , _classname, _text, true, 20, _sfx], 1, true, true, "", "0 != count Dayz_constructionContext"]; + _actionCancel = player addAction [localize "str_player_build_cancel", "\z\addons\dayz_code\old\object_build.sqf", [_object, _requiredParts , _classname, _text, false, 0, "none"], 1, true, true, "", "0 != count Dayz_constructionContext"]; }; } else { if (!_actionBuildHidden) then { diff --git a/SQF/dayz_code/actions/player_buildVanilla.sqf b/SQF/dayz_code/old/player_buildVanilla.sqf similarity index 97% rename from SQF/dayz_code/actions/player_buildVanilla.sqf rename to SQF/dayz_code/old/player_buildVanilla.sqf index a44a4fae2..2dc403fec 100644 --- a/SQF/dayz_code/actions/player_buildVanilla.sqf +++ b/SQF/dayz_code/old/player_buildVanilla.sqf @@ -359,8 +359,8 @@ while {Dayz_constructionContext select 4} do { _actionBuildHidden = false; player removeAction _actionCancel; _sfx = if (_object isKindOf "Land_A_tent") then {"tentunpack"} else {"repair"}; - _actionBuild = player addAction [localize "str_player_build_complete", "\z\addons\dayz_code\actions\object_build.sqf", [_object, _requiredParts , _classname, _text, true, 20, _sfx], 1, true, true, "", "0 != count Dayz_constructionContext"]; - _actionCancel = player addAction [localize "str_player_build_cancel", "\z\addons\dayz_code\actions\object_build.sqf", [_object, _requiredParts , _classname, _text, false, 0, "none"], 1, true, true, "", "0 != count Dayz_constructionContext"]; + _actionBuild = player addAction [localize "str_player_build_complete", "\z\addons\dayz_code\old\object_build.sqf", [_object, _requiredParts , _classname, _text, true, 20, _sfx], 1, true, true, "", "0 != count Dayz_constructionContext"]; + _actionCancel = player addAction [localize "str_player_build_cancel", "\z\addons\dayz_code\old\object_build.sqf", [_object, _requiredParts , _classname, _text, false, 0, "none"], 1, true, true, "", "0 != count Dayz_constructionContext"]; }; } else { if (!_actionBuildHidden) then { diff --git a/SQF/dayz_code/actions/player_checkRecipe.sqf b/SQF/dayz_code/old/player_checkRecipe.sqf similarity index 100% rename from SQF/dayz_code/actions/player_checkRecipe.sqf rename to SQF/dayz_code/old/player_checkRecipe.sqf diff --git a/SQF/dayz_code/actions/player_craftItemVanilla.sqf b/SQF/dayz_code/old/player_craftItemVanilla.sqf similarity index 100% rename from SQF/dayz_code/actions/player_craftItemVanilla.sqf rename to SQF/dayz_code/old/player_craftItemVanilla.sqf diff --git a/SQF/dayz_code/actions/player_craftitemGUI.sqf b/SQF/dayz_code/old/player_craftitemGUI.sqf similarity index 100% rename from SQF/dayz_code/actions/player_craftitemGUI.sqf rename to SQF/dayz_code/old/player_craftitemGUI.sqf diff --git a/SQF/dayz_code/old/player_fixTools.sqf b/SQF/dayz_code/old/player_fixTools.sqf new file mode 100644 index 000000000..b750b7ac8 --- /dev/null +++ b/SQF/dayz_code/old/player_fixTools.sqf @@ -0,0 +1,47 @@ +//fixHatchet old file +private ["_tool","_tape","_fixedItem","_config","_dName","_handle","_finished"]; + +_tool = _this; +_config = configFile >> "CfgWeapons" >> _tool; +_fixedItem = getText(_config >> "fixedTool"); + +_dName = getText(configFile >> "CfgWeapons" >> _fixedItem >> "displayName"); + +//Used for Grip +_tape = "equip_duct_tape"; +//Handle +_handle = "equip_lever"; + +if (dayz_actionInProgress) exitWith { localize "str_player_actionslimit" call dayz_rollingMessages; }; +dayz_actionInProgress = true; + +call gear_ui_init; +closeDialog 0; + +// Check if the player has the tape +if ((_tape in magazines player) && (_handle in magazines player) && (_tool in items player)) then { + [player,"bandage",0,false] call dayz_zombieSpeak; + _finished = ["Medic",1] call fn_loopAction; + if (!_finished) exitWith {}; + + // Check again to make sure player didn't drop item + if ((_tape in magazines player) && (_handle in magazines player) && (_tool in items player)) then { + player removeWeapon _tool; + player removeMagazine _tape; + player removeMagazine _handle; + player addWeapon _fixedItem; + format[localize "str_fixToolSuccess", _dName] call dayz_rollingMessages; + }; +} else { //If the player doesn't have the mats. + if (!(_tape in magazines player)) then { + if (!(_handle in magazines player)) then { + localize "str_fixToolFail" call dayz_rollingMessages; + } else { + localize "str_fixtoolMissingTape" call dayz_rollingMessages; + }; + } else { + localize "str_fixtoolMissingHandle" call dayz_rollingMessages; + }; +}; + +dayz_actionInProgress = false; \ No newline at end of file diff --git a/SQF/dayz_code/old/player_makefire.sqf b/SQF/dayz_code/old/player_makefire.sqf new file mode 100644 index 000000000..4fea9ee1f --- /dev/null +++ b/SQF/dayz_code/old/player_makefire.sqf @@ -0,0 +1,97 @@ +private ["_item","_config","_exit","_text","_booleans","_worldspace","_dir","_location","_fire","_tool","_itemPile","_posASL","_testSea","_finished"]; + +_tool = _this; +call gear_ui_init; +closeDialog 0; + +if (dayz_actionInProgress) exitWith { localize "str_player_actionslimit" call dayz_rollingMessages; }; +dayz_actionInProgress = true; + +_item = "ItemLog"; +_itemPile = "PartWoodPile"; +_config = configFile >> "CfgMagazines" >> _item; +_text = getText (_config >> "displayName"); +_exit = false; + +if (_tool == "PartWoodPile") then { + _exit = true; + {if (_x in DayZ_Ignitors) exitWith {_exit = false};} forEach (items player); +}; +if (_exit) exitWith { + localize "str_fireplace_noMatches" call dayz_rollingMessages; + dayz_actionInProgress = false; +}; + +// item is missing or tools are missing +if (!(_item in magazines player) && !(_itemPile in magazines player)) exitWith { + localize "str_player_22" call dayz_rollingMessages; + dayz_actionInProgress = false; +}; + +_booleans = []; //testonLadder, testSea, testPond, testBuilding, testSlope, testDistance +_worldspace = ["Land_Fire_DZ", player, _booleans] call fn_niceSpot; + +// player on ladder or in a vehicle +if (_booleans select 0) exitWith { + localize "str_player_21" call dayz_rollingMessages; + dayz_actionInProgress = false; +}; + +_testSea = true; +_posASL = getPosASL player; +if ((_booleans select 1) && _posASL select 2 > 2) then { + //Allow building on raised platform 2m+ ASL (like docks) + _testSea = false; + _worldspace = [0,_posASL]; +}; + +// object would be in the water (pool or sea) +if ((_booleans select 1 && _testSea) OR (_booleans select 2)) exitWith { + localize "str_player_26" call dayz_rollingMessages; + dayz_actionInProgress = false; +}; + +if ((count _worldspace) == 2) then { + [player,20,true,(getPosATL player)] call player_alertZombies; + + _finished = ["Medic",1] call fn_loopAction; + if (!_finished or (!(_item in magazines player) && !(_itemPile in magazines player))) exitWith {}; + + if (_item in magazines player) then { + player removeMagazine _item; + } else { + player removeMagazine _itemPile; + }; + _dir = _worldspace select 0; + _location = _worldspace select 1; + + // fireplace location may not be in front of player (but in 99% time it should) + player setDir _dir; + player setPosATL (getPosATL player); + + // Added Nutrition-Factor for work + ["Working",0,[20,40,15,0]] call dayz_NutritionSystem; + + _fire = createVehicle ["Land_Fire_DZ", [0,0,0], [], 0, "CAN_COLLIDE"]; + _fire setDir _dir; + if (_testSea) then { + _fire setPos _location; // follow terrain slope + } else { + _fire setPosASL _location; + }; + player reveal _fire; + [_fire,true] call dayz_inflame; + _fire spawn player_fireMonitor; + + /*if (dayz_playerAchievements select 14 < 1) then { + // Firestarter + dayz_playerAchievements set [14,1]; + achievement = [14, player, dayz_characterID]; + publicVariableServer "achievement"; + };*/ + localize "str_fireplace_01" call dayz_rollingMessages; +} else { + localize "str_fireplace_02" call dayz_rollingMessages; +}; + +dayz_actionInProgress = false; \ No newline at end of file diff --git a/SQF/dayz_code/actions/player_takeArrow.sqf b/SQF/dayz_code/old/player_takeArrow.sqf similarity index 100% rename from SQF/dayz_code/actions/player_takeArrow.sqf rename to SQF/dayz_code/old/player_takeArrow.sqf diff --git a/SQF/dayz_code/compile/player_taskHint.sqf b/SQF/dayz_code/old/player_taskHint.sqf similarity index 100% rename from SQF/dayz_code/compile/player_taskHint.sqf rename to SQF/dayz_code/old/player_taskHint.sqf diff --git a/SQF/dayz_code/compile/player_weaponCheck.sqf b/SQF/dayz_code/old/player_weaponCheck.sqf similarity index 100% rename from SQF/dayz_code/compile/player_weaponCheck.sqf rename to SQF/dayz_code/old/player_weaponCheck.sqf diff --git a/SQF/dayz_code/compile/player_zombieSwarmAttack.sqf b/SQF/dayz_code/old/player_zombieSwarmAttack.sqf similarity index 100% rename from SQF/dayz_code/compile/player_zombieSwarmAttack.sqf rename to SQF/dayz_code/old/player_zombieSwarmAttack.sqf diff --git a/SQF/dayz_code/eventHandlers/processAccessCode.sqf b/SQF/dayz_code/old/processAccessCode.sqf similarity index 100% rename from SQF/dayz_code/eventHandlers/processAccessCode.sqf rename to SQF/dayz_code/old/processAccessCode.sqf diff --git a/SQF/dayz_code/eventHandlers/processSetAccessCode.sqf b/SQF/dayz_code/old/processSetAccessCode.sqf similarity index 100% rename from SQF/dayz_code/eventHandlers/processSetAccessCode.sqf rename to SQF/dayz_code/old/processSetAccessCode.sqf diff --git a/SQF/dayz_code/system/scheduler/sched_achievement.sqf b/SQF/dayz_code/old/sched_achievement.sqf similarity index 100% rename from SQF/dayz_code/system/scheduler/sched_achievement.sqf rename to SQF/dayz_code/old/sched_achievement.sqf diff --git a/SQF/dayz_code/system/scheduler/sched_humanityChange.sqf b/SQF/dayz_code/old/sched_humanityChange.sqf similarity index 100% rename from SQF/dayz_code/system/scheduler/sched_humanityChange.sqf rename to SQF/dayz_code/old/sched_humanityChange.sqf diff --git a/SQF/dayz_code/compile/swarm_generate.sqf b/SQF/dayz_code/old/swarm_generate.sqf similarity index 92% rename from SQF/dayz_code/compile/swarm_generate.sqf rename to SQF/dayz_code/old/swarm_generate.sqf index a92a20040..95a995862 100644 --- a/SQF/dayz_code/compile/swarm_generate.sqf +++ b/SQF/dayz_code/old/swarm_generate.sqf @@ -39,5 +39,5 @@ while {_counter < _amount} do { //[_agent, _position] call zombie_loiter; //Start behavior - _id = [_position,_agent,player] execFSM "\z\AddOns\dayz_code\system\fn_swarmagent.fsm"; + _id = [_position,_agent,player] execFSM "\z\AddOns\dayz_code\old\fn_swarmagent.fsm"; }; diff --git a/SQF/dayz_code/system/zombie_wildagent.fsm b/SQF/dayz_code/old/zombie_wildagent.fsm similarity index 100% rename from SQF/dayz_code/system/zombie_wildagent.fsm rename to SQF/dayz_code/old/zombie_wildagent.fsm diff --git a/SQF/dayz_code/system/scheduler/sched_init.sqf b/SQF/dayz_code/system/scheduler/sched_init.sqf index ecd6f3058..f0a6e025a 100644 --- a/SQF/dayz_code/system/scheduler/sched_init.sqf +++ b/SQF/dayz_code/system/scheduler/sched_init.sqf @@ -11,7 +11,6 @@ call compile preprocessFileLineNumbers (_base+"sched_spawnCheck.sqf"); call compile preprocessFileLineNumbers (_base+"sched_playerActions.sqf"); call compile preprocessFileLineNumbers (_base+"sched_medical.sqf"); call compile preprocessFileLineNumbers (_base+"sched_gui.sqf"); -//call compile preprocessFileLineNumbers (_base+"sched_achievement.sqf"); if (dayz_bleedingeffect != 2) then { call compile preprocessFileLineNumbers (_base+"sched_bloodstains.sqf"); @@ -41,7 +40,6 @@ if (count _list == 0) then { [ 6, 24.18, sched_spawnCheck ], [ 1, 0.63, sched_throwable, sched_throwable_init ], [ 1, 0.33, sched_medical, sched_medical_init ], - //[ 3, 2.70, sched_achievement, sched_achievement_init ], [ 60, 10.44, sched_animals ], [ 10, 5.44, sched_medical_slow ], [ 60, 20.44, sched_newDay ], diff --git a/Server Files/Archive/dayz_server/system/zombie_wildagent.fsm b/Server Files/Archive/dayz_server/system/zombie_wildagent.fsm deleted file mode 100644 index 34278356a..000000000 --- a/Server Files/Archive/dayz_server/system/zombie_wildagent.fsm +++ /dev/null @@ -1,203 +0,0 @@ -/*%FSM*/ -/*%FSM*/ -/* -item0[] = {"init",0,250,-75.000000,-400.000000,25.000000,-350.000000,0.000000,"init"}; -item1[] = {"No_More_Needed",4,218,-250.000000,-250.000000,-150.000000,-200.000000,0.000000,"No More" \n "Needed"}; -item2[] = {"Delay_",2,250,-75.000000,50.000000,25.000000,100.000000,0.000000,"Delay" \n ""}; -item3[] = {"Need_more",4,218,-75.000000,-175.000000,25.000000,-125.000000,3.000000,"Need more"}; -item4[] = {"Spawn",2,250,-75.000000,-100.000000,25.000000,-50.000000,0.000000,"Spawn"}; -item5[] = {"Timeout",4,218,50.000000,-250.000000,150.000000,-200.000000,0.000000,"Timeout"}; -item6[] = {"Return",8,218,-75.000000,-25.000000,25.000000,25.000000,0.000000,"Return"}; -item7[] = {"initialized",4,218,-75.000000,-325.000000,25.000000,-275.000000,0.000000,"initialized"}; -item8[] = {"prepare",2,250,-75.000000,-250.000000,25.000000,-200.000000,0.000000,"prepare"}; -item9[] = {"Check",2,250,-250.000000,-25.000000,-150.000000,25.000000,0.000000,"Check"}; -item10[] = {"",7,210,-204.000000,-154.000000,-196.000000,-146.000000,0.000000,""}; -item11[] = {"Released_Delay_",4,4314,-250.000000,50.000000,-150.000000,100.000000,0.000000,"Released" \n "Delay" \n ""}; -link0[] = {0,7}; -link1[] = {1,8}; -link2[] = {2,11}; -link3[] = {3,4}; -link4[] = {4,6}; -link5[] = {5,8}; -link6[] = {6,2}; -link7[] = {7,8}; -link8[] = {8,3}; -link9[] = {8,5}; -link10[] = {9,10}; -link11[] = {10,1}; -link12[] = {10,3}; -link13[] = {11,9}; -globals[] = {25.000000,1,0,0,0,640,480,1,47,6316128,1,-497.761261,579.685730,295.259521,-641.446960,689,599,1}; -window[] = {2,-1,-1,-32000,-32000,930,150,1479,150,3,707}; -*//*%FSM*/ -class FSM -{ - fsmName = "DayZ Wild Zeds Control"; - class States - { - /*%FSM*/ - class init - { - name = "init"; - init = /*%FSM*/""/*%FSM*/; - precondition = /*%FSM*/""/*%FSM*/; - class Links - { - /*%FSM*/ - class initialized - { - priority = 0.000000; - to="prepare"; - precondition = /*%FSM*/""/*%FSM*/; - condition=/*%FSM*/"!isnil ""bis_fnc_init"""/*%FSM*/; - action=/*%FSM*/"diag_log (""WILD SPAWN: INITIALIZING WILD SPAWN SCRIPT"");" \n - ""/*%FSM*/; - }; - /*%FSM*/ - }; - }; - /*%FSM*/ - /*%FSM*/ - class Delay_ - { - name = "Delay_"; - init = /*%FSM*/"_timeD = diag_tickTime;"/*%FSM*/; - precondition = /*%FSM*/""/*%FSM*/; - class Links - { - /*%FSM*/ - class Released_Delay_ - { - priority = 0.000000; - to="Check"; - precondition = /*%FSM*/""/*%FSM*/; - condition=/*%FSM*/"(diag_tickTime - _timeD) > 5"/*%FSM*/; - action=/*%FSM*/""/*%FSM*/; - }; - /*%FSM*/ - }; - }; - /*%FSM*/ - /*%FSM*/ - class Spawn - { - name = "Spawn"; - init = /*%FSM*/"_timeN = diag_tickTime;" \n - "" \n - "" \n - "_tmp = [_unitTypes, _amount2Spawn];" \n - "_waiting = _tmp call server_Wildgenerate;" \n - "" \n - "" \n - "" \n - "" \n - ""/*%FSM*/; - precondition = /*%FSM*/""/*%FSM*/; - class Links - { - /*%FSM*/ - class Return - { - priority = 0.000000; - to="Delay_"; - precondition = /*%FSM*/""/*%FSM*/; - condition=/*%FSM*/"_waiting"/*%FSM*/; - action=/*%FSM*/""/*%FSM*/; - }; - /*%FSM*/ - }; - }; - /*%FSM*/ - /*%FSM*/ - class prepare - { - name = "prepare"; - init = /*%FSM*/"_timeN = diag_tickTime;" \n - "_spawnmore = false;" \n - "_amount2Spawn = 100;" \n - "_totalamount=1000;" \n - "_unitTypes = [""Wild_Civ_newBase""];" \n - "" \n - "" \n - "_debugarea = getMarkerPos ""respawn_west"";" \n - "_pos = getMarkerPos ""center"";" \n - "" \n - "_wildZombies = {local _x} count (_pos nearEntities [""WildZombie_Base"",7500]);" \n - "_count = _totalamount - _wildZombies;" \n - "" \n - "if (_count > _amount2Spawn) then {" \n - " _spawnmore = true;" \n - "};" \n - "" \n - "diag_log format [""WILD SPAWN: Active: %1, Waiting: %2"",_wildZombies,_count]" \n - ""/*%FSM*/; - precondition = /*%FSM*/""/*%FSM*/; - class Links - { - /*%FSM*/ - class Need_more - { - priority = 3.000000; - to="Spawn"; - precondition = /*%FSM*/""/*%FSM*/; - condition=/*%FSM*/"_spawnmore"/*%FSM*/; - action=/*%FSM*/""/*%FSM*/; - }; - /*%FSM*/ - /*%FSM*/ - class Timeout - { - priority = 0.000000; - to="prepare"; - precondition = /*%FSM*/""/*%FSM*/; - condition=/*%FSM*/"(diag_tickTime - _timeN) > 600"/*%FSM*/; - action=/*%FSM*/""/*%FSM*/; - }; - /*%FSM*/ - }; - }; - /*%FSM*/ - /*%FSM*/ - class Check - { - name = "Check"; - init = /*%FSM*/"_spawnmore = false;" \n - "_wildZombies = {local _x} count (_pos nearEntities [""WildZombie_Base"",7500]);" \n - "_count = 200 - _wildZombies;" \n - "" \n - "if (_count > _amount2Spawn) then {" \n - " _spawnmore = true;" \n - "};"/*%FSM*/; - precondition = /*%FSM*/""/*%FSM*/; - class Links - { - /*%FSM*/ - class Need_more - { - priority = 3.000000; - to="Spawn"; - precondition = /*%FSM*/""/*%FSM*/; - condition=/*%FSM*/"_spawnmore"/*%FSM*/; - action=/*%FSM*/""/*%FSM*/; - }; - /*%FSM*/ - /*%FSM*/ - class No_More_Needed - { - priority = 0.000000; - to="prepare"; - precondition = /*%FSM*/""/*%FSM*/; - condition=/*%FSM*/"!_spawnmore"/*%FSM*/; - action=/*%FSM*/""/*%FSM*/; - }; - /*%FSM*/ - }; - }; - /*%FSM*/ - }; - initState="init"; - finalStates[] = - { - }; -}; -/*%FSM*/