mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
rename spawnBlood to createBlood for consistency
This commit is contained in:
parent
26caafdab3
commit
0cf6094875
@ -3,5 +3,5 @@
|
||||
PREP(hit);
|
||||
PREP(isBleeding);
|
||||
PREP(onBleeding);
|
||||
PREP(spawnBlood);
|
||||
PREP(createBlood);
|
||||
PREP(spurt);
|
||||
|
@ -10,7 +10,7 @@
|
||||
* Created blood drop <OBJECT>
|
||||
*
|
||||
* Example:
|
||||
* ["ACE_Blooddrop_2", getPos player] call ace_medical_blood_fnc_spawnBlood
|
||||
* ["ACE_Blooddrop_2", getPos player] call ace_medical_blood_fnc_createBlood
|
||||
*
|
||||
* Public: No
|
||||
*/
|
@ -30,5 +30,5 @@ if (((CBA_missionTime - _lastTime) + _bloodLoss) >= (8 + random(2))) then {
|
||||
_position set [2, 0];
|
||||
|
||||
private _bloodDrop = ["ACE_Blooddrop_1", "ACE_Blooddrop_2", "ACE_Blooddrop_3", "ACE_Blooddrop_4"] select (floor (_bloodLoss max 3));
|
||||
[_bloodDrop, _position, getDir _unit] call FUNC(spawnBlood);
|
||||
[_bloodDrop, _position, getDir _unit] call FUNC(createBlood);
|
||||
};
|
||||
|
@ -33,7 +33,7 @@ private _cosDir = cos _dir;
|
||||
_pos params ["_x", "_y"];
|
||||
|
||||
private _bloodPos = [_x + (_sinDir * _offSet), _y + (_cosDir * _offSet), 0];
|
||||
["ACE_Blooddrop_2", _bloodPos, _dir] call FUNC(spawnBlood);
|
||||
["ACE_Blooddrop_2", _bloodPos, _dir] call FUNC(createBlood);
|
||||
|
||||
if (ceil (MAXIMUM_DROPS * _damage) > 1) then {
|
||||
private _sin = _sinDir * _distanceBetweenDrops;
|
||||
@ -42,6 +42,6 @@ if (ceil (MAXIMUM_DROPS * _damage) > 1) then {
|
||||
for "_i" from 2 to _c do {
|
||||
_bloodPos params ["_x", "_y"];
|
||||
_bloodPos = [_x + _sin, _y + _cos, 0];
|
||||
["ACE_Blooddrop_1", _bloodPos, _dir] call FUNC(spawnBlood);
|
||||
["ACE_Blooddrop_1", _bloodPos, _dir] call FUNC(createBlood);
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user