From 5245c483ca7e509839aeba178900facca9cde9a0 Mon Sep 17 00:00:00 2001 From: Amos Date: Wed, 1 Jun 2022 22:48:56 +0100 Subject: [PATCH] Fixed formatting... Tabs/spaces --- GameFiles/_integration.gsc | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/GameFiles/_integration.gsc b/GameFiles/_integration.gsc index d3f775e3..80e32395 100644 --- a/GameFiles/_integration.gsc +++ b/GameFiles/_integration.gsc @@ -269,10 +269,10 @@ InitializeGameMethods() { level.overrideMethods["noclip"] = ::NoClip; } - + if ( level.eventBus.gamename == "IW5" ) - { //PlutoIW5 only allows Godmode and NoClip if cheats are on.. - level.overrideMethods["god"] = ::IW5_God; + { //PlutoIW5 only allows Godmode and NoClip if cheats are on.. + level.overrideMethods["god"] = ::IW5_God; level.overrideMethods["noclip"] = ::IW5_NoClip; } } @@ -772,9 +772,9 @@ NoClipImpl() if ( !IsAlive( self ) ) { self IPrintLnBold( "You are not alive" ); - // Due to bug when sometimes disabling noclip game thinks you're dead - // removing the return and allowing them to go back into noclip is probably better. - //return; + // Due to bug when sometimes disabling noclip game thinks you're dead + // removing the return and allowing them to go back into noclip is probably better. + //return; } self SetClientDvar( "sv_cheats", 1 ); @@ -784,20 +784,20 @@ NoClipImpl() self call [[level.overrideMethods["god"]]]( true ); self call [[level.overrideMethods["noclip"]]]( true ); self Hide(); - - self.isNoClipped = true; + + self.isNoClipped = true; self IPrintLnBold( "NoClip enabled" ); } NoClipOffImpl() -{ +{ if ( !IsDefined( self.isNoClipped ) || !self.isNoClipped ) { self IPrintLnBold( "You are not no-clipped" ); return; } - + self SetClientDvar( "sv_cheats", 1 ); self SetClientDvar( "cg_thirdperson", 0 ); self SetClientDvar( "sv_cheats", 0 ); @@ -807,12 +807,12 @@ NoClipOffImpl() self Show(); self IPrintLnBold( "NoClip disabled" ); - - if ( !IsAlive( self ) && self.isNoClipped ) + + if ( !IsAlive( self ) && self.isNoClipped ) { - // Sometimes you will bug exiting noclip where the game thinks you're dead - // but you're not. You will retain godmode but be able to run around and kill people. - // So, it's important to let the user know. + // Sometimes you will bug exiting noclip where the game thinks you're dead + // but you're not. You will retain godmode but be able to run around and kill people. + // So, it's important to let the user know. self IPrintLnBold( "^1You are bugged! ^4Swap team." ); } @@ -839,7 +839,7 @@ HideImpl() self call [[level.overrideMethods["god"]]]( true ); self Hide(); - + self.isHidden = true; self IPrintLnBold( "You are now ^5hidden ^7from other players" ); @@ -865,8 +865,8 @@ UnhideImpl() self call [[level.overrideMethods["god"]]]( false ); self Show(); - - self.isHidden = false; + + self.isHidden = false; self IPrintLnBold( "You are now ^5visible ^7to other players" ); }