MCPcopy Create free account
hub / github.com/GlobedGD/globed2 / onLocalPlayerDeath

Method onLocalPlayerDeath

src/modules/two-player/TwoPlayerModule.cpp:120–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void TwoPlayerModule::onLocalPlayerDeath(GlobedGJBGL* gjbgl, bool real) {
121 // don't respawn immediately if we are not the main player, instead wait for the main player to respawn us
122 if (real && m_isPlayer2) {
123 gjbgl->cancelLocalRespawn();
124 }
125}
126
127void TwoPlayerModule::onPreUpdate(GlobedGJBGL* gjbgl, float dt) {
128 auto ghost = gjbgl->m_fields->m_ghost.get();

Callers

nothing calls this directly

Calls 1

cancelLocalRespawnMethod · 0.80

Tested by

no test coverage detected