mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e11e102a76
* Enable majority of actions underwater * Remove log * Add logistics_wirecutter support (don't play kneel animations underwater - looks silly) * Don't perform kneel animations when repairing or medicaling underwater * Fix interaction menu rendering underwater (was moving based on player eye level due to height max used for large vehicles) * Fix attach underwater (LIW does not work underwater, LIS does), Add attach scan drawing define * Remove left-over systemChat * Remove vehiclelock from Plane, Disallow linking belt underwater, Allow checking ammo when sitting via action (was already possible via keybind), Use param for LIS
39 lines
872 B
Plaintext
39 lines
872 B
Plaintext
/*
|
|
* Author: esteldunedain
|
|
* Make the player check the temperature of his spare barrels
|
|
*
|
|
* Arguments:
|
|
* 0: Player <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [bob] call ace_overheating_fnc_checkSpareBarrelsTemperature
|
|
*
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_player"];
|
|
|
|
// Make the unit go kneeling
|
|
[_player] call EFUNC(common,goKneeling);
|
|
|
|
// Spawn a progress bar
|
|
[
|
|
5.0,
|
|
[_player],
|
|
{
|
|
params ["_args", "_elapsedTime", "_totalTime", "_errorCode"];
|
|
_args params ["_player"];
|
|
// Time has enlapsed, ask the server to send the hint
|
|
[QGVAR(sendSpareBarrelTemperatureHint), [_player, _player]] call CBA_fnc_serverEvent;
|
|
},
|
|
{},
|
|
(localize LSTRING(CheckingSpareBarrelsTemperatures)),
|
|
{true},
|
|
["isNotInside", "isNotSitting", "isNotSwimming"]
|
|
] call EFUNC(common,progressBar);
|