Skip to content

Commit

Permalink
Support not being server in addToCurators
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuel committed Jan 8, 2016
1 parent 83857f4 commit 9ccd35a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion FP_Template.VR/base/functions/fn_addToCurators.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
Cuel 2015-01-16
*/

if (!isServer) exitWith {};
if (!isServer) exitWith {
_this remoteExecCall ["FP_fnc_addToCurators", 2];
};

private _add = if (typeName _this != typeName []) then {[_this]} else {_this};

{
Expand Down
2 changes: 1 addition & 1 deletion FP_Template.VR/base/initPlayer.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ FP_kit_type = player getVariable ["FP_kit_type", []];
player addEventHandler ["Respawn", {

// Add new unit to zeus
[_this select 0] remoteExecCall ["FP_fnc_addToCurators", 2];
[_this select 0] call FP_fnc_addToCurators;

// Respawn with gear if using template gear
if (count FP_kit_type > 0) then {
Expand Down
2 changes: 1 addition & 1 deletion FP_Template.VR/base/scripts/ares/ied_proximity.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ private _trigger = ([_pos, "AREA:", [_distance, _distance, 0, false], "ACT:", ["
_trigger setVariable ["fp_ied", _ied];
_trigger setTriggerStatements [_condition, _statement, ""];
_trigger attachTo [_ied, [0,0,0]];
[_ied] remoteExecCall ["FP_fnc_addToCurators", 2];
[_ied] call FP_fnc_addToCurators;
2 changes: 1 addition & 1 deletion FP_Template.VR/initPlayerLocal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ params ["_player", "_isJip"];
[] call compile preProcessFileLineNumbers "briefing.sqf";

// Add JIP players to zeus
if (_isJip) then {[_player] remoteExecCall ["FP_fnc_addToCurators", 2]};
if (_isJip) then {[_player] call FP_fnc_addToCurators};

// Add teleport options to flag. See config.sqf
if (!isNil "fp_flag" && {count FP_flagTargets > 0}) then {
Expand Down

0 comments on commit 9ccd35a

Please sign in to comment.