2024-05-18 09:16:43 +00:00
|
|
|
#include "..\script_component.hpp"
|
|
|
|
/*
|
|
|
|
* Author: Jaynus, NouberNou
|
|
|
|
* Adds a round to the blacklist (will be ignored).
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Projectile <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [_projectile] call ace_frag_fnc_addBlackList
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_projectile"];
|
2024-05-20 01:06:16 +00:00
|
|
|
TRACE_2("addBlackList",_projectile,typeOf projectile);
|
2024-05-18 09:16:43 +00:00
|
|
|
|
2024-07-17 02:08:18 +00:00
|
|
|
_projectile setVariable [QGVAR(blacklisted)];
|
2024-07-18 23:55:19 +00:00
|
|
|
_projectile removeEventHandler [
|
|
|
|
"HitPart",
|
|
|
|
_projectile getVariable [QGVAR(hitPartEventHandler), -1]
|
|
|
|
];
|
|
|
|
_projectile removeEventHandler [
|
|
|
|
"Explode",
|
|
|
|
_projectile getVariable [QGVAR(explodeEventHandler), -1]
|
|
|
|
];
|