Removed rearmVehicle and setFuel functions

This commit is contained in:
Wyqer 2019-12-10 18:02:22 +01:00
parent a85d0fad56
commit 6b800e4d75
No known key found for this signature in database
GPG Key ID: D7E2F8BD7F1E48FA
4 changed files with 2 additions and 42 deletions

View File

@ -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 {};

View File

@ -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;

View File

@ -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;

View File

@ -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 {