#1843 - HuntIR - Handle Dead Projectile

This commit is contained in:
PabstMirror 2015-07-11 19:48:52 -05:00
parent 6de3df6474
commit 7a204cbdb1
2 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,12 @@ if (_ammo != "F_HuntIR") exitWith {};
[{
PARAMS_1(_projectile);
//If null (deleted or hit water) exit:
if (isNull _projectile) exitWith {};
//If it's not spinning (hit ground), bail:
if ((vectorMagnitude (velocity _projectile)) < 0.1) exitWith {};
"ACE_HuntIR_Propell" createVehicle (getPosATL _projectile);
[{
PARAMS_1(_position);

View File

@ -1,6 +1,8 @@
#define COMPONENT huntir
#include "\z\ace\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL
#ifdef DEBUG_ENABLED_HUNTIR
#define DEBUG_MODE_FULL
#endif