Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: re-write AOE, add FilterTargets, Update TacArc Reading #1035

Merged
merged 24 commits into from
Oct 9, 2023

Conversation

aronwk-aaron
Copy link
Member

@aronwk-aaron aronwk-aaron commented Mar 29, 2023

Re-write AOE behavior for new filter targets
Update Tacarc to use new filter targets
Added dev commands for skill and attack debugging

Tested that changes to tac arc only affect filtered enemies.
Removed hardcoded logic to add faction to the includeFactionsList for lot 14466
Tested that the skill from 14466 will hit players (Rain of Fire attack in the spider boss battle).

Tested that AOE filter and sorting targets works as expected given the filter parameters
Targets are hit from closest to furthest up to the max target count.

@aronwk-aaron aronwk-aaron changed the title Make filter target better AOE and TacArc Re-write Mar 29, 2023
@aronwk-aaron aronwk-aaron force-pushed the make-filterTarget-better branch from 67a4511 to c415d05 Compare March 30, 2023 03:28
Update Tacarc to use new filter targets
Added dev commands for skill and attack debugging
@aronwk-aaron aronwk-aaron reopened this Mar 30, 2023
@aronwk-aaron aronwk-aaron changed the title AOE and TacArc Re-write AOE and FilterTargets Re-write Mar 30, 2023
rather than controllable physics
Since destroyables are what can be hit
@aronwk-aaron aronwk-aaron marked this pull request as ready for review March 30, 2023 04:31
@aronwk-aaron aronwk-aaron mentioned this pull request Mar 30, 2023
@aronwk-aaron aronwk-aaron marked this pull request as draft March 31, 2023 14:45
@aronwk-aaron
Copy link
Member Author

Converting to draft to re-write using the logic the client does with passing one vector as a reference to filter and the list being populated outside of that filter.
will save on memory, potentially instead of having multiple vectors of entity pointers just sitting in memory

reduce memory usage by only using one vector and removing invalid entries
get entities in the proximity rather than all entities with des comps in the instance, as was done in live
@aronwk-aaron aronwk-aaron marked this pull request as ready for review March 31, 2023 22:41
@aronwk-aaron
Copy link
Member Author

aronwk-aaron commented Mar 31, 2023

re-tested everything listed in the original comment

dGame/dBehaviors/AreaOfEffectBehavior.cpp Outdated Show resolved Hide resolved
dGame/dBehaviors/AreaOfEffectBehavior.cpp Outdated Show resolved Hide resolved
dGame/dBehaviors/AreaOfEffectBehavior.cpp Outdated Show resolved Hide resolved
dGame/dBehaviors/AreaOfEffectBehavior.cpp Show resolved Hide resolved
dGame/dBehaviors/BehaviorContext.cpp Outdated Show resolved Hide resolved
dGame/dUtilities/SlashCommandHandler.cpp Outdated Show resolved Hide resolved
dGame/dBehaviors/BehaviorContext.h Outdated Show resolved Hide resolved
dGame/dBehaviors/BehaviorContext.h Outdated Show resolved Hide resolved
dGame/dBehaviors/TacArcBehavior.h Show resolved Hide resolved
dGame/dBehaviors/AreaOfEffectBehavior.h Show resolved Hide resolved
@aronwk-aaron aronwk-aaron requested a review from EmosewaMC April 3, 2023 03:37
@aronwk-aaron aronwk-aaron changed the title AOE and FilterTargets Re-write refactor: AOE and FilterTargets May 10, 2023
@aronwk-aaron aronwk-aaron changed the title refactor: AOE and FilterTargets refactor: re-write AOE, add FilterTargets, Update TacArc Reading May 15, 2023
@aronwk-aaron aronwk-aaron marked this pull request as draft August 1, 2023 01:19
@aronwk-aaron aronwk-aaron marked this pull request as ready for review October 9, 2023 01:09
@aronwk-aaron aronwk-aaron merged commit d8ac148 into main Oct 9, 2023
3 checks passed
@aronwk-aaron aronwk-aaron deleted the make-filterTarget-better branch October 9, 2023 20:18
@Jettford
Copy link
Collaborator

Jettford commented Oct 9, 2023

Looks all good, a few notes about programming practices passed along but nothing worth blocking over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants