mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fedad7f8f7
* Add ace_chemlights. Make chemlight intensity and dropoff more realistic. Add orange, white, IR chemlights. Add chemlight shields. Make chemlight impact sounds more realistic. * Moved impact sound changes to a different branch. * Used QPATHTOF. Fixed scopes. Used initServer. Reduced lifetime duration. Checked privates. * Stringtable: 5 minute. * Blue lifetime. Removed ref to deprecated function * Use proper magazine macro. Add new chemlights to Misc box.
32 lines
709 B
Plaintext
32 lines
709 B
Plaintext
/*
|
|
* Author: voiper
|
|
* Create and throw IR chemlight.
|
|
*
|
|
* Arguments:
|
|
* 1: Original throw projectile <OBJECT>
|
|
* 2: Class of projectile <STRING>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [_projectile, _ammoType] call ace_chemlights_fnc_throwIR;
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
params ["_projectile", "_ammo"];
|
|
|
|
private _config = configFile >> "CfgAmmo" >> _ammo;
|
|
private _dummyClass = getText (_config >> "ACE_Chemlight_IR");
|
|
private _pos = getPosATL _projectile;
|
|
private _velocity = velocity _projectile;
|
|
|
|
deleteVehicle _projectile;
|
|
private _dummy = _dummyClass createVehicle _pos;
|
|
_dummy setPosATL _pos;
|
|
[_dummy, 90, 0] call BIS_fnc_setPitchBank;
|
|
_dummy setVelocity _velocity;
|