mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-11 10:42:58 +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
|
||||
};
|
||||
@@ -14,6 +14,7 @@ call compile preprocessFileLineNumbers (_base+"sched_medical.sqf");
|
||||
//call compile preprocessFileLineNumbers (_base+"sched_achievement.sqf");
|
||||
call compile preprocessFileLineNumbers (_base+"sched_gui.sqf");
|
||||
call compile preprocessFileLineNumbers (_base+"sched_buildingBubble.sqf");
|
||||
//call compile preprocessFileLineNumbers (_base+"sched_humanityChange.sqf");
|
||||
|
||||
if (dayz_antihack == 1) then {
|
||||
call compile preprocessFileLineNumbers (_base+"sched_security.sqf");
|
||||
@@ -39,6 +40,7 @@ if (count _list == 0) then {
|
||||
[ 6, 24.18, sched_spawnCheck, sched_spawnCheck_init ],
|
||||
[ 1, 0.63, sched_throwable, sched_throwable_init ],
|
||||
[ 1, 0.33, sched_medical, sched_medical_init ],
|
||||
//[ 15, 3, sched_humanityChange ], //Humanity morphing disabled on Epoch to avoid loss of purchased clothing
|
||||
//[ 3, 2.70, sched_achievement, sched_achievement_init ],
|
||||
[ 4, 2.38, sched_bloodStains, sched_bloodStains_init ],
|
||||
[ 60, 10.44, sched_animals ],
|
||||
|
||||
Reference in New Issue
Block a user