Skip to content

Commit

Permalink
Move everything back to here.
Browse files Browse the repository at this point in the history
Yeah, yeah, I know, I know.....

commits:
Save damage (database)
BEFilters fix
And some other little things
  • Loading branch information
danielstuart14 committed Mar 3, 2016
1 parent acd0a21 commit ee0e7b0
Show file tree
Hide file tree
Showing 138 changed files with 6,386 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BEFilters/addBackpackCargo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//new
1 ""
4 "" !B_AssaultPack_ !B_TacticalPack_ !B_Kitbag_ !B_Bergen_ !B_FieldPack_ !B_Carryall_ !B_OutdoorPack_ !_Parachute
3 changes: 3 additions & 0 deletions BEFilters/addMagazineCargo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//new
1 ""
4 "" !Chemlight_ !=16Rnd_9x21_Mag !=30Rnd_9x21_Mag !=20Rnd_556x45_UW_mag !=30Rnd_556x45_Stanag !=10Rnd_762x54_Mag !=30Rnd_65x39_caseless_green !=6Rnd_45ACP_Cylinder !=9Rnd_45ACP_Mag !=HandGrenade_Stone !=30Rnd_65x39_caseless_mag !=SmokeShell !=SmokeShellGreen !=SmokeShellBlue !=SmokeShellOrange
3 changes: 3 additions & 0 deletions BEFilters/addWeaponCargo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//new
5 ""
//5 "" !=hgun_Rook40_F !=hgun_Pistol_heavy_02_F !=hgun_ACPC2_F !=hgun_PDW2000_F !=arifle_TRG20_F !=arifle_Katiba_F !=srifle_DMR_01_F !=arifle_SDAR_F !hgun_P07_ !=SMG_02_ACO_F !=arifle_MX_F !=arifle_MXC_F
3 changes: 3 additions & 0 deletions BEFilters/attachTo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//new
1 ""
4 "" !Box_IND_Grenades_F !B_supplyCrate_F !Land_Razorwire_F !Land_ClutterCutter_small_F !C_man_ !B_medic_F
36 changes: 36 additions & 0 deletions BEFilters/createVehicle.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//new
1 "" !=GroundWeaponHolder !=WeaponHolderSimulated !Supply !=#lightpoint !=Land_ClutterCutter_small_F
4 "" !=GroundWeaponHolder !=WeaponHolderSimulated !Supply !=#lightpoint !=Land_ClutterCutter_small_F !B_AssaultPack_ !B_TacticalPack_ !B_Kitbag_ !B_Bergen_ !B_FieldPack_ !B_Carryall_ !B_OutdoorPack_ !_Parachute !=O_Heli_Light_02_unarmed_F !=B_Heli_Light_01_F !=B_Heli_Light_01_stripped_F !=B_SDV_01_F !=C_Boat_Civil_01_F !=C_Rubberboat !=B_Quadbike_01_F !=O_Truck_03_device_F !=B_Truck_01_box_F !=O_Truck_03_covered_F !=O_Truck_03_transport_F !=B_Truck_01_transport_F !=I_Truck_02_covered_F !=I_Truck_02_transport_F !=C_Van_01_box_F !=C_Van_01_transport_F !=C_Hatchback_01_sport_F !=C_SUV_01_F !=C_Offroad_01_F !=C_Hatchback_01_F !=B_G_Offroad_01_armed_F !=O_MRAP_02_F !=B_G_Offroad_01_F !=I_Truck_02_medical_F !=O_Truck_03_medical_F !=B_Truck_01_medical_F !=B_Boat_Transport_01_F !=C_Boat_Civil_01_police_F !=B_Boat_Armed_01_minigun_F !=B_MRAP_01_F !=B_MRAP_01_hmg_F !=B_Heli_Transport_01_F !=C_Kart_01_Blu_F !=C_Kart_01_Fuel_F !=C_Kart_01_Red_F !=C_Kart_01_Vrana_F !Chemlight_ !=GrenadeHand_stone !=Land_Razorwire_F !=Land_Money_F !Land_Suitcase_F !Land_CanisterFuel_F !Land_Can_V3_F !Land_BottlePlastic_V1_F !Land_TacticalBacon_F !C_man_ !=B_medic_F !=Bo_GBU12_LGB_MI10 !=CMflare_Chaff_Ammo !SmokeLauncherAmmo !=Box_IND_Grenades_F !=B_supplyCrate_F !=B_HuntingBackpack
// !Logic //Debug menu → Animations
// !=Supply0 !=Supply20 !=Supply30 !=Supply40 !=Supply50 !=Supply60 !=Supply80 !=Supply100 !=Supply160
//Vehicle spawns
//Kavala
//[3239,12959,3] = police car shop
//[3194,12897,3] = police air shop
//[3155,12871,1] = police boat shop
//[3738,12991,20] = medic/ems car shop
//[0,0,815] = medic/ems air shop
//[3647,13122,11] and [3653,13121,11] = car shop
//[3764,12364,36] = truck shop
//[3007,12646,1] = boat shop
//Pyrgos
//[16597,12719,13] = police car shop
//[17471,13280,15] = medic/ems car shop
//[0,0,814] = medic/ems air shop
//[16994,12860,17] = car shop
//[18145,12855,28] = truck shop
//Athira
//[13780,18931,21] = police car shop
//[15573,17202,20] = medic/ems car shop
//[0,0,814] = medic/ems air shop
//[14037,18750,27] = car shop
//Sofia
//[23526,19936,15] = Highway Patrol Outpost police car shop
//[25821,21446,22] = car shop
//Other
//[14161,16533,17] = Go-kart shop
//[14166,16293,22] = Police Air HQ air shop
//[14696,16745,19] = Airport air shop
//[26868,24567,25] = Molos Airfield air shop
//[9179,21646,16] = North rebel outpost
//[12288,8919,125] = South-west rebel outpost
5 changes: 5 additions & 0 deletions BEFilters/deleteVehicle.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//new
1 "" !Land_Razorwire_F !Land_Money_F !Land_Suitcase_F !Land_CanisterFuel_F !Land_Can_V3_F !Land_BottlePlastic_V1_F !Land_TacticalBacon_F !Box_IND_Grenades_F !B_supplyCrate_F
//4 "" !Land_Razorwire_F !Land_Money_F !Land_Suitcase_F !Land_CanisterFuel_F !Land_Can_V3_F !Land_BottlePlastic_V1_F !Land_TacticalBacon_F !Box_IND_Grenades_F !B_supplyCrate_F
//Issue: impounding vehicle causes deleteVehicle kick but no information on classname. Example log:
//06.02.2016 19:14:02: playerName (10.0.0.7:2304) 12345678901234567890123456789012 - #0 4:9
2 changes: 2 additions & 0 deletions BEFilters/mpEventHandler.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//new
5 ""
5 changes: 5 additions & 0 deletions BEFilters/publicVariable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//new
1 ""
4 "" !=life_fnc_MP_packet !=life_fnc_RequestClientId !=HC_Life !=HC_UID !=life_HC_isActive
//1 "" !="life_HC_isActive" !="HC_UID"
//7 "" !="life_fnc_MP_packet" !="BIS_fnc_MP_packet" !="JipTimeNow" !="life_HC_isActive" !="HC_UID" !="life_gang_list" !="bank_addfunds"
3 changes: 3 additions & 0 deletions BEFilters/publicVariableVal.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//new
1 ""
//5 ""
3 changes: 3 additions & 0 deletions BEFilters/publicVariableVar.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//new
1 ""
//5 ""
2 changes: 2 additions & 0 deletions BEFilters/remoteControl.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//new
5 ""
6 changes: 6 additions & 0 deletions BEFilters/remoteExec.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//new
1 ""
//4 "" !bis_fnc_execvm !bis_fnc_effectkilledsecondaries !bis_fnc_effectkilledairdestruction !db_fnc_queryrequest !db_fnc_insertrequest !db_fnc_updaterequest !db_fnc_updatepartial !ton_fnc_managesc !ton_fnc_setobjvar !ton_fnc_cleanuprequest !ton_fnc_insertgang !ton_fnc_updategang !ton_fnc_removegang !ton_fnc_clientmessage !ton_fnc_player_query !ton_fnc_getid !ton_fnc_keymanagement !ton_fnc_vehiclecreate !ton_fnc_vehiclestore !ton_fnc_getvehicles !ton_fnc_spawnvehicle !ton_fnc_vehicledelete !ton_fnc_addhouse !ton_fnc_sellhouse !ton_fnc_pickupaction !ton_fnc_spikestrip !ton_fnc_addcontainer !ton_fnc_updatehousecontainers !ton_fnc_updatehousetrunk !life_fnc_simdisable !ton_fnc_chopshopsell !ton_fnc_clientgetkey !life_fnc_copmedicrequest !life_fnc_admininfo !life_fnc_broadcast !life_fnc_animsync !life_fnc_jumpfnc !life_fnc_sounddevice !life_fnc_wantedadd !life_fnc_wantedremove !life_fnc_wantedfetch !life_fnc_wantedpardon !life_fnc_wantedbounty !life_fnc_wantedprofupdate !life_fnc_lockvehicle !life_fnc_lighthouse !life_fnc_medicsiren !life_fnc_mediclights !life_fnc_copsiren !life_fnc_coplights !life_fnc_flashbang !life_fnc_tazesound !life_fnc_restrain !life_fnc_ticketprompt !life_fnc_ticketpaid !life_fnc_licensecheck !life_fnc_licensesread !life_fnc_searchclient !life_fnc_copsearch !life_fnc_movein !life_fnc_pulloutveh !life_fnc_jail !life_fnc_jailsys !life_fnc_removelicenses !life_fnc_receiveitem !life_fnc_receivemoney !life_fnc_demochargetimer !life_fnc_wiretransfer !life_fnc_robperson !life_fnc_robreceive !life_fnc_knockedout
//4 "" !bis_fnc_ !db_fnc_ !ton_fnc_ !life_fnc_
4 "" !="removeBackpack this; removeAllWeapons this;" !"^["true", ""] [[\d:-]+ group, \d+]$"
//!bis_fnc_call//Debug menu
20 changes: 20 additions & 0 deletions BEFilters/scripts.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//new2
1 "" !="this allowDamage false;" !="this enableSimulation false;" !"this addAction[localize\"STR_" !"this addAction[format[\"%1 ($%2)\",localize"
5 addAction !"this addAction[localize\"STR_" !"this addAction[localize \"STR_" !"this addAction[format[\"%1 ($%2)\",localize (getText(missionConfigFile >>" !"this addAction[\"<t color='#ADFF2F'>ATM</t>\",life_fnc_atmMenu,\"\",0,FALSE,FALSE" !"this addAction [\"Capture Gang Area\",life_fnc_captureHideout,\"\",0,false,false,\"\",' playerSide == civilian" !="(playerSide) do {\ncase civilian: {\n\nlife_actions = [player addAction[localize \"STR_pAct_DropFishingNet\",life_fnc_dropFishingNet," !="player addAction[localize \"STR_" !="arestObject [_x, _pumpClass]);\n_pump setFuelCargo 0;\n_pump addAction [localize \"STR_Action_Pump\", life_fnc_FuelStatOpen, 1, 3, t"
5 createDialog !="createDialog \"life_ticket_give\"" !="createDialog \"shop_menu\"" !="createDialog \"pInteraction_Menu\"" !="createDialog \"life_ticket_pay\"" !="createDialog \"Life_My_Gang_Diag\"" !="createDialog \"DeathScreen\"" !="createDialog \"playerSettings\"" !="createDialog \"SettingsMenu\"" !="createDialog \"life_wanted_menu\"" !="createDialog \"Life_atm_management\"" !="createDialog \"Chop_Shop\"" !="createDialog \"Life_Clothing\"" !="createDialog \"Life_impound_menu\"" !="createDialog \"Life_Vehicle_Shop_v2\"" !="createDialog \"shops_menu\"" !="createDialog \"TrunkMenu\"" !="createDialog \"vInteraction_Menu\"" !="createDialog \"Federal_Safe\"" !="createDialog \"life_spawn_selection\"" !"Life_Create_Gang_Diag\"" !="createDialog \"Life_key_management\"" !="createDialog \"Life_cell_phone\"" !="createDialog \"life_admin_menu\"" !="createDialog \"\"Life_Create_Gang_Diag\"\"" !="createDialog \"life_weapon_shop\"" !="createDialog \"Life_Admin_Compensate\";" !="have no business using this\";};\nlife_admin_debug = true;\n\ncreateDialog \"RscDisplayDebugPublic\";\n[0,format[\"Admin %1 has opened t" !="ion\n};\n_parent createdisplay \"RscDisplayCamera\";\n} else {\ncreatedialog \"RscDisplayCamera\"\n};\n};\n\ndisableserialization;\n_mode = _" !=".sqf\"\n\n\n\n\nGUI_version = 1.063;\nstartloadingscreen [\"\"];\n\n\ncreatedialog \"RscGUIEditor\";waituntil {!isnil { (uinamespace getvaria" !="inamespace getvariable \"BIS_RscGUIEditor_exit\")) then {\n\n\ncreatedialog \"RscGUIEditor\";\nGUI_listKeys = [];\nwaituntil {!isnil { (u" !=";\n[\n\"\",\n0,\n0.2,\n10,\n0,\n0,\n8\n] spawn BIS_fnc_dynamicText;\n\ncreateDialog \"RscDisplayWelcome\";\n\n_display = findDisplay 999999;\n_tex" !="lect 3) select 0) > 0)) OR (_trunk1 select 0) > 0) then {\ncreateDialog \"Life_impound_menu_action\";\n} else {\n_storetext = localiz" !="e \"STR_NOTF_VehicleNear\";life_action_inUse = false;};\nif(!createDialog \"Life_FuelStat\") exitWith {};\n_fuelCost = getNumber(missi"
5 ctrlCreate !=">> \"RscDisplayDebriefing_ListGroup\";\n_ListGroup = _display ctrlCreate [\"RscControlsGroupNoHScrollbars\", 21903 ];\n\n_ListGroup c" !="DisplayDLCContentBrowser_ListGroup\";\n_ListGroup = _display ctrlCreate [\"RscControlsGroupNoHScrollbars\", 38400];\n\n_ListGroup ct" !="sition _exePos;\n_exe ctrlCommit 0;\n\n_prevButton = _display ctrlCreate [\"RscButtonMenu\", 90110, _dbg];\n\n_x = 0 * (((safezoneW / s"
5 ctrlDelete !="};\n};\n\n\n\n\n\n\n_ListGroup = _display displayctrl 21903 ;\n\n\n\nctrlDelete _ListGroup;\n_listGroupCfg = configfile >> \"RscDisplayDebri" !=" select 2;\n_ListGroup = _display displayctrl 38400;\nctrlDelete _ListGroup;\n_listGroupCfg = configfile >> \"RscDisplayDLCCo"
5 forceRespawn !="];\nplayer hideobject true;\nplayer enablesimulation false;\nforcerespawn player;\n} else {\n_isDeath = false;\n};\n};\nif (_respawnOnSt" !=Helper\",\"BIS_fnc_reviveRemoveHelper\",\"BIS_fnc_reviveHandleForceRespawnAction\",\"BIS_fnc_reviveHandleIncapUnitDetection\",\"BIS_fnc_ !=[\"a3\functions_f_mp_mark\revive\fn_reviveHandleForceRespawnAction.sqf\",\".sqf\",0,false,false,false,\"A3_Mark\",\"Revive\",\"reviveHand !="_reviveHandleReviveAction;\n\n\n[] spawn bis_fnc_reviveHandleForceRespawnAction;\n\n\n[] spawn bis_fnc_reviveHandleIncapUnitDetection;" !="];\nplayer hideobject true;\nplayer enablesimulation false;\nforcerespawn player;\n};\n} else {\nif (isnil \"_respawnOnStart\") then {_r"
5 W_O_O_K_I_E !="_endM\"];\nif(isServer && !hasInterface) exitWith {}; \n\n\n\n\n\nW_O_O_K_I_E_ANTI_ANTI_HAX = compileFinal (if(typeName \"false\" == \"STRI" !="\"false\" == \"STRING\") then {\"false\"} else {str(\"false\")});\nE_X_T_A_S_Y_ANTI_ANTI_HAX = compileFinal (if(typeName \"false\" == \"STRI"
5 E_X_T_A_S_Y !="\"false\" == \"STRING\") then {\"false\"} else {str(\"false\")});\nE_X_T_A_S_Y_ANTI_ANTI_HAX = compileFinal (if(typeName \"false\" == \"STRI"
5 DO_NUKE !="e \"false\" == \"STRING\") then {\"false\"} else {str(\"false\")});\nDO_NUKE = compileFinal (if(typeName \"false\" == \"STRING\") then {\"fals"
5 JxMxE !="me \"false\" == \"STRING\") then {\"false\"} else {str(\"false\")});\nJxMxE_spunkveh = compileFinal (if(typeName \"false\" == \"STRING\") the"
5 llyyssttiiccc !="then {\"false\"} else {str(\"false\")});\nJJJJ_MMMM___EEEEEEE_LLYYSSTTIICCC_SHIT_RE = compileFinal (if(typeName \"false\" == \"STRING\") "
5 J_M_E_
5 aNUScODERZ
5 Jesus
5 JJJJ_ !="me \"false\" == \"STRING\") then {\"false\"} else {str(\"false\")});\nJJJJ_MMMM___EEEEEEE_LLYYSSTTIICCC_SHIT_RE = compileFinal (if(typeNa"
5 ThirtySix
5 root_
5 E5P
5 Bossmode
3 changes: 3 additions & 0 deletions BEFilters/selectPlayer.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//new
1 ""
4 "" !C_man_ !B_medic_F
3 changes: 3 additions & 0 deletions BEFilters/setDamage.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//new
1 ""
4 "" !=0.000000 !=0.250000
3 changes: 3 additions & 0 deletions BEFilters/setPos.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//new
1 ""
//4 "" !B_Quadbike_01_F !C_Hatchback_01_F !C_Offroad_01_F !C_SUV_01_F !C_Hatchback_01_sport_F !C_Van_01_transport_F !C_Kart_01_Blu_F !C_Kart_01_Fuel_F !C_Kart_01_Red_F !C_Kart_01_Vrana_F !I_Truck_02_medical_F !O_Truck_03_medical_F !B_Truck_01_medical_F !B_Heli_Light_01_F !B_Heli_Light_01_stripped_F !O_Heli_Light_02_unarmed_F !C_Van_01_box_F !I_Truck_02_transport_F !I_Truck_02_covered_F !B_Truck_01_transport_F !O_Truck_03_transport_F !O_Truck_03_covered_F !B_Truck_01_box_F !O_Truck_03_device_F !B_G_Offroad_01_F !O_MRAP_02_F !B_G_Offroad_01_armed_F !B_MRAP_01_F !B_Heli_Transport_01_F !B_MRAP_01_hmg_F !B_Boat_Transport_01_F !C_Boat_Civil_01_police_F !B_Boat_Armed_01_minigun_F !B_SDV_01_F !C_Rubberboat !C_Boat_Civil_01_F
3 changes: 3 additions & 0 deletions BEFilters/setVariable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//new
1 ""
4 "" !=sellers !=bis_fnc_selectrespawntemplate_respawned !=restrained !=escorting !=transporting !=playersurrender !=name !=safe_open !=gang_id !=gang_name !=gang_owner !=gangowner !=gang_maxmembers !=gang_bank !=gang_members !=revive !=steam64id !=item !=life_veh_color !=bis_fnc_setvehiclemass !=vehicle_info_owners !=fueltankwork !=fueltank !=container_owner !=container_id !=incapture !=Trunk !=trunk !=house_sold !=house_owner !=locked !=containers !=uid !=bis_disabled_door_ !=lights !=siren !=rank !=inuse !=reviving !=chargeplaced !=spikeDeployed !=life_clientID !=robbed !=mining !=safe
3 changes: 3 additions & 0 deletions BEFilters/setVariableVal.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//new
1 ""
//4 ""
2 changes: 2 additions & 0 deletions BEFilters/teamSwitch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//new
5 ""
2 changes: 2 additions & 0 deletions BEFilters/waypointCondition.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//new
7 ""
2 changes: 2 additions & 0 deletions BEFilters/waypointStatement.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//new
7 ""
145 changes: 145 additions & 0 deletions life_hc/FSM/cleanup.fsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
/*%FSM<COMPILE "D:\Bohemia Interactive\Tools\FSM Editor Personal Edition\scriptedFSM.cfg, Server-Side Cleanup">*/
/*%FSM<HEAD>*/
/*
item0[] = {"init",0,250,-65.004578,-391.651611,24.995417,-341.651672,0.000000,"init"};
item1[] = {"true",8,218,-62.976639,-315.185364,27.023363,-265.185364,0.000000,"true"};
item2[] = {"Share__Work_load",2,250,-64.183350,-224.681931,25.816656,-174.681931,0.000000,"Share " \n "Work-load"};
item3[] = {"true",8,218,-54.709698,75.189262,35.290302,125.189262,0.000000,"true"};
item4[] = {"Time_Check",4,218,-219.425827,-133.310532,-129.425964,-83.310455,0.000000,"Time Check"};
item5[] = {"Delete_Dead_Cars",2,4346,-220.186951,-29.248400,-130.187195,20.751413,0.000000,"Delete" \n "Dead" \n "Cars"};
item6[] = {"",7,210,-312.538239,95.295059,-304.538239,103.295059,0.000000,""};
item7[] = {"",7,210,-311.750000,-203.033707,-303.750000,-195.033707,0.000000,""};
link0[] = {0,1};
link1[] = {1,2};
link2[] = {2,4};
link3[] = {3,6};
link4[] = {4,5};
link5[] = {5,3};
link6[] = {6,7};
link7[] = {7,2};
globals[] = {0.000000,0,0,0,0,640,480,1,46,6316128,1,-629.444153,611.207214,293.309357,-434.050568,1243,885,1};
window[] = {2,-1,-1,-1,-1,985,225,1868,225,3,1261};
*//*%FSM</HEAD>*/
class FSM
{
fsmName = "Server-Side Cleanup";
class States
{
/*%FSM<STATE "init">*/
class init
{
name = "init";
init = /*%FSM<STATEINIT""">*/"private[""_impound"",""_cars"",""_objs"",""_totCars"",""_thread""];" \n
"_impound = time;" \n
"_cars = time;" \n
"_objs = time;"/*%FSM</STATEINIT""">*/;
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
class Links
{
/*%FSM<LINK "true">*/
class true
{
priority = 0.000000;
to="Share__Work_load";
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
condition=/*%FSM<CONDITION""">*/"true"/*%FSM</CONDITION""">*/;
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
};
/*%FSM</LINK>*/
};
};
/*%FSM</STATE>*/
/*%FSM<STATE "Share__Work_load">*/
class Share__Work_load
{
name = "Share__Work_load";
init = /*%FSM<STATEINIT""">*/""/*%FSM</STATEINIT""">*/;
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
class Links
{
/*%FSM<LINK "Time_Check">*/
class Time_Check
{
priority = 0.000000;
to="Delete_Dead_Cars";
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
condition=/*%FSM<CONDITION""">*/"((time - _cars) > (3 * 60))"/*%FSM</CONDITION""">*/;
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
};
/*%FSM</LINK>*/
};
};
/*%FSM</STATE>*/
/*%FSM<STATE "Delete_Dead_Cars">*/
class Delete_Dead_Cars
{
name = "Delete_Dead_Cars";
init = /*%FSM<STATEINIT""">*/"{" \n
" if(!alive _x) then {" \n
" _dbInfo = _x getVariable[""dbInfo"",[]];" \n
" if(count _dbInfo > 0) then {" \n
" _uid = _dbInfo select 0;" \n
" _plate = _dbInfo select 1;" \n
"" \n
" _query = format[""UPDATE vehicles SET alive='0' WHERE pid='%1' AND plate='%2'"",_uid,_plate];" \n
" _query spawn {" \n
" " \n
" _thread = [_this,1] call HC_fnc_asyncCall;" \n
" };" \n
" };" \n
" if(!isNil ""_x"" && {!isNull _x}) then {" \n
" deleteVehicle _x;" \n
" };" \n
" };" \n
"} foreach allMissionObjects ""LandVehicle"";" \n
"" \n
"{" \n
" if(!alive _x) then {" \n
" _dbInfo = _x getVariable[""dbInfo"",[]];" \n
" if(count _dbInfo > 0) then {" \n
" _uid = _dbInfo select 0;" \n
" _plate = _dbInfo select 1;" \n
"" \n
" _query = format[""UPDATE vehicles SET alive='0' WHERE pid='%1' AND plate='%2'"",_uid,_plate];" \n
" _query spawn {" \n
" " \n
" _thread = [_this,1] call HC_fnc_asyncCall;" \n
" };" \n
" };" \n
" if(!isNil ""_x"" && {!isNull _x}) then {" \n
" deleteVehicle _x;" \n
" };" \n
" };" \n
"} foreach allMissionObjects ""Air"";" \n
"" \n
"_cars = time;" \n
"" \n
"//Group cleanup." \n
"{" \n
" if(count units _x == 0 && local _x) then {" \n
" deleteGroup _x;" \n
" };" \n
"} foreach allGroups;"/*%FSM</STATEINIT""">*/;
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
class Links
{
/*%FSM<LINK "true">*/
class true
{
priority = 0.000000;
to="Share__Work_load";
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
condition=/*%FSM<CONDITION""">*/"true"/*%FSM</CONDITION""">*/;
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
};
/*%FSM</LINK>*/
};
};
/*%FSM</STATE>*/
};
initState="init";
finalStates[] =
{
};
};
/*%FSM</COMPILE>*/
Loading

0 comments on commit ee0e7b0

Please sign in to comment.