Merge pull request #1845 from acemod/huntir-deadProjectile

HuntIR - Handle Dead Projectile
This commit is contained in:
Glowbal 2015-07-25 19:48:32 +02:00
commit 0e872a5ed5
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