more work on optimizing cpu usage
reverted active grenades on TASK_* items
This commit is contained in:
parent
43e37e9818
commit
66c33472ff
8 changed files with 91 additions and 180 deletions
|
|
@ -993,7 +993,7 @@ private:
|
|||
|
||||
bool IsInViewCone (const Vector &origin);
|
||||
void ReactOnSound (void);
|
||||
bool CheckVisibility (entvars_t *targetOrigin, Vector *origin, byte *bodyPart);
|
||||
bool CheckVisibility (edict_t *target, Vector *origin, byte *bodyPart);
|
||||
bool IsEnemyViewable (edict_t *player);
|
||||
|
||||
edict_t *FindNearestButton (const char *className);
|
||||
|
|
@ -1626,7 +1626,6 @@ public:
|
|||
|
||||
// prototypes of bot functions...
|
||||
extern int GetWeaponReturn (bool isString, const char *weaponAlias, int weaponIndex = -1);
|
||||
extern int GetTeam (edict_t *ent);
|
||||
|
||||
extern float GetShootingConeDeviation (edict_t *ent, Vector *position);
|
||||
extern float GetWaveLength (const char *fileName);
|
||||
|
|
|
|||
|
|
@ -121,4 +121,9 @@ static inline int EntOffsetOfEntity(const edict_t *ent)
|
|||
static inline bool IsEntityNull (const edict_t *ent)
|
||||
{
|
||||
return !ent || !EntOffsetOfEntity (ent);
|
||||
}
|
||||
}
|
||||
|
||||
static inline int GetTeam (edict_t *ent)
|
||||
{
|
||||
return g_clients[IndexOfEntity (ent) - 1].team;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue