Cleanup Debug, Limit Satchel Mass

This commit is contained in:
PabstMirror 2015-08-05 12:22:43 -05:00
parent a6292db1e8
commit 7203bb2a3d
2 changed files with 8 additions and 3 deletions

View File

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

View File

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