mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Revert "Add function to check if AI and condition from fatal"
This reverts commit 31e1e2964b
.
This commit is contained in:
parent
31e1e2964b
commit
e3f9e65fb7
@ -61,14 +61,7 @@ class ACE_Medical_StateMachine {
|
||||
class SecondChance {
|
||||
events[] = {QGVAR(FatalInjuryInstantTransition)};
|
||||
targetState = "CardiacArrest";
|
||||
condition = QUOTE(DFUNC(conditionFromFatalToCardiac));
|
||||
onTransition = QUOTE(DFUNC(transitionSecondChance));
|
||||
};
|
||||
class SecondChanceAI {
|
||||
events[] = {QGVAR(FatalInjuryInstantTransition)};
|
||||
targetState = "CardiacArrest";
|
||||
//conditionFromFatalToCardiac
|
||||
condition = QUOTE(DFUNC(conditionFromFatalToCardiac));
|
||||
condition = QUOTE(GVAR(fatalInjuryCondition) > 0);
|
||||
onTransition = QUOTE(DFUNC(transitionSecondChance));
|
||||
};
|
||||
class Death {
|
||||
|
@ -1,17 +0,0 @@
|
||||
/*
|
||||
* Author: Arcanum
|
||||
* Condition for trasfer from FatalInjury to Second chance.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: The Unit <OBJECT>
|
||||
* 1: 1 for AI 0 for player <BOOL>
|
||||
*
|
||||
* Return Value:
|
||||
* Condition fo state machine <BOOL>
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
params ["_unit","_wantAI"];
|
||||
|
||||
(GVAR(fatalInjuryConditionAI) > 0) && (QUOTE(_this call FUNC(isAi)) == _wantAI)
|
@ -1,27 +0,0 @@
|
||||
/*
|
||||
* Author: Arcanum
|
||||
* Check if a unit is AI
|
||||
*
|
||||
* Arguments:
|
||||
* 0: The Unit <OBJECT>
|
||||
*
|
||||
* ReturnValue:
|
||||
* Is AI <BOOL>
|
||||
*
|
||||
* Example:
|
||||
* [player] call ace_medical_fnc_isAI
|
||||
*
|
||||
* Public: Yes
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
params ["_unit"];
|
||||
private _return = 0;
|
||||
|
||||
if (isPlayer _unit) then {
|
||||
_return=0;
|
||||
else {
|
||||
_return=1;
|
||||
};
|
||||
_return
|
Loading…
Reference in New Issue
Block a user