move icons to mod
add token check to remote exec
This commit is contained in:
vbawol 2017-03-30 11:02:15 -05:00
parent 5aae0aa1e2
commit e379038ab4
43 changed files with 20 additions and 27 deletions

BIN
Rearm.paa

Binary file not shown.

Binary file not shown.

View File

@ -100,7 +100,7 @@ switch _unitClass do {
_bomb = createVehicle ["SmokeShellToxicSapper", _targetPos, [], 0, "CAN_COLLIDE"];
_bomb attachTo [_unit, [0,0,0],"Pelvis"];
_unit call _disableAI;
_sapperHndl = [_unit, _bomb, _trgt] execFSM "\x\addons\a3_epoch_code\System\Sapper_Brain.fsm";
_sapperHndl = [_unit, _bomb, _trgt] execFSM "\x\addons\a3_epoch_code\System\Sapper_Brain2.fsm";
_unit setVariable ["sapperHndl",_sapperHndl];
_unit addEventHandler ["FiredNear", format ["%1 setFSMVariable [""_sFiredNear"",[_this select 1, _this select 2]];",_sapperHndl]];
_unit addEventHandler ["Hit", format ["%1 setFSMVariable [""_sHit"",[_this select 1, _this select 2]];",_sapperHndl]];

View File

@ -16,7 +16,7 @@ if (EPOCH_playerCrypto < _costs) exitWith {
};
if(_costs > 0)then{
[player,(_costs*-1)] remoteexec ['epoch_server_paycrypto',2];
[player,(_costs*-1),Epoch_personalToken] remoteexec ['epoch_server_paycrypto',2];
};
_vehicle removeMagazinesTurret [_ammotype,_turret];
for '_i' from 1 to _reloagmags do {

View File

@ -12,7 +12,7 @@ if (EPOCH_playerCrypto < _costs) exitWith {
[_line,5] call Epoch_message;
};
if(_costs > 0)then{
[player,(_costs*-1)] remoteexec ['epoch_server_paycrypto',2];
[player,(_costs*-1),Epoch_personalToken] remoteexec ['epoch_server_paycrypto',2];
};
_vehicle engineOn false;
if ((vehicle player != _vehicle) || (!local _vehicle) || speed _vehicle < -2 || speed _vehicle > 2) exitWith {

View File

@ -13,7 +13,7 @@ if (EPOCH_playerCrypto < _costs) exitWith {
[_line,5] call Epoch_message;
};
if(_costs > 0)then{
[player,(_costs*-1)] remoteexec ['epoch_server_paycrypto',2];
[player,(_costs*-1),Epoch_personalToken] remoteexec ['epoch_server_paycrypto',2];
};
_Ignatz_vehicle engineOn false;
_repaired = [];

View File

@ -103,48 +103,42 @@ class ServicePoint
{
condition = "call EPOCH_SP_Check";
action = "call EPOCH_SP_Start;";
// icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair.paa";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\player_inspect.paa";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair_man.paa";
tooltip = "Service Point";
class Refuel
{
condition = "true";
action = "(Ignatz_Refuel select 1) spawn EPOCH_SP_Refuel";
// icon = "x\addons\a3_epoch_code\Data\UI\buttons\Refuel.paa";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\player_inspect.paa";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\vehicle_refuel.paa";
tooltipcode = "Ignatz_Refuel select 0";
};
class Repair
{
condition = "true";
action = "(Ignatz_Repair select 1) spawn EPOCH_SP_Repair";
// icon = "x\addons\a3_epoch_code\Data\UI\buttons\Repair.paa";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\player_inspect.paa";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\repair.paa";
tooltipcode = "Ignatz_Repair select 0";
};
class Rearm0
{
condition = "!isnil 'Ignatz_Rearm0'";
action = "(Ignatz_Rearm0 select 1) call EPOCH_SP_Rearm";
// icon = "x\addons\a3_epoch_code\Data\UI\buttons\Rearm.paa";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\player_inspect.paa";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Rearm.paa";
tooltipcode = "Ignatz_Rearm0 select 0";
};
class Rearm1
{
condition = "!isnil 'Ignatz_Rearm1'";
action = "(Ignatz_Rearm1 select 1) call EPOCH_SP_Rearm";
// icon = "x\addons\a3_epoch_code\Data\UI\buttons\Rearm.paa";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\player_inspect.paa";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Rearm.paa";
tooltipcode = "Ignatz_Rearm1 select 0";
};
class Rearm2
{
condition = "!isnil 'Ignatz_Rearm2'";
action = "(Ignatz_Rearm2 select 1) call EPOCH_SP_Rearm";
// icon = "x\addons\a3_epoch_code\Data\UI\buttons\Rearm.paa";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\player_inspect.paa";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Rearm.paa";
tooltipcode = "Ignatz_Rearm2 select 0";
};
};

View File

@ -54,7 +54,7 @@ class CfgItemSort
"U_CamoBlue_uniform",
"U_CamoBrn_uniform",
"U_CamoRed_uniform",
'U_CamoAloha_uniform",
"U_CamoAloha_uniform",
"U_CamoBiker_uniform",
"U_CamoBubblegum_uniform",
"U_CamoLumberjack_uniform",

View File

@ -1 +1 @@
build=737;
build=738;

View File

@ -1 +1 @@
build=737;
build=739;

View File

@ -1,6 +1,5 @@
params [["_player",objNull,[objNull]],["_crypto",0,[0]]];
_player = _this select 0;
_crypto = _this select 1;
params [["_player",objNull,[objNull]],["_crypto",0,[0]],["_token","",[""]]];
if !([_player, _token] call EPOCH_server_getPToken) exitWith{};
if (_crypto > 0) exitwith { // This is only for pay Crypto, not for give Crypto ;)
diag_log format ['Player %1 (%2) killed for Code hack',name _player, getplayeruid _player];
_player setdamage 1

Binary file not shown.

View File

@ -1 +1 @@
build=737;
build=739;

View File

@ -1 +1 @@
build=737;
build=739;

View File

@ -1 +1 @@
737
739