MCPcopy Create free account
hub / github.com/doldecomp/mkdd / reset

Method reset

src/Sato/ItemFlyTurtle.cpp:62–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void ItemFlyTurtle::reset()
63{
64 resetObject();
65 mKartReaction = 8;
66 _28 = 0.5f;
67 mHeightOffset = sGndOffsetY;
68 _6c = 0.0f;
69 _2c = 0.5f;
70 mLerpRatio = sLerpRatio;
71 mController.Reset();
72
73 if(mController.IsAvailableTrans())
74 mController.StopTrans();
75
76 if(mNewBounds)
77 mBounds = mNewBounds;
78
79 if(mBounds) {
80 mBounds->setRadius(sBoundRadius);
81 mBounds->setScale(1.0f);
82 }
83
84 mMoveState = 0;
85 mTargetKartNo = 0;
86 mLockOnKartNo = -1;
87 mSearchFrame = 0;
88 mHeight = 0.0f;
89 mAttackVel.zero();
90 _2f4.zero();
91 _300.zero();
92 _30c.zero();
93 _318.zero();
94 _324 = 0.0f;
95 _328 = 0;
96 _329 = 0;
97 mCLPointController->reset();
98 mBombEffect->reset();
99 mAttackFrame = 0;
100 mEmitter = nullptr;
101 _340 = 0.0f;
102 _33c = false;
103 _33d = 0;
104 mNowHeight = 0.0f;
105 m1stKartNo = 0;
106 _34c = 0;
107 _12c |= 0x2000;
108 mLapChecker->reset();
109}
110
111const char *ItemFlyTurtle::getBmdFileName()
112{

Callers

nothing calls this directly

Calls 6

IsAvailableTransMethod · 0.80
StopTransMethod · 0.80
setRadiusMethod · 0.80
ResetMethod · 0.45
setScaleMethod · 0.45
zeroMethod · 0.45

Tested by

no test coverage detected