// // PlayerObject::resetObject from 0x3479c4 to 0x347cb6 (754 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void PlayerObject::resetObject(PlayerObject *a1) { float *m_start; // r3 float *m_finish; // r2 _BOOL4 m_alwaysShowStreak; // r3 a1->m_maybeReducedEffects = 1; GJActionManager::stopAllInternalActions(a1->m_actionManager); a1->m_physDeltaRelated = 0.0; a1->m_wasTeleported = 0; a1->m_isCollidingWithSlope = 0; a1->m_collidedObject = nullptr; a1->m_lastGroundObject = nullptr; a1->m_currentSlope2 = nullptr; a1->m_preLastGroundObject = nullptr; a1->m_unk3e0 = 0; a1->m_collidingWithLeft = nullptr; a1->m_collidingWithRight = nullptr; a1->m_scaleXRelated2 = 0.0; a1->m_groundYVelocity = 0.0; a1->m_scaleXRelated4 = 0.0; a1->m_scaleXRelated3 = 0.0; a1->m_yVelocityRelated = 0.0; a1->m_scaleXRelated5 = 0.0; a1->m_collidingBetweenSteps = 0; a1->m_ringJumpRelated = 0; a1->m_maybeReverseSpeed = 0.0; a1->m_maybeReverseAcceleration = 0.0; PlayerObject::doReversePlayer(a1, 0); PlayerObject::rotateGameplay(a1, 2, 4, 0, 0.0, 0.0, 0, 0); a1->m_platformerXVelocity = 0.0; a1->m_maybeHasStopped = 0; a1->m_maybeGoingCorrectSlopeDirection = 0; a1->m_affectedByForces = 0; a1->m_isOnIce = 0; a1->m_scaleXRelated = 0.0; a1->m_platformerMovingLeft = 0; a1->m_platformerMovingRight = 0; a1->m_maybeUpsideDownSlope = 0; a1->m_maybeSlidingTime = 0; a1->m_maybeSlidingStartTime = 0.0; a1->m_changedDirectionsTime = 0.0; a1->m_controlsDisabled = 0; a1->m_gravityMod = 1.0; a1->m_maybeIsColliding = 0; a1->m_isOnGround = 0; a1->m_isOnGround2 = 1; a1->m_lastLandTime = 0.0; a1->m_scaleXRelatedTime = 0.0; a1->m_fallSpeed = 0.0; a1->m_dashRing = nullptr; a1->m_dashStartTime = 0.0; a1->m_platformerVelocityRelated = 0.0; a1->m_decreaseBoostSlide = 0; PlayerObject::toggleVisibility(a1, 1); a1->m_flashTime = -1.0; a1->setColor(a1, &a1->m_originalMainColor); PlayerObject::setSecondColor(a1, &a1->m_originalSecondColor); PlayerObject::stopParticles(a1); *(_DWORD *)&a1->m_stateUnk = 0; PlayerObject::resetStateVariables(a1); PlayerObject::resetTouchedRings(a1, 1); m_start = a1->m_playerFollowFloats.m_start; m_finish = a1->m_playerFollowFloats.m_finish; while ( m_start != m_finish ) *m_start++ = 0.0; a1->m_followRelated = 0; a1->m_unk838 = 0.0; PlayerObject::stopDashing(a1); PlayerObject::deactivateStreak(a1, 0); PlayerObject::removePendingCheckpoint(a1); cocos2d::CCNode::stopActionByTag(a1->m_spiderSprite, 10); ((void (__fastcall *)(GJSpiderSprite *, int))a1->m_spiderSprite->setScale)(a1->m_spiderSprite, 1065353216); a1->m_checkpointTimeout = 0; a1->m_canPlaceCheckpoint = 0; cocos2d::CCPoint::operator=(&a1->m_lastGroundedPos, &stru_AC5C68); a1->m_lastActivatedPortal = nullptr; cocos2d::CCPoint::operator=(&a1->m_lastPortalPos, &stru_AC5C68); a1->m_isLocked = 0; a1->m_objectSnappedTo = nullptr; a1->m_shouldTryPlacingCheckpoint = 0; a1->m_isOnSlope = 0; a1->m_wasOnSlope = 0; a1->m_slopeVelocity = 0.0; a1->m_collidingWithSlopeId = -1; a1->m_currentSlopeYVelocity = 0.0; a1->m_isAccelerating = 0; a1->m_slopeRotation = 0.0; a1->m_currentSlope = nullptr; a1->m_currentPotentialSlope = nullptr; std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::clear((int)&a1->m_potentialSlopeMap); a1->m_unk669 = 0; PlayerObject::resetCollisionValues(a1); a1->m_totalTime = 0.0; a1->m_maybeIsBoosted = 0; PlayerObject::setYVelocity(a1, 0.0, 37); PlayerObject::flipGravity(a1, 0, 0); PlayerObject::switchedToMode(a1, CubePortal); a1->m_vehicleSize = 0.6; PlayerObject::togglePlayerScale(a1, 0, 0); PlayerObject::stopRotation(a1, 0, 4); ((void (__fastcall *)(PlayerObject *, _DWORD))a1->setRotation)(a1, 0); a1->m_isDead = 0; cocos2d::CCNode::stopActionByTag(a1, 4); a1->setOpacity(a1, 255u); PlayerObject::toggleGhostEffect(a1, (GhostType)0); PlayerObject::updateTimeMod(a1, 0.9, 0); PlayerObject::resetStreak(a1); PlayerObject::levelFlipFinished(a1); m_alwaysShowStreak = a1->m_alwaysShowStreak; a1->m_maybeReducedEffects = 0; if ( m_alwaysShowStreak ) PlayerObject::activateStreak(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source