Removed rearmVehicle and setFuel functions
This commit is contained in:
parent
a85d0fad56
commit
6b800e4d75
|
@ -55,11 +55,9 @@ class KPLIB
|
|||
class isRadio {};
|
||||
class potatoScan {};
|
||||
class protectObject {};
|
||||
class rearmVehicle {};
|
||||
class removeWeaponCargo {};
|
||||
class secondsToTimer {};
|
||||
class setFobMass {};
|
||||
class setFuel {};
|
||||
class setLoadableViV {};
|
||||
class setLoadout {};
|
||||
class sortStorage {};
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
/*
|
||||
File: fn_rearmVehicle.sqf
|
||||
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
|
||||
Date: 2019-12-03
|
||||
Last Update: 2019-12-03
|
||||
License: MIT License - http://www.opensource.org/licenses/MIT
|
||||
|
||||
Description:
|
||||
No description added yet.
|
||||
|
||||
Parameter(s):
|
||||
_localVariable - Description [DATATYPE, defaults to DEFAULTVALUE]
|
||||
|
||||
Returns:
|
||||
Function reached the end [BOOL]
|
||||
*/
|
||||
// TODO
|
||||
params [ "_veh" ];
|
||||
_veh setVehicleAmmoDef 1;
|
|
@ -1,19 +0,0 @@
|
|||
/*
|
||||
File: fn_setFuel.sqf
|
||||
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
|
||||
Date: 2019-12-03
|
||||
Last Update: 2019-12-03
|
||||
License: MIT License - http://www.opensource.org/licenses/MIT
|
||||
|
||||
Description:
|
||||
No description added yet.
|
||||
|
||||
Parameter(s):
|
||||
_localVariable - Description [DATATYPE, defaults to DEFAULTVALUE]
|
||||
|
||||
Returns:
|
||||
Function reached the end [BOOL]
|
||||
*/
|
||||
// TODO
|
||||
params [ "_veh", "_fuelamount" ];
|
||||
_veh setFuel _fuelamount;
|
|
@ -36,14 +36,14 @@ while { true } do {
|
|||
_rearmed = true;
|
||||
_rearm_ticker = _rearm_ticker + 1;
|
||||
if ( _rearm_ticker >= _rearm_time ) then {
|
||||
[_veh] remoteExec ["KPLIB_fnc_rearmVehicle",_veh];
|
||||
[_veh, 1] remoteExecCall ["setVehicleAmmoDef", _veh];
|
||||
};
|
||||
};
|
||||
|
||||
if ( count ( (getpos _veh) nearEntities [ vehicle_refuel_sources , _resupply_dist] ) > 0 ) then {
|
||||
if ( fuel _veh < ( 1 - _refuel_amount ) ) then {
|
||||
_refueled = true;
|
||||
[_veh, (fuel _veh + _refuel_amount)] remoteExec ["KPLIB_fnc_setFuel",_veh];
|
||||
[_veh, (fuel _veh + _refuel_amount)] remoteExecCall ["setFuel", _veh];
|
||||
};
|
||||
};
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue