mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
change of switch statements as referenced here https://github.com/acemod/ACE3/pull/9728#discussion_r1452728046
This commit is contained in:
parent
54c4f45cf9
commit
22e26ee452
@ -36,11 +36,10 @@ if (_object isKindOf "CAManBase") then {
|
||||
_box params ["_lowP","_upP"];
|
||||
|
||||
// adjust with stance
|
||||
private _stance = stance _object;
|
||||
switch (true) do {
|
||||
case (_stance isEqualTo "STAND"): {_upP set [2, 1.9];};
|
||||
case (_stance isEqualTo "CROUCH"): {_upP set [2, 1.3];};
|
||||
case (_stance isEqualTo "PRONE"): {_upP set [2, 0.8];};
|
||||
switch (stance _object) do {
|
||||
case ("STAND"): {_upP set [2, 1.9];};
|
||||
case ("CROUCH"): {_upP set [2, 1.3];};
|
||||
case ("PRONE"): {_upP set [2, 0.8];};
|
||||
};
|
||||
private _centerPoint = ASLToAGL getPosASL _object;
|
||||
|
||||
|
@ -81,10 +81,9 @@ private _totalFragCount = 0;
|
||||
private _crossSectionArea = 1;
|
||||
private _isPerson = _target isKindOf "CAManBase";
|
||||
if (_isPerson) then {
|
||||
private _stance = stance _target;
|
||||
switch (true) do {
|
||||
case (_stance isEqualTo "STAND"): {_height = 1.9; _crossSectionArea = 1.5;};
|
||||
case (_stance isEqualTo "CROUCH"): {_height = 1.2; _crossSectionArea = 1;};
|
||||
switch (stance _target) do {
|
||||
case ("STAND"): {_height = 1.9; _crossSectionArea = 1.5;};
|
||||
case ("CROUCH"): {_height = 1.2; _crossSectionArea = 1;};
|
||||
default {_crossSectionArea = 0.75;};
|
||||
};
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user