diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-12-27 16:11:32 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-12-27 16:11:32 -0600 |
| commit | 4b0eacaef7b60d42f03f9c3299751e57be2cbad4 (patch) | |
| tree | 1f2c7d7a3a6b9d7f594485966784ed3926bdd479 /src/engine | |
| parent | 8954d28dc482e84881f69073f9371c23ca6f754f (diff) | |
Hook system PoC
Diffstat (limited to 'src/engine')
| -rw-r--r-- | src/engine/fox_beam.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/fox_beam.c b/src/engine/fox_beam.c index d6751bcc..4f1a9af0 100644 --- a/src/engine/fox_beam.c +++ b/src/engine/fox_beam.c @@ -1,9 +1,11 @@ +#include <stdlib.h> #include "global.h" #include "assets/ast_landmaster.h" #include "assets/ast_aquas.h" #include "assets/ast_great_fox.h" #include "assets/ast_versus.h" #include "port/interpolation/FrameInterpolation.h" +#include "port/hooks/Events.h" Vec3f sShotViewPos; @@ -661,6 +663,10 @@ void PlayerShot_ApplyDamageToActor(PlayerShot* shot, Actor* actor, s32 hitIndex) Vec3f sp44 = { 0.0f, 0.0f, -100.0f }; Vec3f sp38; + PlayerShotEvent* event = malloc(sizeof(PlayerShotEvent)); + EventSystem_CallEvent(EVENT_PLAYER_SHOT, event); + free(event); + actor->dmgType = DMG_BEAM; actor->dmgPart = hitIndex - 1; actor->timer_0C2 = 2; |
