untyped global function NorthstarDevCommands_Init void function NorthstarDevCommands_Init() { AddClientCommandCallback( "noclip", ClientCommandCallbackToggleNoclip ) AddClientCommandCallback( "kill", ClientCommandCallbackKill ) AddClientCommandCallback( "explode", ClientCommandCallbackExplode ) } bool function ClientCommandCallbackToggleNoclip( entity player, array args ) { if ( GetConVarInt( "sv_cheats" ) != 1 ) return true if ( player.IsNoclipping() ) player.SetPhysics( MOVETYPE_WALK ) else player.SetPhysics( MOVETYPE_NOCLIP ) return true } bool function ClientCommandCallbackKill( entity player, array args ) { if ( IsAlive( player ) ) player.Die() return true } bool function ClientCommandCallbackExplode( entity player, array args ) { if ( IsAlive( player ) ) player.Die( null, null, { scriptType = DF_GIB } ) return true }