ACE3/addons/spottingscope/XEH_preInit.sqf
commy2 a38afac04b spotting scope updates (#5880)
* add tanoha forces spotting scopes and add preview picture

* factory standard preview picture...

* spotting scope damage materials, hide damage anim, buff hp

* delete unused model

* make ai call out spotting scope, proper thread and cost, better icon

* spotting scope death effects

* disable smoke effect
2017-12-10 12:01:27 -06:00

20 lines
595 B
Plaintext

#include "script_component.hpp"
ADDON = false;
PREP_RECOMPILE_START;
#include "XEH_PREP.hpp"
PREP_RECOMPILE_END;
["ACE_SpottingScopeObject", "killed", {
params ["_wreck"];
private _tube = "ACE_SpottingScope_tube" createVehicle [0,0,0];
_tube setDir (getDir _wreck - 180);
_tube setPosASL AGLToASL (_wreck modelToWorld (_wreck selectionPosition "destructionEffect"));
_tube setVelocity [1 - random 2, 1 - random 2, 4];
_tube addTorque (vectorNormalized [1 - random 2, 1 - random 2, 1 - random 2] vectorMultiply 4);
}] call CBA_fnc_addClassEventHandler;
ADDON = true;