-
Notifications
You must be signed in to change notification settings - Fork 738
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #874 from acemod/fragCleanup
Frag cleanup
- Loading branch information
Showing
24 changed files
with
92 additions
and
184 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class ACE_Settings { | ||
class GVAR(enabled) { | ||
displayName = "Frag System"; | ||
description = "Enables the shrapnel system for explosives"; | ||
typeName = "BOOL"; | ||
value = 1; | ||
}; | ||
}; |
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
Empty file.
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,5 @@ | ||
#include "script_component.hpp" | ||
|
||
if(isServer) then { | ||
[QGVAR(frag_eh), { _this call FUNC(frago); }] call ace_common_fnc_addEventHandler; | ||
}; |
This file was deleted.
Oops, something went wrong.
33 changes: 10 additions & 23 deletions
33
addons/frag/XEH_pre_Init.sqf → addons/frag/XEH_preInit.sqf
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 |
---|---|---|
@@ -1,48 +1,35 @@ | ||
#include "script_component.hpp" | ||
|
||
|
||
ADDON = false; | ||
|
||
PREP(doSpall); | ||
PREP(fired); | ||
PREP(frago); | ||
PREP(trackFragRound); | ||
PREP(spallTrack); | ||
PREP(doSpall); | ||
PREP(vectorDiffFast); | ||
PREP(trackFragRound); | ||
|
||
GVAR(trackedObjects) = []; | ||
GVAR(blackList) = []; | ||
GVAR(traceFrags) = false; | ||
|
||
GVAR(replacedBisArtyWrapper) = true; | ||
GVAR(trackedObjects) = []; | ||
|
||
GVAR(TOTALFRAGS) = 0; | ||
|
||
GVAR(spallIsTrackingCount) = 0; | ||
GVAR(spallHPData) = []; | ||
GVAR(spallIsTrackingCount) = 0; | ||
|
||
GVAR(autoTrace) = true; | ||
GVAR(traceID) = -1; | ||
GVAR(traces) = []; | ||
GVAR(tracesStarted) = false; | ||
GVAR(traceID) = -1; | ||
GVAR(autoTrace) = true; | ||
|
||
// TODO setting | ||
GVAR(enabled) = true; | ||
|
||
|
||
// * Other Shit */ | ||
PREP(frag_trace); | ||
PREP(denyFrag); | ||
PREP(BIS_ARTY_WRAPPER); | ||
PREP(startTracing); | ||
PREP(stopTracing); | ||
PREP(clearTraces); | ||
PREP(trackTrace); | ||
PREP(addBlackList); | ||
PREP(addTrack); | ||
PREP(drawTraces); | ||
PREP(removeTrack); | ||
PREP(spallHP); | ||
PREP(addBlackList); | ||
PREP(addManualTrack); | ||
PREP(startTracing); | ||
PREP(stopTracing); | ||
PREP(trackTrace); | ||
|
||
ADDON = true; |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "script_component.hpp" | ||
private ["_round"]; | ||
_round = _this select 0; | ||
#include "script_component.hpp" | ||
private ["_round"]; | ||
_round = _this select 0; | ||
GVAR(blackList) set[(count GVAR(blackList)), _round]; |
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 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
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
Oops, something went wrong.