Update humanity morphing

Vanilla commits:

33d4165e64

6674be6d5f

f4d18a6fef
This commit is contained in:
ebayShopper
2017-11-25 14:52:06 -05:00
parent 1e65d5d324
commit ac10daeb4d
7 changed files with 86 additions and 55 deletions

View File

@@ -0,0 +1,18 @@
#include "scheduler.hpp"
sched_humanityChange = {
HIDE_FSM_VARS
_startcombattimer = player getVariable["startcombattimer", 0];
//If player is not in combat and humanity differs from the last time it ran run humanityCheck(skin change check)
if (_startcombattimer == 0) then {
_playerHumanity = player getVariable ["humanity",0];
if ((_playerHumanity != playerHumanityCHK) and (vehicle player == player)) then {
[_playerHumanity] call player_humanityCheck;
playerHumanityCHK = _playerHumanity;
};
};
objNull
};