Skip to content

Conversation

Blixibon
Copy link
Member

@Blixibon Blixibon commented Jan 3, 2024

This PR adds the following new animation events:

  • AE_VSCRIPT_RUN — Runs the specified VScript code on the animating entity. Handled on both the server and the client.
  • AE_VSCRIPT_RUN_FILE — Runs the specified VScript file on the animating entity. Handled on both the server and the client.
  • AE_CL_STOP_PARTICLE_EFFECT — Stops the specified particle effect. Use instantly to instantly remove all associated particles. From Alien Swarm SDK.
  • AE_CL_ADD_PARTICLE_EFFECT_CP — Adds the specified particle effect control point. From Alien Swarm SDK.

This PR also hooks the animation event normally used for scripted_sequence into hint nodes so that it can fire OnScriptEvent outputs on AI hints. This is especially useful for actbusies which may require the same kind of world interaction which scripted sequences are capable of, although this can be used for any hint type as long as the NPC playing the animation recognizes it as their current hint.

This also fixes a crash which occurs when AE_NPC_RESPONSE is handled on a non-NPC or a NPC without an expresser.


PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

@Blixibon Blixibon marked this pull request as draft January 5, 2024 01:49
@Blixibon Blixibon marked this pull request as ready for review January 5, 2024 01:59
Copy link

@1upD 1upD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Blixibon Blixibon merged commit 47ddedb into mapbase-source:develop Feb 4, 2024
@Blixibon Blixibon deleted the mapbase/feature/anim-event-improvements branch February 4, 2024 21:22
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.

2 participants