Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DM Spectating bug fixed
#2
K so I've decided against including the respawn command. Not totally needed.

But I did fix being able to hit spectate while you are in spectate. In client.cpp ClientCommand

Code:
else if ( FStrEq(pcmd, "spectate" ) )
    {
 // Prevent this is the cvar is set
 if ( allow_spectators.value )
 {
     CBasePlayer *pPlayer = GetClassPtr((CBasePlayer *)pev);

     //Miagi Prevent hitting spectate inside spectate
     if ( !pPlayer->IsObserver() )
     {
     edict_t *pentSpawnSpot = EntSelectSpawnPoint( pPlayer );
     pPlayer->StartObserver( VARS(pentSpawnSpot)->origin, VARS(pentSpawnSpot)->angles);
     }
 }
    }
<@Miagi> !8 Am I spamming?
<@ChanServ> Miagi: Yes.
<@Miagi> !8 Should I stop?
<@ChanServ> Miagi: Oh, please, PLEASE, make it stop!

Reply


Messages In This Thread
DM Spectating bug fixed - by Miagi - 06-05-2005, 11:24 AM
DM Spectating bug fixed - by Miagi - 06-05-2005, 12:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)