mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
#1843 - HuntIR - Handle Dead Projectile
This commit is contained in:
parent
6de3df6474
commit
7a204cbdb1
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user