Fix antlions using wrong angles for dynamic interactions #290
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In the latest update, the functionality of interactions which don't use
SCNPC_FLAG_TEST_OTHER_ANGLES
was changed to make interaction partners continue to face their current angle, rather than face the angle stored inangRelativeAngles
. This was done because there is no interaction in stock HL2/EP1/EP2 which doesn't useSCNPC_FLAG_TEST_OTHER_ANGLES
, and the lack of that flag shouldn't force the interaction partner face a specific angle if it's not needed for the interaction to play.The antlion interactions previously restored by Mapbase used
angRelativeAngles
, but did not useSCNPC_FLAG_TEST_OTHER_ANGLES
. This is a hack which wouldn't have been possible with the actual model KV interaction syntax, and was done so that they could initiate the interactions at any angle while still correctly facing each other. However, this was not adjusted after the functionality of non-SCNPC_FLAG_TEST_OTHER_ANGLES
interactions was changed, so they no longer face each other when initiating interactions.The new
flMaxAngleDiff
value, which was also part of the latest update, allows forSCNPC_FLAG_TEST_OTHER_ANGLES
interactions to initiate at broader angles, so by addingSCNPC_FLAG_TEST_OTHER_ANGLES
and just setting that value to encompass any angle, it provides a "proper" way of doing what the antlion interactions did before.PR Checklist
develop
branch OR targets another branch with a specific goal in mind