Revert "Add function to check if AI and condition from fatal"

This reverts commit 31e1e2964b.
This commit is contained in:
Arcanum 2017-05-22 20:53:00 +02:00
parent 31e1e2964b
commit e3f9e65fb7
3 changed files with 1 additions and 52 deletions

View File

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

View File

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

View File

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