MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / SetGodMode

Method SetGodMode

PanzerChasm/server/player.cpp:672–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670}
671
672void Player::SetGodMode( const bool god_mode )
673{
674 god_mode_= god_mode;
675 if( god_mode_ )
676 {
677 health_= GameConstants::player_max_health;
678 armor_= GameConstants::player_max_armor;
679 }
680}
681
682void Player::GiveWeapon()
683{

Callers 1

ToggleGodModeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected