Commit Graph

306 Commits

Author SHA1 Message Date
lambdatiger
3874146b23 formatting 2024-01-15 16:32:43 -06:00
lambdatiger
c05be02530 formatting 2024-01-15 16:27:29 -06:00
lambdatiger
054b9cda23 fixed more spacing issues 2024-01-15 16:13:48 -06:00
lambdatiger
96dc215f09 Merge branch 'master' of https://github.com/lambdatiger/ace_frag-overhaul 2024-01-15 16:10:55 -06:00
lambdatiger
8683e0aa56 Fixed array of double spaced format errors 2024-01-15 16:10:01 -06:00
lambdatiger
c7a2769bdd
Really obvious isNull instead of isEqualTo
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-01-15 16:05:58 -06:00
lambdatiger
4dee712d70 fixed example syntax 2024-01-15 15:37:18 -06:00
lambdatiger
2f1c7d9bf7 Merge branch 'master' of https://github.com/lambdatiger/ace_frag-overhaul 2024-01-15 15:29:26 -06:00
lambdatiger
7581a480eb
Optimized isNull check
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-01-15 15:24:47 -06:00
lambdatiger
ced7aeb50c
Deleted whitespace in doFrag
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-01-15 15:24:11 -06:00
lambdatiger
22e26ee452 change of switch statements as referenced here https://github.com/acemod/ACE3/pull/9728#discussion_r1452728046 2024-01-15 15:23:12 -06:00
lambdatiger
54c4f45cf9 possilbe "magic number" cleanup and formatting 2024-01-15 15:18:42 -06:00
lambdatiger
ff462333cb Comment & documentation spelling and grammar improved 2024-01-15 14:39:41 -06:00
lambdatiger
a0812371c9 missed a trailing space 2024-01-15 14:27:29 -06:00
lambdatiger
0f82f59955 typos from last commit 2024-01-15 14:08:27 -06:00
lambdatiger
3f45f7735b Convereted toLower to toLowerANSI 2024-01-15 13:55:15 -06:00
lambdatiger
4bd866b97d Merged commits 2024-01-15 13:55:01 -06:00
lambdatiger
eeb08c3f05 Made variable names more verbose and added trailing newlines 2024-01-15 13:42:45 -06:00
lambdatiger
62a82ec71d added trailing newlines 2024-01-15 13:39:19 -06:00
lambdatiger
0e1bd6ab0e Got a little overzealous pruning & expanding variable names in the dev functions 2024-01-15 13:37:12 -06:00
lambdatiger
f28d5d2372 Reswept dev functions to match ACE code guidelines 2024-01-15 13:13:59 -06:00
lambdatiger
5273b002f9 Replaced a magic number 2024-01-15 01:18:47 -06:00
lambdatiger
97547700d2 Added spall info caching and made variable name changes for clarity 2024-01-14 23:10:15 -06:00
lambdatiger
eb61f5f7c0 Updated debugging, by default tracking spheres sync properly and messages are a bit clearer 2024-01-14 23:08:37 -06:00
lambdatiger
3da173e0a9 spall debug sphere improvements 2024-01-14 18:56:57 -06:00
lambdatiger
e1578188c9 Made debug mode semi-MP compliant 2024-01-14 18:47:18 -06:00
lambdatiger
fe1850a34a Fixed issue with spalling happening on thin surfaces instead of thicker surfaces hit afterwards 2024-01-14 18:46:52 -06:00
lambdatiger
fbcf196402 Attempt to clean up formatting onall files 2024-01-13 00:35:22 -06:00
lambdatiger
fb8f010332 made default frag info (when not defined) perform more middle of the road for munitions 2024-01-12 20:27:07 -06:00
lambdatiger
21c72313f4 Adding useful TRACE statement 2024-01-12 02:08:41 -06:00
lambdatiger
ad1916f513 Blacklisting error 2024-01-12 01:54:58 -06:00
lambdatiger
2805699c0c Working updating all previously unused/undefined vanilla round definitions 2024-01-12 01:50:01 -06:00
lambdatiger
3d3fb434a7 Someday I will not accidentally hit a key an break things 2024-01-12 01:49:25 -06:00
lambdatiger
40810f282f Updated debug dump functions for ease of use 2024-01-11 17:58:47 -06:00
lambdatiger
1cf901703a Fixed a few issues script errors that went under the radar until now 2024-01-11 16:13:02 -06:00
lambdatiger
fbc710ce47 Removed tabs 2024-01-11 15:47:48 -06:00
lambdatiger
e290fd7c04 Fixed MP compat issue 2024-01-11 15:44:15 -06:00
lambdatiger
b1d54a1907 Fixed names and updated formatting 2024-01-11 14:01:50 -06:00
lambdatiger
3e3ed12503 Final submunition code cull 2024-01-10 19:47:05 -06:00
lambdatiger
a64fff960a Fixed more comments 2024-01-10 19:02:07 -06:00
lambdatiger
eef48da6bc Converetd all stray tabs to spaces 2024-01-10 18:51:38 -06:00
lambdatiger
a04e7a83e6 Small bug & config name fixes 2024-01-10 18:34:54 -06:00
lambdatiger
2a1f609e3c changed files names and small optimizations 2024-01-10 17:41:13 -06:00
lambdatiger
ebf1a707c1 Added initialization of material cache for performance 2024-01-10 17:40:36 -06:00
lambdatiger
7c399b8c9e Forgot to actually cache the spall material 2024-01-10 17:39:46 -06:00
lambdatiger
0da454d270 removed unused functions 2024-01-10 15:47:50 -06:00
lambdatiger
3578b7a2fb Fixed small bugs with material selection 2024-01-10 15:46:17 -06:00
lambdatiger
0af6a74a41 Updated debug settings and staged localization strings 2024-01-10 00:55:33 -06:00
lambdatiger
8f70fa971a clarified variable names and removed submunition function call paths 2024-01-10 00:30:46 -06:00
lambdatiger
1e93453963 switch from loadFile to preprocessFile and dusted off the regex brain cell 2024-01-10 00:17:56 -06:00
lambdatiger
98fd580540 Fixed authors 2024-01-10 00:16:46 -06:00
lambdatiger
d25d6a61b3 readded seperate debug draw define 2024-01-09 23:17:08 -06:00
lambdatiger
fc7d68e129 Fixed additional quotes causing issues in .bisurf files 2024-01-09 23:16:08 -06:00
lambdatiger
71f26f5df6 Updated spall to use material 2024-01-09 21:07:01 -06:00
lambdatiger
acb7249039 added impact angle calculation handle to minimize spawning spall inside walls 2024-01-09 19:03:12 -06:00
lambdatiger
210a876c0c missed underscore 2024-01-09 17:36:36 -06:00
lambdatiger
a9a5a4a9ba dealt with cases were projectile is deleted before fragmentation 2024-01-09 17:25:38 -06:00
lambdatiger
026e12b2f9 Added methods to retrieve impact surface type 2024-01-09 17:25:09 -06:00
lambdatiger
48d37a96e0 update caching access function names to align with each other and added some preliminary material consideration for spalling 2024-01-09 14:00:43 -06:00
lambdatiger
132dc6d4c8 Fixed author lists 2024-01-09 11:54:52 -06:00
lambdatiger
601083bce3 Increased readability to doSpallMomentum 2024-01-09 00:54:11 -06:00
lambdatiger
3a088bb24c Returned some missing variable names. 2024-01-09 00:26:43 -06:00
lambdatiger
fe310760fc Fixed variable names and mislabeled inequalities 2024-01-09 00:25:58 -06:00
lambdatiger
76c2c32493 Updated to use cached info 2024-01-08 23:59:06 -06:00
lambdatiger
02dd35f63f Reformatted for readability and optimized first if statement 2024-01-08 21:55:02 -06:00
lambdatiger
c3f04596c0 removed some redundant switch cases 2024-01-08 21:41:52 -06:00
lambdatiger
f852a3ab2d Added a config defined holdoff per vehicle fragmenting for performance 2024-01-08 21:41:31 -06:00
lambdatiger
1933ea4cfe reworked formatting and debug functions to increase readability 2024-01-08 21:41:05 -06:00
lambdatiger
53976e39a3 fixed spelling errors 2024-01-08 21:40:12 -06:00
lambdatiger
990667b24b changed some WARNINGs to TRACEs 2024-01-08 21:38:55 -06:00
lambdatiger
596240a57d Added init event handlers instead of fired 2024-01-08 21:38:15 -06:00
lambdatiger
14e7ef7cba removed leftover script profiler calls 2024-01-08 18:07:15 -06:00
lambdatiger
bfb3fa851c added fnc_initRound 2024-01-08 18:06:57 -06:00
lambdatiger
42832aa95c Clarified variable names 2024-01-08 15:38:26 -06:00
lambdatiger
370f1ce67f Added shot parents to spalling 2024-01-08 15:38:19 -06:00
lambdatiger
3c1e912787 Initial commit:
- Added new ammo cfg types
 - Added new caching functions
 - Added dev functions
 - Transfered core system to vanilla projectile EHs
 - Added stringtable sub categories
 - Reworked fragmenting and spalling to us submunitions
   - Frag
     - Implemented system around chance to hit
     - Switched from hitbox estimation to hitting specific HPs
     - Updated chance to miss method based on solid angle hit chance
     - Split random & targeted frag to their own subfunctions
   - Spall
     - Uses a system of estimated momentum changes to generate spall
