mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
knock out due to pain
This commit is contained in:
parent
370faf9b48
commit
be56b4d806
@ -27,3 +27,7 @@ if (_pain > 0) then {
|
||||
};
|
||||
|
||||
_unit setVariable [QEGVAR(medical,pain), _pain];
|
||||
|
||||
if (_pain >= PAIN_UNCONSCIOUS) then {
|
||||
[_unit, true, PAIN_KNOCK_OUT_DURATION] call FUNC(setUnconscious);
|
||||
};
|
||||
|
@ -36,3 +36,9 @@
|
||||
|
||||
// --- unconsciousness
|
||||
#define DEFAULT_KNOCK_OUT_DELAY (5 + random 10)
|
||||
|
||||
// --- pain
|
||||
#define PAIN_UNCONSCIOUS 0.7
|
||||
|
||||
// duration in seconds to stay knocked out due to pain
|
||||
#define PAIN_KNOCK_OUT_DURATION (15 + random 20)
|
||||
|
Loading…
Reference in New Issue
Block a user