Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DM Spectating bug fixed
#1
I fixed one bug in dm having to do with a players disc rotate around them while they are spectating.


I just added this to the beginning of discthink of disc_weapon_disc.cpp
Code:
void CDisc::DiscThink()
{


//Miagi prevent disc returning to spectators
    if ( ((CBasePlayer*)(CBaseEntity*)m_hOwner)->IsObserver() )
    {
 
 //UTIL_ClientPrintAll( HUD_PRINTNOTIFY, "Observer is true" );
 ReturnToThrower();
 return;

    }
    //End miagi


Now onto making a respawn command.
<@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)