Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/SB/Game/zNPCGoalAmbient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include "xMath3.h"
#include "xVec3.h"

#include "zNPCGoalAmbient.h"
#include "zNPCSndTable.h"

void xMat3x3RMulVec(xVec3* o, const xMat3x3* m, const xVec3* v)
{
Expand All @@ -15,3 +15,14 @@ void xMat3x3RMulVec(xVec3* o, const xMat3x3* m, const xVec3* v)
o->y = y;
o->z = z;
}

S32 zNPCGoalJellyAttack::Enter(F32 arg0, void* arg1)
{
zNPCJelly* temp_r31 = (zNPCJelly*)psyche->clt_owner;

temp_r31->SndPlayRandom(NPC_STYP_ENCOUNTER);
temp_r31->VelStop();
lastAnimTime = 0;
zNPCGoalJellyAttack::ZapperStart();
return zNPCGoalPushAnim::Enter(arg0, arg1);
}
12 changes: 12 additions & 0 deletions src/SB/Game/zNPCGoalAmbient.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#ifndef ZNPCGOALAMBIENT_H
#define ZNPCGOALAMBIENT_H

#include "zNPCGoalAmbient.h"
#include "zNPCGoalCommon.h"
#include "zNPCGoalStd.h"
#include "zNPCSndTable.h"
#include "zNPCTypeAmbient.h"


xFactoryInst* GOALCreate_Ambient(S32 who, RyzMemGrow* grow, void*);

Expand All @@ -15,4 +20,11 @@ struct zNPCGoalJellyBirth : zNPCGoalCommon
S32 Enter(F32 dt, void* updCtxt);
};

struct zNPCGoalJellyAttack : zNPCGoalPushAnim
{
U32 lastAnimTime;
S32 Enter(F32 dt, void* updCtxt);
S32 ZapperStart();
};

#endif