View Single Post
Re: Yay - Bots move to given vector location...
Old
  (#31)
dub
Member
 
dub's Avatar
 
Status: Offline
Posts: 89
Join Date: Aug 2004
Location: UK
Default Re: Yay - Bots move to given vector location... - 12-01-2005

small fix to check if a dedicated server
Code:
     void CUBBOT_Plugin::ClientActive (edict_t *pEntity)
     {
     	if (!engine->IsDedicatedServer () && pHostEdict == NULL)
     	{
     		Msg ("PLUGIN: Host edict found and set\n");
     		pHostEdict = pEntity;
     	}
     }
has any one found out how to show menu`s yet?

edit few engine notes.
-- class CBasePlayer pBot->pPlayerEnt --
pPlayerEnt->MaxSpeed (); // max speed
pPlayerEnt->IsSuitEquipped (); // armor equipped
pPlayerEnt->ArmorValue (); // armor amount
pPlayerEnt->GetFOV (); & pPlayerEnt->GetDefaultFOV (); // get current, default fov

-- CBaseEntity class pBot->pBaseEntity ---
pBaseEntity->GetMaxHealth (); // max health
pBaseEntity->GetHealth (); // current health
pBaseEntity->GetTeamNumber (); // current team
pBaseEntity->TeamID (); // current team`s name
// CS:S : 1 = Spectator, 2 = Terrorist, 3 = Counter-Terrorist
pBaseEntity->InSameTeam (pBaseEnemy); // is client on the same team
enjoy Dubb

Last edited by dub; 12-01-2005 at 19:21..
  
Reply With Quote