mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-03-01 11:11:52 +03:00
Update humanity morphing
Vanilla commits:33d4165e646674be6d5ff4d18a6fef
This commit is contained in:
18
SQF/dayz_code/system/scheduler/sched_humanityChange.sqf
Normal file
18
SQF/dayz_code/system/scheduler/sched_humanityChange.sqf
Normal 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
|
||||
};
|
||||
Reference in New Issue
Block a user