mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Cleanup Debug, Limit Satchel Mass
This commit is contained in:
parent
a6292db1e8
commit
7203bb2a3d
@ -62,8 +62,8 @@ if (!isNull _attachedTo) then {
|
||||
|
||||
if (isText(_triggerConfig >> "onPlace") && {[_unit,_explosive,_magazineClass,_triggerSpecificVars]
|
||||
call compile (getText (_triggerConfig >> "onPlace"))}) exitWith {_explosive};
|
||||
|
||||
systemChat format ["Placing %1 [%2]", _dir, _this];
|
||||
|
||||
|
||||
|
||||
[[_explosive, _dir, getNumber (_magazineTrigger >> "pitch")], QFUNC(setPosition)] call EFUNC(common,execRemoteFnc);
|
||||
|
||||
_explosive
|
||||
|
@ -161,6 +161,11 @@ GVAR(TweakedAngle) = 0;
|
||||
if (GVAR(placeAction) == PLACE_APPROVE) then {
|
||||
_placeAngle = 0;
|
||||
_expSetupVehicle = _setupObjectClass createVehicle (_virtualPosASL call EFUNC(common,ASLToPosition));
|
||||
|
||||
TRACE_1("Planting Mass", (getMass _expSetupVehicle));
|
||||
//If the object is too heavy, it can kill a player if it colides
|
||||
if ((getMass _expSetupVehicle) > 5) then {_expSetupVehicle setMass 5;};
|
||||
|
||||
if (isNull _attachVehicle) then {
|
||||
_placeAngle = _cameraAngle - GVAR(TweakedAngle) + 180;
|
||||
_expSetupVehicle setPosAsl _virtualPosASL;
|
||||
|
Loading…
Reference in New Issue
Block a user