diff --git a/iw4x/iw4x_00/common_scripts/iw4x_utility.gsc b/iw4x/iw4x_00/common_scripts/iw4x_utility.gsc index aadc753..e91bbdb 100644 --- a/iw4x/iw4x_00/common_scripts/iw4x_utility.gsc +++ b/iw4x/iw4x_00/common_scripts/iw4x_utility.gsc @@ -65,15 +65,23 @@ ufo() god() { FL_GODMODE = 1 << 0; + msg = &""; if ( self.entityflags & FL_GODMODE ) { + msg = &"GAME_GODMODE_OFF"; self.entityflags &= ~FL_GODMODE; } else { + msg = &"GAME_GODMODE_ON"; self.entityflags |= FL_GODMODE; } + + if ( isPlayer( self ) ) + { + self iprintln( msg ); + } } /* @@ -91,15 +99,23 @@ god() demiGod() { FL_DEMI_GODMODE = 1 << 1; + msg = &""; if ( self.entityflags & FL_DEMI_GODMODE ) { + msg = &"GAME_DEMI_GODMODE_OFF"; self.entityflags &= ~FL_DEMI_GODMODE; } else { + msg = &"GAME_DEMI_GODMODE_ON"; self.entityflags |= FL_DEMI_GODMODE; } + + if ( isPlayer( self ) ) + { + self iprintln( msg ); + } } /* @@ -117,13 +133,21 @@ demiGod() noTarget() { FL_NOTARGET = 1 << 2; + msg = &""; if ( self.entityflags & FL_NOTARGET ) { + msg = &"GAME_NOTARGETOFF"; self.entityflags &= ~FL_NOTARGET; } else { + msg = &"GAME_NOTARGETON"; self.entityflags |= FL_NOTARGET; } + + if ( isPlayer( self ) ) + { + self iprintln( msg ); + } }