mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
parent
43c1f97dfa
commit
cb3c18c2fb
@ -2,6 +2,7 @@
|
||||
|
||||
["CBA_settingsInitialized", {
|
||||
TRACE_1("settingsInitialized",GVAR(enabledFor));
|
||||
|
||||
if (GVAR(enabledFor) == 0) exitWith {}; // 0: disabled
|
||||
if ((GVAR(enabledFor) == 1) && {!isServer} && {hasInterface}) exitWith {}; // 1: Don't Run on non-hc Clients
|
||||
|
||||
@ -20,5 +21,4 @@
|
||||
}] call CBA_fnc_addClassEventHandler;
|
||||
|
||||
#include "stateMachine.inc.sqf"
|
||||
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
@ -13,6 +13,6 @@ if (isNil QGVAR(timeSafe_shoot)) then { GVAR(timeSafe_shoot) = 30; };
|
||||
if (isNil QGVAR(timeSafe_hit)) then { GVAR(timeSafe_hit) = 30; };
|
||||
if (isNil QGVAR(timeSafe_suppressed)) then { GVAR(timeSafe_suppressed) = 30; };
|
||||
|
||||
GVAR(itemHash) = uinamespace getVariable QGVAR(itemHash);
|
||||
GVAR(itemHash) = uiNamespace getVariable QGVAR(itemHash);
|
||||
|
||||
ADDON = true;
|
||||
|
@ -4,13 +4,13 @@
|
||||
* Checks if there is a medic available in the unit's group.
|
||||
*
|
||||
* Arguments:
|
||||
* None
|
||||
* Unit <OBJECT>
|
||||
*
|
||||
* Return Value:
|
||||
* Can request medic <BOOL>
|
||||
*
|
||||
* Example:
|
||||
* player call ACE_medical_ai_fnc_canRequestMedic
|
||||
* player call ace_medical_ai_fnc_canRequestMedic
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
@ -4,13 +4,13 @@
|
||||
* Makes the unit heal itself.
|
||||
*
|
||||
* Arguments:
|
||||
* None
|
||||
* Unit <OBJECT>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
* call ACE_medical_ai_fnc_healSelf
|
||||
* cursorObject call ace_medical_ai_fnc_healSelf
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
@ -4,16 +4,17 @@
|
||||
* Makes a medic heal the next unit that needs treatment.
|
||||
*
|
||||
* Arguments:
|
||||
* None
|
||||
* Unit <OBJECT>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
* call ACE_medical_ai_fnc_healUnit
|
||||
* cursorObject call ace_medical_ai_fnc_healUnit
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
// Player will have to do this manually of course
|
||||
if ([_this] call EFUNC(common,isPlayer)) exitWith {};
|
||||
// Can't heal other units when unconscious
|
||||
|
@ -11,7 +11,7 @@
|
||||
* Nothing
|
||||
*
|
||||
* Example:
|
||||
* [a, b] call ACE_medical_ai_fnc_healingLogic
|
||||
* [cursorObject, cursorObject] call ace_medical_ai_fnc_healingLogic
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
@ -10,7 +10,7 @@
|
||||
* Does unit need treatment <BOOL>
|
||||
*
|
||||
* Example:
|
||||
* player call ACE_medical_ai_fnc_isInjured
|
||||
* cursorObject call ace_medical_ai_fnc_isInjured
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
@ -10,7 +10,7 @@
|
||||
* Is unit safe enough <BOOL>
|
||||
*
|
||||
* Example:
|
||||
* call ACE_medical_ai_fnc_isSafe
|
||||
* cursorObject call ace_medical_ai_fnc_isSafe
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "..\script_component.hpp"
|
||||
/*
|
||||
* Author: PabstMirror
|
||||
* Checks if AI healer has items
|
||||
* Checks if AI healer has items.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Healer <OBJECT>
|
||||
@ -13,7 +13,7 @@
|
||||
* 2: Treatment <STRING> (Optional)
|
||||
*
|
||||
* Example:
|
||||
* [cursorObject, "@bandage"] call ACE_medical_ai_fnc_itemCheck
|
||||
* [cursorObject, "@bandage"] call ace_medical_ai_fnc_itemCheck
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
@ -12,10 +12,11 @@
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
* [bob, true, true] call ACE_medical_ai_fnc_playTreatmentAnim
|
||||
* [cursorObject, true, true] call ace_medical_ai_fnc_playTreatmentAnim
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
params ["_unit", "_actionName", "_isSelfTreatment"];
|
||||
TRACE_3("playTreatmentAnim",_unit,_actionName,_isSelfTreatment);
|
||||
|
||||
|
@ -4,13 +4,13 @@
|
||||
* Sends a request to the units assigned medic to heal it.
|
||||
*
|
||||
* Arguments:
|
||||
* None
|
||||
* Unit <OBJECT>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
* call ACE_medical_ai_fnc_requestMedic
|
||||
* cursorObject call ace_medical_ai_fnc_requestMedic
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
@ -4,13 +4,13 @@
|
||||
* Checks if the unit was requested to treat another unit.
|
||||
*
|
||||
* Arguments:
|
||||
* None
|
||||
* Unit <OBJECT>
|
||||
*
|
||||
* Return Value:
|
||||
* Was requested <BOOL>
|
||||
*
|
||||
* Example:
|
||||
* call ACE_medical_ai_fnc_wasRequested
|
||||
* cursorObject call ace_medical_ai_fnc_wasRequested
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user