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

Method causeLocalDeath

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

Source from the content-addressed store, hash-verified

222}
223
224void TwoPlayerModule::causeLocalDeath(GJBaseGameLayer* gjbgl) {
225 m_ignoreNoclip = true;
226 GlobedGJBGL::get(gjbgl)->killLocalPlayer();
227 m_ignoreNoclip = false;
228}
229
230void TwoPlayerModule::unlink(bool silent) {
231 if (!m_linkedPlayer) return;

Callers 2

onPlayerDeathMethod · 0.95
resetLevelFunction · 0.80

Calls 2

killLocalPlayerMethod · 0.80
getFunction · 0.50

Tested by

no test coverage detected