add feedback to entity functions too

pull/3/head
Diavolo 2022-07-24 20:45:49 +02:00
parent 3176878ea5
commit ea0ea70bad
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5
1 changed files with 24 additions and 0 deletions

View File

@ -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 );
}
}