2024-01-08 15:22:52 -06:00
PabstMirror
6bc5193a79
Tools - Check example funcs in document_functions.py (#9630) 2023-11-08 12:00:05 -06:00
jonpas
742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00
GhostIsSpooky
76524f7c26
Frag - Fix fuse-arming distance calculation (#8628) 2021-11-08 00:20:57 +01:00
Ozan Eğitmen
2a7eb07803
Use modelToWorldVisualWorld (#8489)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2021-10-10 15:37:05 +02:00
Neviothr
75f7ed7532
Utilize isNotEqualTo (#7929)
* Utilize isNotEqualTo

* undo changes to some files

* redo some changes, fix based on @Vdauphin 's comment

* fix validator issues

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2021-02-27 11:05:05 -06:00
PabstMirror
270a5a930f
Frag - Fix spallTrack (#7492) 2020-01-28 19:12:11 -06:00
Josuan Albin
5ae0ef6bbe Replace remaining lineIntersects with lineIntersectsSurfaces (#6898)
* Fix explosive placement while underwater

* Apply suggestions from code review

Co-Authored-By: alganthe <alganthe@live.fr>

* Change placeApprove header to reflect changes

* Replace lineIntersectsWith in isInMedicalFacility

* Replace linesIntersects in isInRepairFacility, fix params

Public func, params should have an expected type.

* Replace linesIntersects in spallTrack

* Replace lineIntersects in getFirstObjectIntersection and findReflection

* Replace lineIntersects in advanced throwing

grenades can pass glass underwater now, I bet all of 0 person will be glad that horrendous bug is now fixed.

* Fix possible issue in pointing while underwater

* Fix possible issue while underwater in attach

* Replace count with isEqualTo in lineIntersectsSurfaces replacements

* Fix inverted conditions

* Fix drawArc

* Fix fnc_attach

* Reverse advanced_throwing and spallTrack lineIntersects changes

* Fix issues raised from code review
2019-12-07 14:58:21 -06:00
Dedmen Miller
e2ac18a05d [WIP] Fix script errors reporting wrong line numbers (#6407)
* advanced_ballistics

* advanced_fatigue

* advanced_throwing

* ai

* aircraft

* arsenal

* atragmx

* attach

* backpacks

* ballistics

* captives

* cargo

* chemlights

* common

* concertina_wire

* cookoff

* dagr

* disarming

* disposable

* dogtags

* dragging

* explosives

* fastroping

* fcs

* finger

* frag

* gestures

* gforces

* goggles

* grenades

* gunbag

* hearing

* hitreactions

* huntir

* interact_menu

* interaction

* inventory

* kestrel4500

* laser

* laserpointer

* logistics_uavbattery

* logistics_wirecutter

* magazinerepack

* map

* map_gestures

* maptools

* markers

* medical

* medical_ai

* medical_blood

* medical_menu

* microdagr

* minedetector

* missileguidance

* missionmodules

* mk6mortar

* modules

* movement

* nametags

* nightvision

* nlaw

* optics

* optionsmenu

* overheating

* overpressure

* parachute

* pylons

* quickmount

* rangecard

* rearm

* recoil

* refuel

* reload

* reloadlaunchers

* repair

* respawn

* safemode

* sandbag

* scopes

* slideshow

* spectator

* spottingscope

* switchunits

* tacticalladder

* tagging

* trenches

* tripod

* ui

* vector

* vehiclelock

* vehicles

* viewdistance

* weaponselect

* weather

* winddeflection

* yardage450

* zeus

* arsenal defines.hpp

* optionals

* DEBUG_MODE_FULL 1

* DEBUG_MODE_FULL 2

* Manual fixes

* Add SQF Validator check for #include after block comment

* explosives fnc_openTimerUI

* fix uniqueItems
2018-09-17 14:19:29 -05:00
PabstMirror
b1526ccb86
Spall - Don't throw script errors in doSpall if input is bad (#6322)
- Fix #5614
- Don't run tracking siumlation on small calibre ammo that won't ever spall
2018-05-09 10:08:26 -05:00
SilentSpike
81722abeac Use engine command to select weighted spall size (#5985)
* Use engine command to select weighted spall size

* Remove multi-line macro
2017-12-28 19:08:11 -06:00
PabstMirror
8e6e2b3283
Ignore explosives placed without ace_explosives (#5962) 2017-12-22 18:34:35 -06:00
Phyma
ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00
PabstMirror
8d43b899e6 Frag - Cleanup and Performance (#5010)
* Frag - Cleanup and Performance

* Add dots
2017-04-11 10:33:56 -05:00
PabstMirror
33b19f7b4c Fix MUL macros (#4888) 2017-02-11 15:07:10 -06:00
Ozan Eğitmen
d2ee1e987a Frag Superanal Cleanup (#4803)
* Minimal frag cleanup

* Why did this even happen in the first place
2017-02-10 12:28:27 -06:00
PabstMirror
321bb0bc57 Add frag definitions for remaining ammo (#4736)
Remove rpt warning
Close #342
2016-12-01 11:01:55 -06:00
Ozan Eğitmen
49b5a0ea86 Cleanup Frag Component (#4581)
* Cleanup frag component

* Optimize fnc_addTrack

* Add additional cleanup

* Please work?

* Add more cleanup

* Fix script errors

* Fix/optimize spalling

* Add missing changes
2016-10-27 00:16:31 +02:00
commy2
05d30c5573 convert log macros to cba versions (#4282)
* convert log macros to cba versions

* Add changes to AB

* remove obsolete macro
2016-10-02 12:55:31 +02:00
PabstMirror
85c4a1f021 Fix frag - reflectionsEnabled (#4475)
PFEH never exited
2016-09-29 10:42:21 -05:00
Glowbal
b489750d5b Minor optimizations using private, params, and isEqualType (#4323)
* Optimizations with private, params, and isEqualType

* Fixed tab being used instead of space

* Fixed tabs inserted by notepad++

* More usage of new private syntax and params

- changed a few checks for an array being empty to `_arr isEqualTo []`
rather than `count _arr == 0`
- added more uses of `private` on the same line as the variable is
declared
- added more uses of params to assign variables passed as parameters
- removed unnecessary parentheses
- removed several unnecessary variable declarations with private array
syntax

* clean up and formatting
2016-09-04 16:44:22 +02:00
Glowbal
a2a8f53157 Merge pull request #4155 from acemod/firedEHCleanup
Minor cleanup of fired EH listeners
2016-07-28 23:49:01 +02:00
commy2
4f77adaa0c Merge pull request #4137 from 654wak654/master
Use GVAR Macro Where Applicable
2016-07-26 19:15:00 +02:00
PabstMirror
455f65947a Minor cleanup of fired EH listeners 2016-07-23 23:08:40 -05:00
PabstMirror
399404024c Don't frag for some shells that end in water (#4136)
shotbullet, shotShell don't seem to explode when touching water, so
don't create frags
Fix #4134
2016-07-21 20:08:11 -05:00
Ozan Eğitmen
8f80cd59c8 Use GVAR where applicable 2016-07-20 07:15:18 +03:00
jonpas
bd5f6107a0 Merge branch 'master' into eol-lf 2016-06-09 14:24:45 +02:00
jonpas
b0352fdeb9 Merge branch 'master' into eol-lf 2016-06-02 17:02:09 +02:00
jonpas
26fbc36cab Merge branch 'master' into cbaEventSystem 2016-05-31 22:36:08 +02:00
commy2
7512c4e52e manual merge 2016-05-30 21:14:34 +02:00
commy2
e7fa02d0d9 Merge pull request #3812 from acemod/cbaDelayedExecFnc
Use new CBA delayed execution functions and deprecate ACE functions
2016-05-30 21:02:29 +02:00
commy2
272775445f Merge pull request #3670 from acemod/useQuotedFuncMacros
Use new quoted function macros
2016-05-30 21:00:23 +02:00
jonpas
816da2aef1 Normalize to LF line endings 2016-05-30 18:37:03 +02:00
SilentSpike
108ff4f644 Replace ACE event system calls with CBA counterparts
Regex used:

\[(.+?),(.+?),(.+?)\]\s+call\s+E?FUNC\((common,)?(target|object)Event\)
[$1,$3,$2] call CBA_fnc_targetEvent

E?FUNC\((common,)?(server|global|local)Event\)
CBA_fnc_$2Event

E?FUNC\((common,)?(add|remove)EventHandler\)
CBA_fnc_$2EventHandler
2016-05-22 16:47:39 +01:00
jonpas
e7dbcd7b58 Replace delayed execution functions with new CBA counterparts 2016-05-22 15:29:01 +02:00
commy2
da70854568 manual merge 2016-05-18 11:48:27 +02:00
PabstMirror
9f6661f4db Make 40mm Grenades Frag (#3679)
* Make 40mm Grenades Frag

* Just use existing force cfg instead of adding new

Add RHS compat entries
2016-05-07 15:35:39 -05:00
BaerMitUmlaut
7fcbe93b71 Cleaned up excessive whitespace 2016-05-03 02:32:44 +02:00
jonpas
ccaec31a90 Use new QFUNC and QEFUNC macros 2016-04-08 20:43:26 +02:00
commy2
467075ad67 replace timePFH with CBA_missionTime 2016-03-02 11:01:39 +01:00
jonpas
7f022eda00 Replace Purista with Roboto - everywhere, close #3401 2016-02-24 15:06:27 +01:00
esteldunedain
a8131f597a Merge branch 'master' of github.com:KoffeinFlummi/ACE3 into reflectionsDefaultOff 2016-02-18 12:18:51 -03:00
esteldunedain
2b1c312d13 Make explosion reflections optional, default off 2016-02-06 23:46:40 -03:00
esteldunedain
b70ae9207c Apply the ufeh to ACE_Frag 2016-02-06 17:12:28 -03:00
PabstMirror
76c9e1560d Frag - only run addPfhRound on ammo that will frag
If spall is not enabled (default) then calculate which ammo types will
actually cause a frag event, cache and then only track those.
2016-01-01 02:33:08 -06:00
commy2
ca9b909e75 fix CBA_fnc capitalization 2015-11-30 16:45:20 +01:00
Michael Braun
5047d4de1c Switched to ACE_LOG<LEVEL>_# variation 2015-08-26 17:39:44 +02:00
Michael Braun
097506076f Fixed format usage in macros requiring ARR_# for it to work 2015-08-26 16:48:55 +02:00
Michael Braun
9e10aa86d7 Standardize logging format through ACE_LOG macros 2015-08-26 15:32:54 +02:00
PabstMirror
b3741f4036 Capitalization for macro CBA_fnc_addPerFrameHandler 2015-08-04 02:34:38 -05:00
PabstMirror
bca5fa1f4a Spall - execNextFrame instead of addPerFrameHandler 2015-07-25 03:20:03 -05:00
PabstMirror
6c7ba7b5ae Zeus module on dedicated server 2015-06-18 22:43:49 -05:00
PabstMirror
375c81d9b0 Connect Zeus module to Frag 2015-06-18 22:13:06 -05:00
PabstMirror
9c0478ddfd Cleanup 2015-06-18 22:04:48 -05:00
PabstMirror
e235ebcc15 Fix frag always killing thrower 2015-06-18 21:48:23 -05:00
PabstMirror
ccb30e0a47 use master pfh for frag 2015-06-16 22:39:37 -05:00
jaynus
582ea318d4 Merge remote-tracking branch 'origin/superTime'
Conflicts:
	addons/frag/functions/fnc_fired.sqf
	addons/frag/functions/fnc_trackFragRound.sqf
2015-05-22 07:24:55 -07:00
jaynus
c297257421 Disable frag by default. Add @pabstmirror fix closes #1339 closes #820 2015-05-21 15:06:55 -07:00
jaynus
c924baefd7 All instances of time and diagTicktime changed to ACE_time / ACE_diagTime. 2015-05-21 09:42:44 -07:00
jaynus
58a55313cd Changed: Entire frag system re-optimized to a single tracking/GC index-based PFH.
Changed: Spalling calculations now throttled across frames and limited; accurate but performant
Changed: All lookups are now index-based on a global projectiles array. This reduced runtime dramatically for all fragmentation.
2015-05-13 17:06:10 -07:00
jaynus
aef896cc21 Merge remote-tracking branch 'origin/explosive_reflection' into fragSpallOptimization
Conflicts:
	addons/frag/XEH_preInit.sqf
2015-05-13 15:52:18 -07:00
jaynus
553942bbc7 Initial commit of frag/spalling optimization rewrite. Now tracks in single PFH, with index-based referencing instead of searches. TODO: Break spall calculation up to multiple frames. Needs testing. 2015-05-13 14:33:14 -07:00
PabstMirror
4185874a9a Frag Privates 2015-05-12 23:19:31 -05:00
jaynus
b7b6cb6086 Fixed: Adds an enabler config to ace_frag, disabling the PFH for any round not enabled. 2015-05-08 11:27:17 -07:00
ulteq
50a8a89b28 Added missing privates 2015-04-30 10:50:49 +02:00
ulteq
416a914253 More vector math replacements 2015-04-27 22:14:08 +02:00
ulteq
0d6d96e76c Cleanup++:
* Added missing privates
* Removed unused privates
* Replaced some old vector calculations with new vector commands
2015-04-27 22:04:35 +02:00
ulteq
3c92cab7af Reverted the addBlackList function 2015-04-27 14:02:59 +02:00
ulteq
1fc044dfa9 Cleanup++:
*Moved GVAR(enabled) into ACE_Settings.hpp
*Replaced BIS_fnc_magnitude with vectorMagnitude
*Renamed Nou_GBU12
*Added G_40mm_HE config data
2015-04-26 23:14:54 +02:00
ulteq
6170ef0d50 Code cleanup 2015-04-26 23:05:58 +02:00
KoffeinFlummi
59bdc23a95 Merge branch 'master' into curatorFragmentation 2015-04-25 23:55:29 +02:00
KoffeinFlummi
24efbf731d Convert frag config entry names to lowercase 2015-04-23 15:46:50 +02:00
Glowbal
fb93e9e9bc wrapped track in debug define 2015-04-20 23:38:50 +02:00
Glowbal
24c32d8e3f added configuration 2015-04-20 23:18:53 +02:00
Glowbal
7b790ffb1a staged work 2015-04-20 22:48:11 +02:00
Nou
15ac5ec7b8 Two explosions processed per-frame. 2015-04-14 16:33:47 -07:00
Nou
114d66af7e Do it every frame, no need for delay. 2015-04-14 13:00:57 -07:00
Nou
14579fb90e Explosive reflection, enabled on all frag rounds. 2015-04-14 00:41:19 -07:00
jaynus
1bb6be5654 Cleaning up of all tabs in source code files. 2015-04-06 09:22:43 -07:00
Nou
12cadc603f Fragmentation enabled. 2015-03-21 21:22:16 -07:00
jaynus
3fb2a8e245 big code clean up 2015-01-12 21:14:27 -08:00