MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / Reset

Method Reset

src/SB/Core/x/xNPCBasic.cpp:92–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void xNPCBasic::Reset()
93{
94 xEntReset(this);
95 DBG_PStatClear();
96 if (!(U32(flags1.flg_basenpc) & 0x2))
97 {
98 xVec3Copy(&frame->drot.axis, &g_Y3);
99 frame->drot.angle = 0.0f;
100 xVec3Copy(&frame->rot.axis, &g_Y3);
101 frame->rot.angle = asset->ang.x;
102 }
103
104 flags1.flg_basenpc |= 4;
105 colFreq = -1;
106
107 colFreqReset = (15.0f * (0.25f * (xurand() - 0.5f))) + 15.0f;
108 RestoreColFlags();
109}
110
111void NPC_alwaysUseSphere(xEnt* ent, xVec3* value)
112{

Callers 1

NPC_entwrap_resetFunction · 0.45

Calls 3

xVec3CopyFunction · 0.85
xurandFunction · 0.85
xEntResetFunction · 0.70

Tested by

no test coverage detected