MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / propellPlayer

Method propellPlayer

Source/PlayerObject.cpp:400–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400void PlayerObject::propellPlayer(double force)
401{
402 m_isRising = true;
403 setIsOnGround(false);
404 m_dYVel = flipMod() * 16 * force * (_vehicleSize == 1.0 ? 1.0 : 0.8);
405
406 if (_currentGamemode == PlayerGamemodeBall || _currentGamemode == PlayerGamemodeSpider) m_dYVel *= 0.6;
407
408 runRotateAction();
409 setLastGroundPos(getPosition());
410
411 activateStreak();
412}
413
414void PlayerObject::setTouchedRing(GameObject* obj) { _touchedRingObject = obj; }
415

Callers 1

checkCollisionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected