Fixed names and updated formatting

This commit is contained in:
lambdatiger 2024-01-11 14:01:50 -06:00
parent 9e67e31118
commit b1d54a1907
27 changed files with 30 additions and 31 deletions

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
["CBA_settingsInitialized", { ["CBA_settingsInitialized", {
if (isServer) then { if (isServer) then {

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
ADDON = false; ADDON = false;
@ -7,7 +7,7 @@ PREP_RECOMPILE_START;
PREP_RECOMPILE_END; PREP_RECOMPILE_END;
GVAR(materialSpallCache) = createHashMap; GVAR(spallMaterialCache) = createHashMap;
GVAR(spallRoundCache) = createHashMap; GVAR(spallRoundCache) = createHashMap;
GVAR(lastSpallTime) = -2; GVAR(lastSpallTime) = -2;

View File

@ -1,3 +1,3 @@
#include "script_component.hpp" #include "..\script_component.hpp"
#include "XEH_PREP.hpp" #include "XEH_PREP.hpp"

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class ADDON {

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Jaynus, NouberNou, Lambda.Tiger * Author: Jaynus, NouberNou, Lambda.Tiger
* Adds a round to the blacklist (will be ignored). * Adds a round to the blacklist (will be ignored).

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Lambda.Tiger * Author: Lambda.Tiger
* This function adds a round to be traced * This function adds a round to be traced

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Lambda.Tiger * Author: Lambda.Tiger
* Cleares all dev spheres and traces * Cleares all dev spheres and traces

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Lambda.Tiger * Author: Lambda.Tiger
* Per frame function to draw all dev traces * Per frame function to draw all dev traces

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Lambda.Tiger * Author: Lambda.Tiger
* Add fired rounds to dev track. * Add fired rounds to dev track.

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Lambda.Tiger, based on fnc_dev_debugAmmo by "ACE-Team" * Author: Lambda.Tiger, based on fnc_dev_debugAmmo by "ACE-Team"
* Dumps all ammo types to see if there's any reason to spawn fragments * Dumps all ammo types to see if there's any reason to spawn fragments

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Lambda.Tiger * Author: Lambda.Tiger
* Add a colored sphere at a specified point * Add a colored sphere at a specified point

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Lambda.Tiger * Author: Lambda.Tiger
* Handle for debug actions when switching units * Handle for debug actions when switching units

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Lambda.Tiger * Author: Lambda.Tiger
* Add a hitbox outline to an object * Add a hitbox outline to an object

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Lambda.Tiger * Author: Lambda.Tiger
* This function adds an object to have it's course tracked (every frame). * This function adds an object to have it's course tracked (every frame).

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Jaynus, NouberNou, Lambda.Tiger * Author: Jaynus, NouberNou, Lambda.Tiger
* This function handles creating both random and targeted fragments as well * This function handles creating both random and targeted fragments as well

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Jaynus, NouberNou, Lambda.Tiger * Author: Jaynus, NouberNou, Lambda.Tiger
* This function creates fragments randomly spreading out from an explosion to * This function creates fragments randomly spreading out from an explosion to

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Jaynus, NouberNou, Lambda.Tiger * Author: Jaynus, NouberNou, Lambda.Tiger
* This function creates fragments targeted at specific entities, up to * This function creates fragments targeted at specific entities, up to

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: ACE-Team * Author: ACE-Team
* Dev things * Dev things

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Jaynus, NouberNou, Lambda.Tiger, * Author: Jaynus, NouberNou, Lambda.Tiger,
* This function creates spalling if the hit slowed the speed down enough. * This function creates spalling if the hit slowed the speed down enough.

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Jaynus, NouberNou, Lambda.Tiger * Author: Jaynus, NouberNou, Lambda.Tiger
* This function returns fragmentation parameters for a specific * This function returns fragmentation parameters for a specific

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Lambda.Tiger * Author: Lambda.Tiger
* This function returns a classification of material type based * This function returns a classification of material type based
@ -18,7 +18,7 @@
params ["_surfType"]; params ["_surfType"];
private _material = GVAR(materialSpallCache) get _surfType; private _material = GVAR(spallMaterialCache) get _surfType;
TRACE_2("materialCache",_surfType,_material); TRACE_2("materialCache",_surfType,_material);
if !(isNil "_material") exitWith { if !(isNil "_material") exitWith {
@ -52,7 +52,7 @@ _material = switch (true) do {
default { "ground" }; default { "ground" };
}; };
GVAR(materialSpallCache) set [_surfType, _material]; GVAR(spallMaterialCache) set [_surfType, _material];
TRACE_2("materialCacheSet",_surfType,_material); TRACE_2("materialCacheSet",_surfType,_material);
_material _material

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Lambda.Tiger * Author: Lambda.Tiger
* Adds setting defined blacklisted rounds to blacklist * Adds setting defined blacklisted rounds to blacklist

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Lambda.Tiger * Author: Lambda.Tiger
* For performance, we load a bunch of vanilla materials preemptively * For performance, we load a bunch of vanilla materials preemptively
@ -15,7 +15,7 @@
* Public: No * Public: No
*/ */
GVAR(materialSpallCache) = createHashMapFromArray [ GVAR(spallMaterialCache) = createHashMapFromArray [
["a3\data_f\penetration\armour.bisurf","metal"], ["a3\data_f\penetration\armour.bisurf","metal"],
["a3\data_f\penetration\armour_plate.bisurf","metal"], ["a3\data_f\penetration\armour_plate.bisurf","metal"],
["a3\data_f\penetration\armour_plate_100mm.bisurf","metal"], ["a3\data_f\penetration\armour_plate_100mm.bisurf","metal"],

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Lambda.Tiger * Author: Lambda.Tiger
* This function adds rounds using their config init EH * This function adds rounds using their config init EH

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Lambda.Tiger * Author: Lambda.Tiger
* This function checks whether an ammunition type should cause fragmentation * This function checks whether an ammunition type should cause fragmentation

View File

@ -1,4 +1,4 @@
#include "script_component.hpp" #include "..\script_component.hpp"
/* /*
* Author: Lambda.Tiger * Author: Lambda.Tiger
* This function checks whether an ammunition type should cause spalling * This function checks whether an ammunition type should cause spalling

View File

@ -1 +0,0 @@
#include "\z\ace\addons\frag\script_component.hpp"