This commit is contained in:
lambdatiger 2024-01-15 15:23:12 -06:00
parent 54c4f45cf9
commit 22e26ee452
2 changed files with 7 additions and 9 deletions

View File

@ -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;

View File

@ -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 {