mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
0.3.7.008
more PVS to RE work
This commit is contained in:
parent
8d0c838c0a
commit
cf03d38ab9
Binary file not shown.
@ -1319,8 +1319,8 @@ class FSM
|
||||
"" \n
|
||||
"_copterPos = (getPosATL _plyr) findEmptyPosition [1,500,""I_Heli_light_03_unarmed_EPOCH""];" \n
|
||||
"" \n
|
||||
"EPOCH_createObject_PVS = [player,Epoch_personalToken,_uavclass,true,_copterPos,""CAN_COLLIDE"","""","""","""","""",true];" \n
|
||||
"publicVariableServer ""EPOCH_createObject_PVS"";" \n
|
||||
"" \n
|
||||
"[player,Epoch_personalToken,_uavclass,true,_copterPos,""CAN_COLLIDE"","""","""","""","""",true] remoteExec [""EPOCH_Server_createObject"",2];" \n
|
||||
"" \n
|
||||
"" \n
|
||||
"" \n
|
||||
|
@ -502,8 +502,8 @@ class FSM
|
||||
"_boats = [];" \n
|
||||
"_findTimer = diag_TickTime;" \n
|
||||
"" \n
|
||||
"EPOCH_createObject_PVS = [player,Epoch_personalToken,""I_Boat_Armed_01_minigun_F"",true,axeGeneralBoatPos,""CAN_COLLIDE"","""","""","""","""",true];" \n
|
||||
"publicVariableServer ""EPOCH_createObject_PVS"";" \n
|
||||
"" \n
|
||||
"[player,Epoch_personalToken,""I_Boat_Armed_01_minigun_F"",true,axeGeneralBoatPos,""CAN_COLLIDE"","""","""","""","""",true] remoteExec [""EPOCH_Server_createObject"",2];" \n
|
||||
"" \n
|
||||
"" \n
|
||||
""/*%FSM</ACTION""">*/;
|
||||
|
@ -38,9 +38,7 @@ if ((diag_tickTime - _EPOCH_lastSave) >= _time) then {
|
||||
_customVars pushBack (missionNamespace getVariable format["EPOCH_player%1",_x select 0]);
|
||||
} forEach _customVarsInit;
|
||||
|
||||
// TODO: use remoteExec here
|
||||
missionNamespace setVariable ["EPOCH_pushPlayer_PVS",[player,_customVars,missionNamespace getVariable "Epoch_personalToken"]];
|
||||
publicVariableServer "EPOCH_pushPlayer_PVS";
|
||||
[player,_customVars,missionNamespace getVariable "Epoch_personalToken"] remoteExec ["EPOCH_fnc_savePlayer",2];
|
||||
|
||||
missionNamespace setVariable["EPOCH_lastSave", diag_tickTime];
|
||||
};
|
||||
|
@ -183,6 +183,15 @@ class CfgRemoteExec
|
||||
allowedTargets=2;
|
||||
jip = 0;
|
||||
};
|
||||
class EPOCH_Server_createObject {
|
||||
allowedTargets=2;
|
||||
jip = 0;
|
||||
};
|
||||
class EPOCH_fnc_savePlayer {
|
||||
allowedTargets=2;
|
||||
jip = 0;
|
||||
};
|
||||
|
||||
};
|
||||
class Commands {mode=0;};
|
||||
};
|
||||
|
@ -0,0 +1 @@
|
||||
if([_this select 1 select 0,_this select 1 select 2]call EPOCH_server_getPToken)then{(_this select 1)call EPOCH_server_savePlayer}
|
@ -39,6 +39,11 @@ class cfgFunctions
|
||||
file = "\x\addons\a3_epoch_server\compile\epoch_bases\fn_saveBuilding.sqf";
|
||||
};
|
||||
};
|
||||
class players {
|
||||
class savePlayer {
|
||||
file = "\x\addons\a3_epoch_server\compile\epoch_player\fn_savePlayer.sqf";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
@ -7,7 +7,7 @@
|
||||
// "EPOCH_checkPlayer_PVS" addPublicVariableEventHandler{(_this select 1)call EPOCH_server_checkPlayer};
|
||||
// "EPOCH_respawnPlayer_PVS" addPublicVariableEventHandler{(_this select 1)call EPOCH_server_respawnPlayer};
|
||||
// "EPOCH_S_S_VEHICLES" addPublicVariableEventHandler{(_this select 1)call EPOCH_server_save_vehicles};
|
||||
"EPOCH_pushPlayer_PVS" addPublicVariableEventHandler{if([_this select 1 select 0,_this select 1 select 2]call EPOCH_server_getPToken)then{(_this select 1)call EPOCH_server_savePlayer}};
|
||||
// "EPOCH_pushPlayer_PVS" addPublicVariableEventHandler{(_this select 1) call EPOCH_fnc_savePlayer};
|
||||
// "EPOCH_deadPlayer_PVS" addPublicVariableEventHandler{(_this select 1)call EPOCH_server_deadPlayer};
|
||||
// "EPOCH_destroyTrash" addPublicVariableEventHandler{(_this select 1)call EPOCH_server_destroyTrash};
|
||||
// "EPOCH_knockDownTree" addPublicVariableEventHandler{(_this select 1)call EPOCH_server_knockDownTree};
|
||||
@ -46,4 +46,4 @@
|
||||
// "EPOCH_FillContainer_PVS" addPublicVariableEventHandler{(_this select 1)call EPOCH_server_fillContainer};
|
||||
// "EPOCH_SapperObjs_PVS" addPublicVariableEventHandler{(_this select 1)call EPOCH_server_handle_sapperObjs};
|
||||
// "EPOCH_createAirDrop_PVS" addPublicVariableEventHandler{ (_this select 1)call EPOCH_Server_createAirDrop };
|
||||
"EPOCH_airDropCrate_PVS" addPublicVariableEventHandler{ (_this select 1)call EPOCH_server_airDropCrate };
|
||||
// "EPOCH_airDropCrate_PVS" addPublicVariableEventHandler{ (_this select 1)call EPOCH_server_airDropCrate };
|
||||
|
Loading…
Reference in New Issue
Block a user