-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tripflares - Change setting to different magazines
Also Make airburst a trigger option
- Loading branch information
1 parent
222c408
commit 4f34540
Showing
14 changed files
with
86 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#include "..\script_component.hpp" | ||
/* | ||
* Author: VKing, MikeMF, PabstMirror | ||
* Spawns a flare on the ground for tripflare trigger | ||
* | ||
* Arguments: | ||
* 0: Ammo <OBJECT> | ||
* 1: Position ASL <ARRAY> | ||
* | ||
* Return Value: | ||
* None | ||
* | ||
* Example: | ||
* [flare, [0,0,0]] call ace_explosives_fnc_tripflare_init | ||
* | ||
* Public: no | ||
*/ | ||
|
||
params ["_mine"]; | ||
_mine addEventHandler ["Explode", { // runs where mine is local | ||
params ["_projectile", "_posASL"]; | ||
TRACE_2("tripflare-explode",_projectile,_posASL); | ||
|
||
private _flareClass = getText ((configOf _projectile) >> QGVAR(flareClass)); | ||
if (_flareClass == "") exitWith { ERROR_1("bad flare cfg %1",typeOf _projectile) }; | ||
|
||
private _airburst = _projectile getVariable [QGVAR(airburst), false]; | ||
if (_airburst) then { | ||
_posASL set [2, _posASL # 2 + 200]; | ||
}; | ||
|
||
private _flare = createVehicle [_flareClass, ASLToAGL _posASL, [], 0, "CAN_COLLIDE"]; | ||
_flare setVelocity [0, 0, -1]; // Used for air mode, does nothing if already on the ground. | ||
|
||
TRACE_1("",_flare); | ||
["ace_tripflareTriggered", [_flare, ASLToAGL _posASL]] call CBA_fnc_globalEvent; | ||
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters