mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fire - Fix medical macros in compiled sqfc (#10147)
* Fire - Fix medical macros in compiled sqfc * Update addons/fire/functions/fnc_burnSimulation.sqf Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> --------- Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
parent
b7cd72e936
commit
aa6e5c30ec
@ -1,3 +0,0 @@
|
||||
[tools]
|
||||
pboProject_noBinConfig = true
|
||||
sqfvm_skipConfigChecks = true
|
@ -149,7 +149,9 @@ params ["_unit", "_instigator"];
|
||||
};
|
||||
|
||||
// Keep pain around unconsciousness limit to allow for more fun interactions
|
||||
private _damageToAdd = [0.15, _intensity / BURN_MAX_INTENSITY] select (!alive _unit || {GET_PAIN_PERCEIVED(_unit) < (PAIN_UNCONSCIOUS + random 0.2)});
|
||||
private _painPercieved = (0 max ((_unit getVariable [QEGVAR(medical,pain), 0]) - (_unit getVariable [QEGVAR(medical,painSuppress), 0])) min 1);
|
||||
private _painUnconscious = missionNamespace getVariable [QEGVAR(medical,painUnconsciousThreshold), 0];
|
||||
private _damageToAdd = [0.15, _intensity / BURN_MAX_INTENSITY] select (!alive _unit || {_painPercieved < _painUnconscious + random 0.2});
|
||||
|
||||
if (GETEGVAR(medical,enabled,false)) then {
|
||||
if (!isNull _instigator) then {
|
||||
|
@ -17,14 +17,6 @@
|
||||
|
||||
#include "\z\ace\addons\main\script_macros.hpp"
|
||||
|
||||
#pragma hemtt flag pe23_ignore_has_include
|
||||
#if __has_include("\z\ace\addons\medical_engine\script_macros_medical.hpp")
|
||||
#include "\z\ace\addons\medical_engine\script_macros_medical.hpp"
|
||||
#else
|
||||
#define GET_PAIN_PERCEIVED(var) 0
|
||||
#define PAIN_UNCONSCIOUS 1
|
||||
#endif
|
||||
|
||||
#define FIRE_MANAGER_PFH_DELAY 0.25
|
||||
#define FLARE_SIZE_MODIFIER 5
|
||||
#define PRONE_ROLLING_ANIMS [\
|
||||
|
Loading…
Reference in New Issue
Block a user