codemp/game/g_local.h File Reference

#include "q_shared.h"
#include "bg_public.h"
#include "bg_vehicles.h"
#include "g_public.h"
#include "b_public.h"
#include "../namespace_begin.h"
#include "../namespace_end.h"
#include "g_team.h"

Go to the source code of this file.

Data Structures

struct  alertEvent_s
struct  bot_settings_s
struct  clientPersistant_t
struct  clientSession_t
struct  combatPoint_t
struct  gclient_s
struct  gentity_s
struct  interestPoint_t
struct  level_locals_t
struct  playerTeamState_t
struct  reference_tag_s
struct  renderInfo_s
struct  waypointData_t

Defines

#define GAME_INLINE   ID_INLINE
#define GAMEVERSION   "basejka_mod"
#define BODY_QUEUE_SIZE   8
#define INFINITE   1000000
#define FRAMETIME   100
#define CARNAGE_REWARD_TIME   3000
#define REWARD_SPRITE_TIME   2000
#define INTERMISSION_DELAY_TIME   1000
#define SP_INTERMISSION_DELAY_TIME   5000
#define START_TIME_LINK_ENTS   FRAMETIME*1
#define START_TIME_FIND_LINKS   FRAMETIME*2
#define START_TIME_MOVERS_SPAWNED   FRAMETIME*2
#define START_TIME_REMOVE_ENTS   FRAMETIME*3
#define START_TIME_NAV_CALC   FRAMETIME*4
#define START_TIME_FIND_WAYPOINT   FRAMETIME*5
#define FL_GODMODE   0x00000010
#define FL_NOTARGET   0x00000020
#define FL_TEAMSLAVE   0x00000400
#define FL_NO_KNOCKBACK   0x00000800
#define FL_DROPPED_ITEM   0x00001000
#define FL_NO_BOTS   0x00002000
#define FL_NO_HUMANS   0x00004000
#define FL_FORCE_GESTURE   0x00008000
#define FL_INACTIVE   0x00010000
#define FL_NAVGOAL   0x00020000
#define FL_DONT_SHOOT   0x00040000
#define FL_SHIELDED   0x00080000
#define FL_UNDYING   0x00100000
#define FL_BOUNCE   0x00100000
#define FL_BOUNCE_HALF   0x00200000
#define FL_BOUNCE_SHRAPNEL   0x00400000
#define FL_VEH_BOARDING   0x00800000
#define FL_DMG_BY_SABER_ONLY   0x01000000
#define FL_DMG_BY_HEAVY_WEAP_ONLY   0x02000000
#define FL_BBRUSH   0x04000000
#define DEBUG_SABER_BOX
#define MAX_G_SHARED_BUFFER_SIZE   8192
#define SP_PODIUM_MODEL   "models/mapobjects/podium/podium4.md3"
#define DAMAGEREDIRECT_HEAD   1
#define DAMAGEREDIRECT_RLEG   2
#define DAMAGEREDIRECT_LLEG   3
#define FOLLOW_ACTIVE1   -1
#define FOLLOW_ACTIVE2   -2
#define PSG_VOTED   (1<<0)
#define PSG_TEAMVOTED   (1<<1)
#define MAX_NETNAME   36
#define MAX_VOTE_COUNT   3
#define MAX_INTEREST_POINTS   64
#define MAX_COMBAT_POINTS   512
#define MAX_ALERT_EVENTS   32
#define DAMAGE_NORMAL   0x00000000
#define DAMAGE_RADIUS   0x00000001
#define DAMAGE_NO_ARMOR   0x00000002
#define DAMAGE_NO_KNOCKBACK   0x00000004
#define DAMAGE_NO_PROTECTION   0x00000008
#define DAMAGE_NO_TEAM_PROTECTION   0x00000010
#define DAMAGE_EXTRA_KNOCKBACK   0x00000040
#define DAMAGE_DEATH_KNOCKBACK   0x00000080
#define DAMAGE_IGNORE_TEAM   0x00000100
#define DAMAGE_NO_DAMAGE   0x00000200
#define DAMAGE_HALF_ABSORB   0x00000400
#define DAMAGE_HALF_ARMOR_REDUCTION   0x00000800
#define DAMAGE_HEAVY_WEAP_CLASS   0x00001000
#define DAMAGE_NO_HIT_LOC   0x00002000
#define DAMAGE_NO_SELF_PROTECTION   0x00004000
#define DAMAGE_NO_DISMEMBER   0x00008000
#define DAMAGE_SABER_KNOCKBACK1   0x00010000
#define DAMAGE_SABER_KNOCKBACK2   0x00020000
#define DAMAGE_SABER_KNOCKBACK1_B2   0x00040000
#define DAMAGE_SABER_KNOCKBACK2_B2   0x00080000
#define SPF_BUTTON_USABLE   1
#define SPF_BUTTON_FPUSHABLE   2
#define MAX_REFNAME   32
#define START_TIME_LINK_ENTS   FRAMETIME*1
#define RTF_NONE   0
#define RTF_NAVGOAL   0x00000001
#define MAX_FILEPATH   144
#define FOFS(x)   ((int)&(((gentity_t *)0)->x))

Typedefs

typedef gentity_s gentity_t
typedef gclient_s gclient_t
typedef int clientConnected_t
typedef renderInfo_s renderInfo_t
typedef alertEvent_s alertEvent_t
typedef reference_tag_s reference_tag_t
typedef bot_settings_s bot_settings_t

Enumerations

enum  moverState_t { MOVER_POS1, MOVER_POS2, MOVER_1TO2, MOVER_2TO1 }
enum  {
  HL_NONE = 0, HL_FOOT_RT, HL_FOOT_LT, HL_LEG_RT,
  HL_LEG_LT, HL_WAIST, HL_BACK_RT, HL_BACK_LT,
  HL_BACK, HL_CHEST_RT, HL_CHEST_LT, HL_CHEST,
  HL_ARM_RT, HL_ARM_LT, HL_HAND_RT, HL_HAND_LT,
  HL_HEAD, HL_GENERIC1, HL_GENERIC2, HL_GENERIC3,
  HL_GENERIC4, HL_GENERIC5, HL_GENERIC6, HL_MAX
}
enum  { CON_DISCONNECTED, CON_CONNECTING, CON_CONNECTED }
enum  spectatorState_t { SPECTATOR_NOT, SPECTATOR_FREE, SPECTATOR_FOLLOW, SPECTATOR_SCOREBOARD }
enum  playerTeamStateState_t { TEAM_BEGIN, TEAM_ACTIVE }
enum  alertEventType_e { AET_SIGHT, AET_SOUND }
enum  alertEventLevel_e {
  AEL_MINOR, AEL_SUSPICIOUS, AEL_DISCOVERED, AEL_DANGER,
  AEL_DANGER_GREAT
}

Functions

qboolean G_SpawnString (const char *key, const char *defaultString, char **out)
qboolean G_SpawnFloat (const char *key, const char *defaultString, float *out)
qboolean G_SpawnInt (const char *key, const char *defaultString, int *out)
qboolean G_SpawnVector (const char *key, const char *defaultString, float *out)
void G_SpawnEntitiesFromString (qboolean inSubBSP)
char * G_NewString (const char *string)
void Cmd_Score_f (gentity_t *ent)
void StopFollowing (gentity_t *ent)
void BroadcastTeamChange (gclient_t *client, int oldTeam)
void SetTeam (gentity_t *ent, char *s)
void Cmd_FollowCycle_f (gentity_t *ent, int dir)
void Cmd_SaberAttackCycle_f (gentity_t *ent)
int G_ItemUsable (playerState_t *ps, int forcedUse)
void Cmd_ToggleSaber_f (gentity_t *ent)
void Cmd_EngageDuel_f (gentity_t *ent)
gentity_tG_GetDuelWinner (gclient_t *client)
void ItemUse_Binoculars (gentity_t *ent)
void ItemUse_Shield (gentity_t *ent)
void ItemUse_Sentry (gentity_t *ent)
void Jetpack_Off (gentity_t *ent)
void Jetpack_On (gentity_t *ent)
void ItemUse_Jetpack (gentity_t *ent)
void ItemUse_UseCloak (gentity_t *ent)
void ItemUse_UseDisp (gentity_t *ent, int type)
void ItemUse_UseEWeb (gentity_t *ent)
void G_PrecacheDispensers (void)
void ItemUse_Seeker (gentity_t *ent)
void ItemUse_MedPack (gentity_t *ent)
void ItemUse_MedPack_Big (gentity_t *ent)
void G_CheckTeamItems (void)
void G_RunItem (gentity_t *ent)
void RespawnItem (gentity_t *ent)
void UseHoldableItem (gentity_t *ent)
void PrecacheItem (gitem_t *it)
gentity_tDrop_Item (gentity_t *ent, gitem_t *item, float angle)
gentity_tLaunchItem (gitem_t *item, vec3_t origin, vec3_t velocity)
void SetRespawn (gentity_t *ent, float delay)
void G_SpawnItem (gentity_t *ent, gitem_t *item)
void FinishSpawningItem (gentity_t *ent)
void Think_Weapon (gentity_t *ent)
int ArmorIndex (gentity_t *ent)
void Add_Ammo (gentity_t *ent, int weapon, int count)
void Touch_Item (gentity_t *ent, gentity_t *other, trace_t *trace)
void ClearRegisteredItems (void)
void RegisterItem (gitem_t *item)
void SaveRegisteredItems (void)
int G_ModelIndex (const char *name)
int G_SoundIndex (const char *name)
int G_SoundSetIndex (const char *name)
int G_EffectIndex (const char *name)
int G_BSPIndex (const char *name)
int G_IconIndex (const char *name)
qboolean G_PlayerHasCustomSkeleton (gentity_t *ent)
void G_TeamCommand (team_t team, char *cmd)
void G_ScaleNetHealth (gentity_t *self)
void G_KillBox (gentity_t *ent)
gentity_tG_Find (gentity_t *from, int fieldofs, const char *match)
int G_RadiusList (vec3_t origin, float radius, gentity_t *ignore, qboolean takeDamage, gentity_t *ent_list[MAX_GENTITIES])
void G_Throw (gentity_t *targ, vec3_t newDir, float push)
void G_FreeFakeClient (gclient_t **cl)
void G_CreateFakeClient (int entNum, gclient_t **cl)
void G_CleanAllFakeClients (void)
void G_SetAnim (gentity_t *ent, usercmd_t *ucmd, int setAnimParts, int anim, int setAnimFlags, int blendTime)
gentity_tG_PickTarget (char *targetname)
void GlobalUse (gentity_t *self, gentity_t *other, gentity_t *activator)
void G_UseTargets2 (gentity_t *ent, gentity_t *activator, const char *string)
void G_UseTargets (gentity_t *ent, gentity_t *activator)
void G_SetMovedir (vec3_t angles, vec3_t movedir)
void G_SetAngles (gentity_t *ent, vec3_t angles)
void G_InitGentity (gentity_t *e)
gentity_tG_Spawn (void)
gentity_tG_TempEntity (vec3_t origin, int event)
gentity_tG_PlayEffect (int fxID, vec3_t org, vec3_t ang)
gentity_tG_PlayEffectID (const int fxID, vec3_t org, vec3_t ang)
gentity_tG_ScreenShake (vec3_t org, gentity_t *target, float intensity, int duration, qboolean global)
void G_MuteSound (int entnum, int channel)
void G_Sound (gentity_t *ent, int channel, int soundIndex)
void G_SoundAtLoc (vec3_t loc, int channel, int soundIndex)
void G_EntitySound (gentity_t *ent, int channel, int soundIndex)
void TryUse (gentity_t *ent)
void G_SendG2KillQueue (void)
void G_KillG2Queue (int entNum)
void G_FreeEntity (gentity_t *e)
qboolean G_EntitiesFree (void)
qboolean G_ActivateBehavior (gentity_t *self, int bset)
void G_TouchTriggers (gentity_t *ent)
void G_TouchSolids (gentity_t *ent)
void GetAnglesForDirection (const vec3_t p1, const vec3_t p2, vec3_t out)
void G_RunObject (gentity_t *ent)
float * tv (float x, float y, float z)
char * vtos (const vec3_t v)
void G_AddPredictableEvent (gentity_t *ent, int event, int eventParm)
void G_AddEvent (gentity_t *ent, int event, int eventParm)
void G_SetOrigin (gentity_t *ent, vec3_t origin)
qboolean G_CheckInSolid (gentity_t *self, qboolean fix)
void AddRemap (const char *oldShader, const char *newShader, float timeOffset)
const char * BuildShaderStateConfig (void)
int G_BoneIndex (const char *name)
qhandle_t trap_R_RegisterSkin (const char *name)
void trap_G2_ListModelSurfaces (void *ghlInfo)
void trap_G2_ListModelBones (void *ghlInfo, int frame)
void trap_G2_SetGhoul2ModelIndexes (void *ghoul2, qhandle_t *modelList, qhandle_t *skinList)
qboolean trap_G2_HaveWeGhoul2Models (void *ghoul2)
qboolean trap_G2API_GetBoltMatrix (void *ghoul2, const int modelIndex, const int boltIndex, mdxaBone_t *matrix, const vec3_t angles, const vec3_t position, const int frameNum, qhandle_t *modelList, vec3_t scale)
qboolean trap_G2API_GetBoltMatrix_NoReconstruct (void *ghoul2, const int modelIndex, const int boltIndex, mdxaBone_t *matrix, const vec3_t angles, const vec3_t position, const int frameNum, qhandle_t *modelList, vec3_t scale)
qboolean trap_G2API_GetBoltMatrix_NoRecNoRot (void *ghoul2, const int modelIndex, const int boltIndex, mdxaBone_t *matrix, const vec3_t angles, const vec3_t position, const int frameNum, qhandle_t *modelList, vec3_t scale)
int trap_G2API_InitGhoul2Model (void **ghoul2Ptr, const char *fileName, int modelIndex, qhandle_t customSkin, qhandle_t customShader, int modelFlags, int lodBias)
qboolean trap_G2API_SetSkin (void *ghoul2, int modelIndex, qhandle_t customSkin, qhandle_t renderSkin)
int trap_G2API_Ghoul2Size (void *ghlInfo)
int trap_G2API_AddBolt (void *ghoul2, int modelIndex, const char *boneName)
void trap_G2API_SetBoltInfo (void *ghoul2, int modelIndex, int boltInfo)
int trap_G2API_CopyGhoul2Instance (void *g2From, void *g2To, int modelIndex)
void trap_G2API_CopySpecificGhoul2Model (void *g2From, int modelFrom, void *g2To, int modelTo)
void trap_G2API_DuplicateGhoul2Instance (void *g2From, void **g2To)
qboolean trap_G2API_HasGhoul2ModelOnIndex (void *ghlInfo, int modelIndex)
qboolean trap_G2API_RemoveGhoul2Model (void *ghlInfo, int modelIndex)
qboolean trap_G2API_RemoveGhoul2Models (void *ghlInfo)
void trap_G2API_CleanGhoul2Models (void **ghoul2Ptr)
void trap_G2API_CollisionDetect (CollisionRecord_t *collRecMap, void *ghoul2, const vec3_t angles, const vec3_t position, int frameNumber, int entNum, vec3_t rayStart, vec3_t rayEnd, vec3_t scale, int traceFlags, int useLod, float fRadius)
void trap_G2API_CollisionDetectCache (CollisionRecord_t *collRecMap, void *ghoul2, const vec3_t angles, const vec3_t position, int frameNumber, int entNum, vec3_t rayStart, vec3_t rayEnd, vec3_t scale, int traceFlags, int useLod, float fRadius)
qboolean trap_G2API_SetBoneAngles (void *ghoul2, int modelIndex, const char *boneName, const vec3_t angles, const int flags, const int up, const int right, const int forward, qhandle_t *modelList, int blendTime, int currentTime)
void trap_G2API_GetGLAName (void *ghoul2, int modelIndex, char *fillBuf)
qboolean trap_G2API_SetBoneAnim (void *ghoul2, const int modelIndex, const char *boneName, const int startFrame, const int endFrame, const int flags, const float animSpeed, const int currentTime, const float setFrame, const int blendTime)
qboolean trap_G2API_GetBoneAnim (void *ghoul2, const char *boneName, const int currentTime, float *currentFrame, int *startFrame, int *endFrame, int *flags, float *animSpeed, int *modelList, const int modelIndex)
void trap_G2API_GetSurfaceName (void *ghoul2, int surfNumber, int modelIndex, char *fillBuf)
qboolean trap_G2API_SetRootSurface (void *ghoul2, const int modelIndex, const char *surfaceName)
qboolean trap_G2API_SetSurfaceOnOff (void *ghoul2, const char *surfaceName, const int flags)
qboolean trap_G2API_SetNewOrigin (void *ghoul2, const int boltIndex)
qboolean trap_G2API_DoesBoneExist (void *ghoul2, int modelIndex, const char *boneName)
int trap_G2API_GetSurfaceRenderStatus (void *ghoul2, const int modelIndex, const char *surfaceName)
void trap_G2API_AbsurdSmoothing (void *ghoul2, qboolean status)
void trap_G2API_SetRagDoll (void *ghoul2, sharedRagDollParams_t *params)
void trap_G2API_AnimateG2Models (void *ghoul2, int time, sharedRagDollUpdateParams_t *params)
qboolean trap_G2API_RagPCJConstraint (void *ghoul2, const char *boneName, vec3_t min, vec3_t max)
qboolean trap_G2API_RagPCJGradientSpeed (void *ghoul2, const char *boneName, const float speed)
qboolean trap_G2API_RagEffectorGoal (void *ghoul2, const char *boneName, vec3_t pos)
qboolean trap_G2API_GetRagBonePos (void *ghoul2, const char *boneName, vec3_t pos, vec3_t entAngles, vec3_t entPos, vec3_t entScale)
qboolean trap_G2API_RagEffectorKick (void *ghoul2, const char *boneName, vec3_t velocity)
qboolean trap_G2API_RagForceSolve (void *ghoul2, qboolean force)
qboolean trap_G2API_SetBoneIKState (void *ghoul2, int time, const char *boneName, int ikState, sharedSetBoneIKStateParams_t *params)
qboolean trap_G2API_IKMove (void *ghoul2, int time, sharedIKMoveParams_t *params)
qboolean trap_G2API_RemoveBone (void *ghoul2, const char *boneName, int modelIndex)
void trap_G2API_AttachInstanceToEntNum (void *ghoul2, int entityNum, qboolean server)
void trap_G2API_ClearAttachedInstance (int entityNum)
void trap_G2API_CleanEntAttachments (void)
qboolean trap_G2API_OverrideServer (void *serverInstance)
qboolean CanDamage (gentity_t *targ, vec3_t origin)
void G_Damage (gentity_t *targ, gentity_t *inflictor, gentity_t *attacker, vec3_t dir, vec3_t point, int damage, int dflags, int mod)
qboolean G_RadiusDamage (vec3_t origin, gentity_t *attacker, float damage, float radius, gentity_t *ignore, gentity_t *missile, int mod)
void body_die (gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int damage, int meansOfDeath)
void TossClientWeapon (gentity_t *self, vec3_t direction, float speed)
void TossClientItems (gentity_t *self)
void TossClientCubes (gentity_t *self)
void ExplodeDeath (gentity_t *self)
void G_CheckForDismemberment (gentity_t *ent, gentity_t *enemy, vec3_t point, int damage, int deathAnim, qboolean postDeath)
void G_RunExPhys (gentity_t *ent, float gravity, float mass, float bounce, qboolean autoKill, int *g2Bolts, int numG2Bolts)
void G_ReflectMissile (gentity_t *ent, gentity_t *missile, vec3_t forward)
void G_RunMissile (gentity_t *ent)
gentity_tCreateMissile (vec3_t org, vec3_t dir, float vel, int life, gentity_t *owner, qboolean altFire)
void G_BounceProjectile (vec3_t start, vec3_t impact, vec3_t dir, vec3_t endout)
void G_ExplodeMissile (gentity_t *ent)
void WP_FireBlasterMissile (gentity_t *ent, vec3_t start, vec3_t dir, qboolean altFire)
void G_PlayDoorLoopSound (gentity_t *ent)
void G_PlayDoorSound (gentity_t *ent, int type)
void G_RunMover (gentity_t *ent)
void Touch_DoorTrigger (gentity_t *ent, gentity_t *other, trace_t *trace)
void trigger_teleporter_touch (gentity_t *self, gentity_t *other, trace_t *trace)
void TAG_Init (void)
reference_tag_tTAG_Find (const char *owner, const char *name)
reference_tag_tTAG_Add (const char *name, const char *owner, vec3_t origin, vec3_t angles, int radius, int flags)
int TAG_GetOrigin (const char *owner, const char *name, vec3_t origin)
int TAG_GetOrigin2 (const char *owner, const char *name, vec3_t origin)
int TAG_GetAngles (const char *owner, const char *name, vec3_t angles)
int TAG_GetRadius (const char *owner, const char *name)
int TAG_GetFlags (const char *owner, const char *name)
void TeleportPlayer (gentity_t *player, vec3_t origin, vec3_t angles)
void WP_FireTurretMissile (gentity_t *ent, vec3_t start, vec3_t dir, qboolean altFire, int damage, int velocity, int mod, gentity_t *ignore)
void WP_FireGenericBlasterMissile (gentity_t *ent, vec3_t start, vec3_t dir, qboolean altFire, int damage, int velocity, int mod)
qboolean LogAccuracyHit (gentity_t *target, gentity_t *attacker)
void CalcMuzzlePoint (gentity_t *ent, vec3_t forward, vec3_t right, vec3_t up, vec3_t muzzlePoint)
void SnapVectorTowards (vec3_t v, vec3_t to)
qboolean CheckGauntletAttack (gentity_t *ent)
team_t TeamCount (int ignoreClientNum, int team)
int TeamLeader (int team)
team_t PickTeam (int ignoreClientNum)
void SetClientViewAngle (gentity_t *ent, vec3_t angle)
gentity_tSelectSpawnPoint (vec3_t avoidPoint, vec3_t origin, vec3_t angles, team_t team)
void MaintainBodyQueue (gentity_t *ent)
void respawn (gentity_t *ent)
void BeginIntermission (void)
void InitBodyQue (void)
void ClientSpawn (gentity_t *ent)
void player_die (gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int damage, int mod)
void AddScore (gentity_t *ent, vec3_t origin, int score)
void CalculateRanks (void)
qboolean SpotWouldTelefrag (gentity_t *spot)
qboolean ConsoleCommand (void)
void G_ProcessIPBans (void)
qboolean G_FilterPacket (char *from)
void FireWeapon (gentity_t *ent, qboolean altFire)
void BlowDetpacks (gentity_t *ent)
void MoveClientToIntermission (gentity_t *client)
void G_SetStats (gentity_t *ent)
void DeathmatchScoreboardMessage (gentity_t *client)
void G_PowerDuelCount (int *loners, int *doubles, qboolean countSpec)
void FindIntermissionPoint (void)
void SetLeader (int team, int client)
void CheckTeamLeader (int team)
void G_RunThink (gentity_t *ent)
void QDECL G_LogPrintf (const char *fmt,...)
void SendScoreboardMessageToAllClients (void)
void QDECL G_Printf (const char *fmt,...)
void QDECL G_Error (const char *fmt,...)
const char * G_GetStringEdString (char *refSection, char *refName)
char * ClientConnect (int clientNum, qboolean firstTime, qboolean isBot)
void ClientUserinfoChanged (int clientNum)
void ClientDisconnect (int clientNum)
void ClientBegin (int clientNum, qboolean allowTeamReset)
void G_BreakArm (gentity_t *ent, int arm)
void G_UpdateClientAnims (gentity_t *self, float animSpeedScale)
void ClientCommand (int clientNum)
void G_CheckClientTimeouts (gentity_t *ent)
void ClientThink (int clientNum, usercmd_t *ucmd)
void ClientEndFrame (gentity_t *ent)
void G_RunClient (gentity_t *ent)
qboolean OnSameTeam (gentity_t *ent1, gentity_t *ent2)
void Team_CheckDroppedItem (gentity_t *dropped)
void * G_Alloc (int size)
void G_InitMemory (void)
void Svcmd_GameMem_f (void)
void G_ReadSessionData (gclient_t *client)
void G_InitSessionData (gclient_t *client, char *userinfo, qboolean isBot)
void G_InitWorldSession (void)
void G_WriteSessionData (void)
void AddSightEvent (gentity_t *owner, vec3_t position, float radius, alertEventLevel_e alertLevel, float addLight)
void AddSoundEvent (gentity_t *owner, vec3_t position, float radius, alertEventLevel_e alertLevel, qboolean needLOS)
qboolean G_CheckForDanger (gentity_t *self, int alertEvent)
int G_CheckAlertEvents (gentity_t *self, qboolean checkSight, qboolean checkSound, float maxSeeDist, float maxHearDist, int ignoreAlert, qboolean mustHaveOwner, int minAlertLevel)
qboolean G_ClearLOS (gentity_t *self, const vec3_t start, const vec3_t end)
qboolean G_ClearLOS2 (gentity_t *self, gentity_t *ent, const vec3_t end)
qboolean G_ClearLOS3 (gentity_t *self, const vec3_t start, gentity_t *ent)
qboolean G_ClearLOS4 (gentity_t *self, gentity_t *ent)
qboolean G_ClearLOS5 (gentity_t *self, const vec3_t end)
void UpdateTournamentInfo (void)
void G_InitBots (qboolean restart)
char * G_GetBotInfoByNumber (int num)
char * G_GetBotInfoByName (const char *name)
void G_CheckBotSpawn (void)
void G_RemoveQueuedBotBegin (int clientNum)
qboolean G_BotConnect (int clientNum, qboolean restart)
void Svcmd_AddBot_f (void)
void Svcmd_BotList_f (void)
void BotInterbreedEndMatch (void)
qboolean G_DoesMapSupportGametype (const char *mapname, int gametype)
const char * G_RefreshNextMap (int gametype, qboolean forced)
gentity_tG_PreDefSound (vec3_t org, int pdSound)
qboolean HasSetSaberOnly (void)
void WP_ForcePowerStop (gentity_t *self, forcePowers_t forcePower)
void WP_SaberPositionUpdate (gentity_t *self, usercmd_t *ucmd)
int WP_SaberCanBlock (gentity_t *self, vec3_t point, int dflags, int mod, qboolean projectile, int attackStr)
void WP_SaberInitBladeData (gentity_t *ent)
void WP_InitForcePowers (gentity_t *ent)
void WP_SpawnInitForcePowers (gentity_t *ent)
void WP_ForcePowersUpdate (gentity_t *self, usercmd_t *ucmd)
int ForcePowerUsableOn (gentity_t *attacker, gentity_t *other, forcePowers_t forcePower)
void ForceHeal (gentity_t *self)
void ForceSpeed (gentity_t *self, int forceDuration)
void ForceRage (gentity_t *self)
void ForceGrip (gentity_t *self)
void ForceProtect (gentity_t *self)
void ForceAbsorb (gentity_t *self)
void ForceTeamHeal (gentity_t *self)
void ForceTeamForceReplenish (gentity_t *self)
void ForceSeeing (gentity_t *self)
void ForceThrow (gentity_t *self, qboolean pull)
void ForceTelepathy (gentity_t *self)
qboolean Jedi_DodgeEvasion (gentity_t *self, gentity_t *shooter, trace_t *tr, int hitLoc)
void QDECL G_LogWeaponPickup (int client, int weaponid)
void QDECL G_LogWeaponFire (int client, int weaponid)
void QDECL G_LogWeaponDamage (int client, int mod, int amount)
void QDECL G_LogWeaponKill (int client, int mod)
void QDECL G_LogWeaponDeath (int client, int weaponid)
void QDECL G_LogWeaponFrag (int attacker, int deadguy)
void QDECL G_LogWeaponPowerup (int client, int powerupid)
void QDECL G_LogWeaponItem (int client, int itemid)
void QDECL G_LogWeaponInit (void)
void QDECL G_LogWeaponOutput (void)
void QDECL G_LogExit (const char *string)
void QDECL G_ClearClientLog (int client)
void InitSiegeMode (void)
void G_SiegeClientExData (gentity_t *msgTarg)
void TIMER_Clear (void)
void TIMER_Clear2 (gentity_t *ent)
void TIMER_Set (gentity_t *ent, const char *identifier, int duration)
int TIMER_Get (gentity_t *ent, const char *identifier)
qboolean TIMER_Done (gentity_t *ent, const char *identifier)
qboolean TIMER_Start (gentity_t *self, const char *identifier, int duration)
qboolean TIMER_Done2 (gentity_t *ent, const char *identifier, qboolean remove)
qboolean TIMER_Exists (gentity_t *ent, const char *identifier)
void TIMER_Remove (gentity_t *ent, const char *identifier)
float NPC_GetHFOVPercentage (vec3_t spot, vec3_t from, vec3_t facing, float hFOV)
float NPC_GetVFOVPercentage (vec3_t spot, vec3_t from, vec3_t facing, float vFOV)
void G_SetEnemy (gentity_t *self, gentity_t *enemy)
qboolean InFront (vec3_t spot, vec3_t from, vec3_t fromAngles, float threshHold)
int OrgVisible (vec3_t org1, vec3_t org2, int ignore)
void BotOrder (gentity_t *ent, int clientnum, int ordernum)
int InFieldOfVision (vec3_t viewangles, float fov, vec3_t angles)
void B_InitAlloc (void)
void B_CleanupAlloc (void)
int BotAISetup (int restart)
int BotAIShutdown (int restart)
int BotAILoadMap (int restart)
int BotAISetupClient (int client, struct bot_settings_s *settings, qboolean restart)
int BotAIShutdownClient (int client, qboolean restart)
int BotAIStartFrame (int time)
void trap_Printf (const char *fmt)
void trap_Error (const char *fmt)
int trap_Milliseconds (void)
void trap_PrecisionTimer_Start (void **theNewTimer)
int trap_PrecisionTimer_End (void *theTimer)
int trap_Argc (void)
void trap_Argv (int n, char *buffer, int bufferLength)
void trap_Args (char *buffer, int bufferLength)
int trap_FS_FOpenFile (const char *qpath, fileHandle_t *f, fsMode_t mode)
void trap_FS_Read (void *buffer, int len, fileHandle_t f)
void trap_FS_Write (const void *buffer, int len, fileHandle_t f)
void trap_FS_FCloseFile (fileHandle_t f)
int trap_FS_GetFileList (const char *path, const char *extension, char *listbuf, int bufsize)
void trap_SendConsoleCommand (int exec_when, const char *text)
void trap_Cvar_Register (vmCvar_t *cvar, const char *var_name, const char *value, int flags)
void trap_Cvar_Update (vmCvar_t *cvar)
void trap_Cvar_Set (const char *var_name, const char *value)
int trap_Cvar_VariableIntegerValue (const char *var_name)
float trap_Cvar_VariableValue (const char *var_name)
void trap_Cvar_VariableStringBuffer (const char *var_name, char *buffer, int bufsize)
void trap_LocateGameData (gentity_t *gEnts, int numGEntities, int sizeofGEntity_t, playerState_t *gameClients, int sizeofGameClient)
void trap_DropClient (int clientNum, const char *reason)
void trap_SendServerCommand (int clientNum, const char *text)
void trap_SetConfigstring (int num, const char *string)
void trap_GetConfigstring (int num, char *buffer, int bufferSize)
void trap_GetUserinfo (int num, char *buffer, int bufferSize)
void trap_SetUserinfo (int num, const char *buffer)
void trap_GetServerinfo (char *buffer, int bufferSize)
void trap_SetServerCull (float cullDistance)
void trap_SetBrushModel (gentity_t *ent, const char *name)
void trap_Trace (trace_t *results, const vec3_t start, const vec3_t mins, const vec3_t maxs, const vec3_t end, int passEntityNum, int contentmask)
void trap_G2Trace (trace_t *results, const vec3_t start, const vec3_t mins, const vec3_t maxs, const vec3_t end, int passEntityNum, int contentmask, int g2TraceType, int traceLod)
int trap_PointContents (const vec3_t point, int passEntityNum)
qboolean trap_InPVS (const vec3_t p1, const vec3_t p2)
qboolean trap_InPVSIgnorePortals (const vec3_t p1, const vec3_t p2)
void trap_AdjustAreaPortalState (gentity_t *ent, qboolean open)
qboolean trap_AreasConnected (int area1, int area2)
void trap_LinkEntity (gentity_t *ent)
void trap_UnlinkEntity (gentity_t *ent)
int trap_EntitiesInBox (const vec3_t mins, const vec3_t maxs, int *entityList, int maxcount)
qboolean trap_EntityContact (const vec3_t mins, const vec3_t maxs, const gentity_t *ent)
int trap_BotAllocateClient (void)
void trap_BotFreeClient (int clientNum)
void trap_GetUsercmd (int clientNum, usercmd_t *cmd)
qboolean trap_GetEntityToken (char *buffer, int bufferSize)
void trap_SiegePersSet (siegePers_t *pers)
void trap_SiegePersGet (siegePers_t *pers)
int trap_DebugPolygonCreate (int color, int numPoints, vec3_t *points)
void trap_DebugPolygonDelete (int id)
int trap_BotLibSetup (void)
int trap_BotLibShutdown (void)
int trap_BotLibVarSet (char *var_name, char *value)
int trap_BotLibVarGet (char *var_name, char *value, int size)
int trap_BotLibDefine (char *string)
int trap_BotLibStartFrame (float time)
int trap_BotLibLoadMap (const char *mapname)
int trap_BotLibUpdateEntity (int ent, void *bue)
int trap_BotLibTest (int parm0, char *parm1, vec3_t parm2, vec3_t parm3)
int trap_BotGetSnapshotEntity (int clientNum, int sequence)
int trap_BotGetServerCommand (int clientNum, char *message, int size)
void trap_BotUserCommand (int client, usercmd_t *ucmd)
int trap_AAS_BBoxAreas (vec3_t absmins, vec3_t absmaxs, int *areas, int maxareas)
int trap_AAS_AreaInfo (int areanum, void *info)
void trap_AAS_EntityInfo (int entnum, void *info)
int trap_AAS_Initialized (void)
void trap_AAS_PresenceTypeBoundingBox (int presencetype, vec3_t mins, vec3_t maxs)
float trap_AAS_Time (void)
int trap_AAS_PointAreaNum (vec3_t point)
int trap_AAS_PointReachabilityAreaIndex (vec3_t point)
int trap_AAS_TraceAreas (vec3_t start, vec3_t end, int *areas, vec3_t *points, int maxareas)
int trap_AAS_PointContents (vec3_t point)
int trap_AAS_NextBSPEntity (int ent)
int trap_AAS_ValueForBSPEpairKey (int ent, char *key, char *value, int size)
int trap_AAS_VectorForBSPEpairKey (int ent, char *key, vec3_t v)
int trap_AAS_FloatForBSPEpairKey (int ent, char *key, float *value)
int trap_AAS_IntForBSPEpairKey (int ent, char *key, int *value)
int trap_AAS_AreaReachability (int areanum)
int trap_AAS_AreaTravelTimeToGoalArea (int areanum, vec3_t origin, int goalareanum, int travelflags)
int trap_AAS_EnableRoutingArea (int areanum, int enable)
int trap_AAS_PredictRoute (void *route, int areanum, vec3_t origin, int goalareanum, int travelflags, int maxareas, int maxtime, int stopevent, int stopcontents, int stoptfl, int stopareanum)
int trap_AAS_AlternativeRouteGoals (vec3_t start, int startareanum, vec3_t goal, int goalareanum, int travelflags, void *altroutegoals, int maxaltroutegoals, int type)
int trap_AAS_Swimming (vec3_t origin)
int trap_AAS_PredictClientMovement (void *move, int entnum, vec3_t origin, int presencetype, int onground, vec3_t velocity, vec3_t cmdmove, int cmdframes, int maxframes, float frametime, int stopevent, int stopareanum, int visualize)
void trap_EA_Say (int client, char *str)
void trap_EA_SayTeam (int client, char *str)
void trap_EA_Command (int client, char *command)
void trap_EA_Action (int client, int action)
void trap_EA_Gesture (int client)
void trap_EA_Talk (int client)
void trap_EA_Attack (int client)
void trap_EA_Use (int client)
void trap_EA_Respawn (int client)
void trap_EA_Crouch (int client)
void trap_EA_MoveUp (int client)
void trap_EA_MoveDown (int client)
void trap_EA_MoveForward (int client)
void trap_EA_MoveBack (int client)
void trap_EA_MoveLeft (int client)
void trap_EA_MoveRight (int client)
void trap_EA_SelectWeapon (int client, int weapon)
void trap_EA_Jump (int client)
void trap_EA_DelayedJump (int client)
void trap_EA_Move (int client, vec3_t dir, float speed)
void trap_EA_View (int client, vec3_t viewangles)
void trap_EA_Alt_Attack (int client)
void trap_EA_ForcePower (int client)
void trap_EA_EndRegular (int client, float thinktime)
void trap_EA_GetInput (int client, float thinktime, void *input)
void trap_EA_ResetInput (int client)
int trap_BotLoadCharacter (char *charfile, float skill)
void trap_BotFreeCharacter (int character)
float trap_Characteristic_Float (int character, int index)
float trap_Characteristic_BFloat (int character, int index, float min, float max)
int trap_Characteristic_Integer (int character, int index)
int trap_Characteristic_BInteger (int character, int index, int min, int max)
void trap_Characteristic_String (int character, int index, char *buf, int size)
int trap_BotAllocChatState (void)
void trap_BotFreeChatState (int handle)
void trap_BotQueueConsoleMessage (int chatstate, int type, char *message)
void trap_BotRemoveConsoleMessage (int chatstate, int handle)
int trap_BotNextConsoleMessage (int chatstate, void *cm)
int trap_BotNumConsoleMessages (int chatstate)
void trap_BotInitialChat (int chatstate, char *type, int mcontext, char *var0, char *var1, char *var2, char *var3, char *var4, char *var5, char *var6, char *var7)
int trap_BotNumInitialChats (int chatstate, char *type)
int trap_BotReplyChat (int chatstate, char *message, int mcontext, int vcontext, char *var0, char *var1, char *var2, char *var3, char *var4, char *var5, char *var6, char *var7)
int trap_BotChatLength (int chatstate)
void trap_BotEnterChat (int chatstate, int client, int sendto)
void trap_BotGetChatMessage (int chatstate, char *buf, int size)
int trap_StringContains (char *str1, char *str2, int casesensitive)
int trap_BotFindMatch (char *str, void *match, unsigned long int context)
void trap_BotMatchVariable (void *match, int variable, char *buf, int size)
void trap_UnifyWhiteSpaces (char *string)
void trap_BotReplaceSynonyms (char *string, unsigned long int context)
int trap_BotLoadChatFile (int chatstate, char *chatfile, char *chatname)
void trap_BotSetChatGender (int chatstate, int gender)
void trap_BotSetChatName (int chatstate, char *name, int client)
void trap_BotResetGoalState (int goalstate)
void trap_BotRemoveFromAvoidGoals (int goalstate, int number)
void trap_BotResetAvoidGoals (int goalstate)
void trap_BotPushGoal (int goalstate, void *goal)
void trap_BotPopGoal (int goalstate)
void trap_BotEmptyGoalStack (int goalstate)
void trap_BotDumpAvoidGoals (int goalstate)
void trap_BotDumpGoalStack (int goalstate)
void trap_BotGoalName (int number, char *name, int size)
int trap_BotGetTopGoal (int goalstate, void *goal)
int trap_BotGetSecondGoal (int goalstate, void *goal)
int trap_BotChooseLTGItem (int goalstate, vec3_t origin, int *inventory, int travelflags)
int trap_BotChooseNBGItem (int goalstate, vec3_t origin, int *inventory, int travelflags, void *ltg, float maxtime)
int trap_BotTouchingGoal (vec3_t origin, void *goal)
int trap_BotItemGoalInVisButNotVisible (int viewer, vec3_t eye, vec3_t viewangles, void *goal)
int trap_BotGetNextCampSpotGoal (int num, void *goal)
int trap_BotGetMapLocationGoal (char *name, void *goal)
int trap_BotGetLevelItemGoal (int index, char *classname, void *goal)
float trap_BotAvoidGoalTime (int goalstate, int number)
void trap_BotSetAvoidGoalTime (int goalstate, int number, float avoidtime)
void trap_BotInitLevelItems (void)
void trap_BotUpdateEntityItems (void)
int trap_BotLoadItemWeights (int goalstate, char *filename)
void trap_BotFreeItemWeights (int goalstate)
void trap_BotInterbreedGoalFuzzyLogic (int parent1, int parent2, int child)
void trap_BotSaveGoalFuzzyLogic (int goalstate, char *filename)
void trap_BotMutateGoalFuzzyLogic (int goalstate, float range)
int trap_BotAllocGoalState (int state)
void trap_BotFreeGoalState (int handle)
void trap_BotResetMoveState (int movestate)
void trap_BotMoveToGoal (void *result, int movestate, void *goal, int travelflags)
int trap_BotMoveInDirection (int movestate, vec3_t dir, float speed, int type)
void trap_BotResetAvoidReach (int movestate)
void trap_BotResetLastAvoidReach (int movestate)
int trap_BotReachabilityArea (vec3_t origin, int testground)
int trap_BotMovementViewTarget (int movestate, void *goal, int travelflags, float lookahead, vec3_t target)
int trap_BotPredictVisiblePosition (vec3_t origin, int areanum, void *goal, int travelflags, vec3_t target)
int trap_BotAllocMoveState (void)
void trap_BotFreeMoveState (int handle)
void trap_BotInitMoveState (int handle, void *initmove)
void trap_BotAddAvoidSpot (int movestate, vec3_t origin, float radius, int type)
int trap_BotChooseBestFightWeapon (int weaponstate, int *inventory)
void trap_BotGetWeaponInfo (int weaponstate, int weapon, void *weaponinfo)
int trap_BotLoadWeaponWeights (int weaponstate, char *filename)
int trap_BotAllocWeaponState (void)
void trap_BotFreeWeaponState (int weaponstate)
void trap_BotResetWeaponState (int weaponstate)
int trap_GeneticParentsAndChildSelection (int numranks, float *ranks, int *parent1, int *parent2, int *child)
void trap_SnapVector (float *v)
int trap_SP_GetStringTextString (const char *text, char *buffer, int bufferLength)
qboolean trap_ROFF_Clean (void)
void trap_ROFF_UpdateEntities (void)
int trap_ROFF_Cache (char *file)
qboolean trap_ROFF_Play (int entID, int roffID, qboolean doTranslation)
qboolean trap_ROFF_Purge_Ent (int entID)
void trap_TrueMalloc (void **ptr, int size)
void trap_TrueFree (void **ptr)
int trap_ICARUS_RunScript (gentity_t *ent, const char *name)
qboolean trap_ICARUS_RegisterScript (const char *name, qboolean bCalledDuringInterrogate)
void trap_ICARUS_Init (void)
qboolean trap_ICARUS_ValidEnt (gentity_t *ent)
qboolean trap_ICARUS_IsInitialized (int entID)
qboolean trap_ICARUS_MaintainTaskManager (int entID)
qboolean trap_ICARUS_IsRunning (int entID)
qboolean trap_ICARUS_TaskIDPending (gentity_t *ent, int taskID)
void trap_ICARUS_InitEnt (gentity_t *ent)
void trap_ICARUS_FreeEnt (gentity_t *ent)
void trap_ICARUS_AssociateEnt (gentity_t *ent)
void trap_ICARUS_Shutdown (void)
void trap_ICARUS_TaskIDSet (gentity_t *ent, int taskType, int taskID)
void trap_ICARUS_TaskIDComplete (gentity_t *ent, int taskType)
void trap_ICARUS_SetVar (int taskID, int entID, const char *type_name, const char *data)
int trap_ICARUS_VariableDeclared (const char *type_name)
int trap_ICARUS_GetFloatVariable (const char *name, float *value)
int trap_ICARUS_GetStringVariable (const char *name, const char *value)
int trap_ICARUS_GetVectorVariable (const char *name, const vec3_t value)
void trap_Nav_Init (void)
void trap_Nav_Free (void)
qboolean trap_Nav_Load (const char *filename, int checksum)
qboolean trap_Nav_Save (const char *filename, int checksum)
int trap_Nav_AddRawPoint (vec3_t point, int flags, int radius)
void trap_Nav_CalculatePaths (qboolean recalc)
void trap_Nav_HardConnect (int first, int second)
void trap_Nav_ShowNodes (void)
void trap_Nav_ShowEdges (void)
void trap_Nav_ShowPath (int start, int end)
int trap_Nav_GetNearestNode (gentity_t *ent, int lastID, int flags, int targetID)
int trap_Nav_GetBestNode (int startID, int endID, int rejectID)
int trap_Nav_GetNodePosition (int nodeID, vec3_t out)
int trap_Nav_GetNodeNumEdges (int nodeID)
int trap_Nav_GetNodeEdge (int nodeID, int edge)
int trap_Nav_GetNumNodes (void)
qboolean trap_Nav_Connected (int startID, int endID)
int trap_Nav_GetPathCost (int startID, int endID)
int trap_Nav_GetEdgeCost (int startID, int endID)
int trap_Nav_GetProjectedNode (vec3_t origin, int nodeID)
void trap_Nav_CheckFailedNodes (gentity_t *ent)
void trap_Nav_AddFailedNode (gentity_t *ent, int nodeID)
qboolean trap_Nav_NodeFailed (gentity_t *ent, int nodeID)
qboolean trap_Nav_NodesAreNeighbors (int startID, int endID)
void trap_Nav_ClearFailedEdge (failedEdge_t *failedEdge)
void trap_Nav_ClearAllFailedEdges (void)
int trap_Nav_EdgeFailed (int startID, int endID)
void trap_Nav_AddFailedEdge (int entID, int startID, int endID)
qboolean trap_Nav_CheckFailedEdge (failedEdge_t *failedEdge)
void trap_Nav_CheckAllFailedEdges (void)
qboolean trap_Nav_RouteBlocked (int startID, int testEdgeID, int endID, int rejectRank)
int trap_Nav_GetBestNodeAltRoute (int startID, int endID, int *pathCost, int rejectID)
int trap_Nav_GetBestNodeAltRoute2 (int startID, int endID, int rejectID)
int trap_Nav_GetBestPathBetweenEnts (gentity_t *ent, gentity_t *goal, int flags)
int trap_Nav_GetNodeRadius (int nodeID)
void trap_Nav_CheckBlockedEdges (void)
void trap_Nav_ClearCheckedNodes (void)
int trap_Nav_CheckedNode (int wayPoint, int ent)
void trap_Nav_SetCheckedNode (int wayPoint, int ent, int value)
void trap_Nav_FlagAllNodes (int newFlag)
qboolean trap_Nav_GetPathsCalculated (void)
void trap_Nav_SetPathsCalculated (qboolean newVal)
void trap_SV_RegisterSharedMemory (char *memory)
void trap_SetActiveSubBSP (int index)
int trap_CM_RegisterTerrain (const char *config)
void trap_RMG_Init (int terrainID)
void trap_Bot_UpdateWaypoints (int wpnum, wpobject_t **wps)
void trap_Bot_CalculatePaths (int rmg)

Variables

int gPainMOD
int gPainHitLoc
vec3_t gPainPoint
char gSharedBuffer [MAX_G_SHARED_BUFFER_SIZE]
void * precachedKyle
void * g2SaberInstance
qboolean gEscaping
int gEscapeTime
int gGAvoidDismember
int BMS_START
int BMS_MID
int BMS_END
gentity_tgJMSaberEnt
vmCvar_t g_ff_objectives
qboolean gDoSlowMoDuel
int gSlowMoDuelTime
level_locals_t level
gentity_t g_entities [MAX_GENTITIES]
vmCvar_t g_gametype
vmCvar_t g_dedicated
vmCvar_t g_developer
vmCvar_t g_cheats
vmCvar_t g_maxclients
vmCvar_t g_maxGameClients
vmCvar_t g_restarted
vmCvar_t g_trueJedi
vmCvar_t g_autoMapCycle
vmCvar_t g_dmflags
vmCvar_t g_maxForceRank
vmCvar_t g_forceBasedTeams
vmCvar_t g_privateDuel
vmCvar_t g_allowNPC
vmCvar_t g_armBreakage
vmCvar_t g_saberLocking
vmCvar_t g_saberLockFactor
vmCvar_t g_saberTraceSaberFirst
vmCvar_t d_saberKickTweak
vmCvar_t d_powerDuelPrint
vmCvar_t d_saberGhoul2Collision
vmCvar_t g_saberBladeFaces
vmCvar_t d_saberAlwaysBoxTrace
vmCvar_t d_saberBoxTraceSize
vmCvar_t d_siegeSeekerNPC
vmCvar_t g_debugMelee
vmCvar_t g_stepSlideFix
vmCvar_t g_noSpecMove
vmCvar_t d_perPlayerGhoul2
vmCvar_t d_projectileGhoul2Collision
vmCvar_t g_g2TraceLod
vmCvar_t g_optvehtrace
vmCvar_t g_locationBasedDamage
vmCvar_t g_allowHighPingDuelist
vmCvar_t g_logClientInfo
vmCvar_t g_slowmoDuelEnd
vmCvar_t g_saberDamageScale
vmCvar_t g_useWhileThrowing
vmCvar_t g_RMG
vmCvar_t g_svfps
vmCvar_t g_forceRegenTime
vmCvar_t g_spawnInvulnerability
vmCvar_t g_forcePowerDisable
vmCvar_t g_weaponDisable
vmCvar_t g_allowDuelSuicide
vmCvar_t g_fraglimitVoteCorrection
vmCvar_t g_duelWeaponDisable
vmCvar_t g_fraglimit
vmCvar_t g_duel_fraglimit
vmCvar_t g_timelimit
vmCvar_t g_capturelimit
vmCvar_t d_saberInterpolate
vmCvar_t g_friendlyFire
vmCvar_t g_friendlySaber
vmCvar_t g_password
vmCvar_t g_needpass
vmCvar_t g_gravity
vmCvar_t g_speed
vmCvar_t g_knockback
vmCvar_t g_quadfactor
vmCvar_t g_forcerespawn
vmCvar_t g_siegeRespawn
vmCvar_t g_inactivity
vmCvar_t g_debugMove
vmCvar_t g_debugAlloc
vmCvar_t g_debugDamage
vmCvar_t g_debugServerSkel
vmCvar_t g_weaponRespawn
vmCvar_t g_weaponTeamRespawn
vmCvar_t g_adaptRespawn
vmCvar_t g_synchronousClients
vmCvar_t g_motd
vmCvar_t g_warmup
vmCvar_t g_doWarmup
vmCvar_t g_blood
vmCvar_t g_allowVote
vmCvar_t g_teamAutoJoin
vmCvar_t g_teamForceBalance
vmCvar_t g_banIPs
vmCvar_t g_filterBan
vmCvar_t g_debugForward
vmCvar_t g_debugRight
vmCvar_t g_debugUp
vmCvar_t g_smoothClients
vmCvar_t pmove_fixed
vmCvar_t pmove_msec
vmCvar_t g_enableBreath
vmCvar_t g_singlePlayer
vmCvar_t g_dismember
vmCvar_t g_forceDodge
vmCvar_t g_timeouttospec
vmCvar_t g_saberDmgVelocityScale
vmCvar_t g_saberDmgDelay_Idle
vmCvar_t g_saberDmgDelay_Wound
vmCvar_t g_saberDebugPrint
vmCvar_t g_siegeTeamSwitch
vmCvar_t bg_fighterAltControl
vmCvar_t g_saberDebugBox
vmCvar_t d_altRoutes
vmCvar_t d_patched
vmCvar_t d_noIntermissionWait
vmCvar_t g_siegeTeam1
vmCvar_t g_siegeTeam2
vmCvar_t g_austrian
vmCvar_t g_powerDuelStartHealth
vmCvar_t g_powerDuelEndHealth
vmCvar_t g_showDuelHealths


Define Documentation

#define BODY_QUEUE_SIZE   8
 

Definition at line 31 of file g_local.h.

Referenced by InitBodyQue().

#define CARNAGE_REWARD_TIME   3000
 

Definition at line 38 of file g_local.h.

Referenced by player_die().

#define DAMAGE_DEATH_KNOCKBACK   0x00000080
 

Definition at line 1170 of file g_local.h.

Referenced by DEMP2_AltRadiusDamage(), EWebFire(), ImperialProbe_FireBlaster(), Mark1_FireBlaster(), Mark1_FireRocket(), Mark1Dead_FireBlaster(), Mark1Dead_FireRocket(), Mark2_FireBlaster(), Remote_Fire(), Seeker_Fire(), Sentry_Fire(), WP_FireBlasterMissile(), WP_FireEmplacedMissile(), WP_FireGenericBlasterMissile(), WP_FireTurboLaserMissile(), WP_FireTurretMissile(), and WP_FireVehicleWeapon().

#define DAMAGE_EXTRA_KNOCKBACK   0x00000040
 

Definition at line 1169 of file g_local.h.

#define DAMAGE_HALF_ABSORB   0x00000400
 

Definition at line 1173 of file g_local.h.

Referenced by CheckArmor(), G_MissileImpact(), and WP_FireStunBaton().

#define DAMAGE_HALF_ARMOR_REDUCTION   0x00000800
 

Definition at line 1174 of file g_local.h.

Referenced by CheckArmor().

#define DAMAGE_HEAVY_WEAP_CLASS   0x00001000
 

Definition at line 1175 of file g_local.h.

Referenced by G_MissileImpact(), and WP_FireEmplacedMissile().

#define DAMAGE_IGNORE_TEAM   0x00000100
 

Definition at line 1171 of file g_local.h.

Referenced by Boba_FireFlameThrower().

#define DAMAGE_NO_ARMOR   0x00000002
 

Definition at line 1164 of file g_local.h.

Referenced by Boba_FireFlameThrower(), CheckArmor(), ClientEvents(), ClientThink_real(), DoGripAction(), DoImpact(), G_RunFrame(), NPC_BSGM_Attack(), P_WorldEffects(), PM_VehicleImpact(), Rancor_Attack(), Rancor_Bite(), Rancor_Smash(), Rancor_Swing(), Wampa_Slash(), and WP_FireMelee().

#define DAMAGE_NO_DAMAGE   0x00000200
 

Definition at line 1172 of file g_local.h.

#define DAMAGE_NO_DISMEMBER   0x00008000
 

Definition at line 1178 of file g_local.h.

Referenced by G_Damage(), and WP_SaberApplyDamage().

#define DAMAGE_NO_HIT_LOC   0x00002000
 

Definition at line 1176 of file g_local.h.

Referenced by G_Damage(), G_LocationBasedDamageModifier(), and Rancor_Attack().

#define DAMAGE_NO_KNOCKBACK   0x00000004
 

Definition at line 1165 of file g_local.h.

Referenced by Boba_FireFlameThrower(), G_Damage(), G_TryPushingEntity(), Howler_TryDamage(), Interrogator_Melee(), MineMonster_TryDamage(), NPC_BSGM_Attack(), Rancor_Attack(), Rancor_Bite(), Rancor_Smash(), Rancor_Swing(), target_laser_think(), Wampa_Slash(), WP_DisruptorAltFire(), WP_FireStunBaton(), and WP_SaberRadiusDamage().

#define DAMAGE_NO_PROTECTION   0x00000008
 

Definition at line 1166 of file g_local.h.

Referenced by ClientThink_real(), Cmd_DuelTeam_f(), G_Damage(), G_KillBox(), hurt_touch(), hyperspace_touch(), NPC_BSSeeker_Default(), NPC_Mark2_Pain(), player_die(), Rancor_Attack(), shipboundary_touch(), and target_kill_use().

#define DAMAGE_NO_SELF_PROTECTION   0x00004000
 

Definition at line 1177 of file g_local.h.

Referenced by G_Damage().

#define DAMAGE_NO_TEAM_PROTECTION   0x00000010
 

Definition at line 1167 of file g_local.h.

#define DAMAGE_NORMAL   0x00000000
 

Definition at line 1162 of file g_local.h.

#define DAMAGE_RADIUS   0x00000001
 

Definition at line 1163 of file g_local.h.

Referenced by G_Damage(), and G_RadiusDamage().

#define DAMAGE_SABER_KNOCKBACK1   0x00010000
 

Definition at line 1179 of file g_local.h.

Referenced by G_Damage().

#define DAMAGE_SABER_KNOCKBACK1_B2   0x00040000
 

Definition at line 1181 of file g_local.h.

Referenced by G_Damage().

#define DAMAGE_SABER_KNOCKBACK2   0x00020000
 

Definition at line 1180 of file g_local.h.

Referenced by G_Damage().

#define DAMAGE_SABER_KNOCKBACK2_B2   0x00080000
 

Definition at line 1182 of file g_local.h.

Referenced by G_Damage().

#define DAMAGEREDIRECT_HEAD   1
 

Definition at line 362 of file g_local.h.

#define DAMAGEREDIRECT_LLEG   3
 

Definition at line 364 of file g_local.h.

#define DAMAGEREDIRECT_RLEG   2
 

Definition at line 363 of file g_local.h.

#define DEBUG_SABER_BOX
 

Definition at line 82 of file g_local.h.

#define FL_BBRUSH   0x04000000
 

Definition at line 79 of file g_local.h.

Referenced by charge_stick(), Client_CheckImpactBBrush(), DoImpact(), and G_Damage().

#define FL_BOUNCE   0x00100000
 

Definition at line 68 of file g_local.h.

Referenced by G_MissileImpact(), and G_RunObject().

#define FL_BOUNCE_HALF   0x00200000
 

Definition at line 69 of file g_local.h.

Referenced by CreateLaserTrap(), G_BounceMissile(), G_BounceObject(), G_MissileImpact(), G_RunMissile(), G_RunObject(), LaunchItem(), MakeDeadSaber(), saberKnockDown(), SP_info_jedimaster_start(), SP_misc_holocron(), WP_FireThermalDetonator(), and WP_SaberStartMissileBlockCheck().

#define FL_BOUNCE_SHRAPNEL   0x00400000
 

Definition at line 70 of file g_local.h.

Referenced by G_BounceMissile(), and G_MissileImpact().

#define FL_DMG_BY_HEAVY_WEAP_ONLY   0x02000000
 

Definition at line 77 of file g_local.h.

Referenced by G_Damage(), G_MissileImpact(), NPC_Spawn_Do(), and SP_func_breakable().

#define FL_DMG_BY_SABER_ONLY   0x01000000
 

Definition at line 76 of file g_local.h.

Referenced by G_Damage(), and SP_func_breakable().

#define FL_DONT_SHOOT   0x00040000
 

Definition at line 63 of file g_local.h.

Referenced by NPC_ExecuteBState().

#define FL_DROPPED_ITEM   0x00001000
 

Definition at line 57 of file g_local.h.

Referenced by CheckAlmostCapture(), CheckItemCanBePickedUpByNPC(), CTFFlagMovement(), CTFTakesPriority(), LaunchItem(), Pickup_Weapon(), Team_FragBonuses(), Team_ResetFlag(), Team_TouchOurFlag(), and Touch_Item().

#define FL_FORCE_GESTURE   0x00008000
 

Definition at line 60 of file g_local.h.

Referenced by ClientThink_real(), and Team_ForceGesture().

#define FL_GODMODE   0x00000010
 

Definition at line 53 of file g_local.h.

Referenced by ClientCommand(), Cmd_God_f(), Cmd_Kill_f(), Cmd_SiegeClass_f(), G_Damage(), P_DamageFeedback(), Q3_GetFloat(), and SetTeam().

#define FL_INACTIVE   0x00010000
 

Definition at line 61 of file g_local.h.

Referenced by G_EntIsUnlockedDoor(), G_SetActiveState(), GlobalUse(), hurt_touch(), InitMover(), InitTrigger(), maglock_die(), maglock_link(), multi_trigger(), SP_target_relay(), SP_target_scriptrunner(), target_counter_use(), target_relay_use(), Touch_DoorTrigger(), Touch_Multi(), trigger_push_touch(), trigger_teleporter_touch(), Use_BinaryMover(), and ValidUseTarget().

#define FL_NAVGOAL   0x00020000
 

Definition at line 62 of file g_local.h.

Referenced by NAV_ClearPathToPoint(), NPC_ClearPathToGoal(), NPC_SetMoveGoal(), and ST_TransferMoveGoal().

#define FL_NO_BOTS   0x00002000
 

Definition at line 58 of file g_local.h.

Referenced by ClientSpawn(), SP_info_player_deathmatch(), SP_info_player_duel(), SP_info_player_duel1(), and SP_info_player_duel2().

#define FL_NO_HUMANS   0x00004000
 

Definition at line 59 of file g_local.h.

Referenced by ClientSpawn(), SP_info_player_deathmatch(), SP_info_player_duel(), SP_info_player_duel1(), and SP_info_player_duel2().

#define FL_NO_KNOCKBACK   0x00000800
 

Definition at line 56 of file g_local.h.

Referenced by G_Damage(), NPC_BSJump(), NPC_GalakMech_Init(), NPC_SetMiscDefaultData(), NPC_Spawn_Do(), Q3_GetFloat(), Q3_Kill(), and WP_SaberRadiusDamage().

#define FL_NOTARGET   0x00000020
 

Definition at line 54 of file g_local.h.

Referenced by Cmd_Notarget_f(), G_SetEnemy(), Jedi_Cloak(), Jedi_Decloak(), NPC_Begin(), NPC_BSFollowLeader(), NPC_CheckCanAttack(), NPC_CheckEnemy(), NPC_CheckEnemyStealth(), NPC_CheckInvestigate(), NPC_CheckPossibleEnemy(), NPC_Pain(), NPC_PickEnemy(), NPC_Rancor_Pain(), NPC_Spawn_Do(), NPC_Touch(), NPC_ValidEnemy(), NPC_Wampa_Pain(), Q3_GetFloat(), turret_base_think(), turretG2_base_think(), and ValidEnemy().

#define FL_SHIELDED   0x00080000
 

Definition at line 64 of file g_local.h.

Referenced by G_Damage(), G_DriveATST(), G_MissileImpact(), maglock_link(), Mark2_AttackDecision(), NPC_BSGM_Default(), NPC_GalakMech_Init(), NPC_Sentry_Pain(), NPC_SetMiscDefaultData(), NPC_Spawn_Do(), Sentry_Fire(), Sentry_Idle(), Sentry_RangedAttack(), sentry_use(), and WP_DisruptorAltFire().

#define FL_TEAMSLAVE   0x00000400
 

Definition at line 55 of file g_local.h.

Referenced by FinishSpawningItem(), G_EntIsUnlockedDoor(), G_FindDoorTrigger(), G_FindTeams(), G_RunMover(), SP_func_door(), Touch_DoorTrigger(), and Use_BinaryMover().

#define FL_UNDYING   0x00100000
 

Definition at line 65 of file g_local.h.

Referenced by G_Damage(), G_EjectDroidUnit(), NPC_Begin(), and player_die().

#define FL_VEH_BOARDING   0x00800000
 

Definition at line 73 of file g_local.h.

#define FOFS  )     ((int)&(((gentity_t *)0)->x))
 

Definition at line 1503 of file g_local.h.

Referenced by asteroid_pick_random_asteroid(), BlowDetpacks(), BotCheckDetPacks(), CheckAlmostCapture(), ClientCommand(), Cmd_NPC_f(), FindIntermissionPoint(), fx_runner_link(), G_EntIsUnlockedDoor(), G_FindDoorTrigger(), G_PickTarget(), G_RMGPathing(), G_SetActiveState(), G_UseTargets2(), GetObjectThatTargets(), hyperspace_touch(), misc_weapon_shooter_aim(), NPC_ShowDebugInfo(), Q3_Kill(), Q3_Remove(), Q3_SetICARUSFreeze(), ref_link(), SelectDuelSpawnPoint(), SelectInitialSpawnPoint(), SelectNearestDeathmatchSpawnPoint(), SelectRandomDeathmatchSpawnPoint(), SelectRandomFurthestSpawnPoint(), SelectRandomTeamSpawnPoint(), shipboundary_touch(), SiegeItemUse(), target_laser_start(), target_random_use(), Team_FragBonuses(), Team_ResetFlag(), Think_SetupTrainTargets(), Use_Target_Give(), UseSiegeTarget(), WP_DropDetPack(), and WP_PlaceLaserTrap().

#define FOLLOW_ACTIVE1   -1
 

Definition at line 405 of file g_local.h.

#define FOLLOW_ACTIVE2   -2
 

Definition at line 406 of file g_local.h.

#define FRAMETIME   100
 

Definition at line 37 of file g_local.h.

Referenced by AI_RefreshGroup(), drop_charge(), finish_spawning_turretG2(), ForceJump(), ForceJumpCharge(), func_wait_return_solid(), G_Dismember(), G_RunObject(), G_SpawnItem(), G_StartObjectMoving(), GM_Dying(), hurt_touch(), laserTrapDelayedExplode(), laserTrapThink(), misc_weapon_shooter_aim(), MoveOwner(), NAV_ClearPathToPoint(), NAV_TrueCollision(), NPC_Begin(), NPC_BSRemove(), NPC_RemoveBody(), NPC_Spawn_Do(), NPC_SpawnType(), NPC_Think(), pas_think(), SiegeItemThink(), SiegeItemUse(), SolidifyOwner(), SP_func_door(), SP_func_timer(), SP_func_train(), SP_misc_siege_item(), SP_misc_turret(), SP_PAS(), SP_target_laser(), SP_target_push(), SP_trigger_multiple(), SP_trigger_push(), target_laser_think(), target_relay_use(), touchLaserTrap(), turret_base_think(), turretG2_base_think(), Use_BinaryMover_Go(), and WP_SaberPositionUpdate().

#define GAME_INLINE   ID_INLINE
 

Definition at line 11 of file g_local.h.

Referenced by AddPassenger(), Inhabited(), SetParent(), SetPilot(), and VectorCompare2().

#define GAMEVERSION   "basejka_mod"
 

Definition at line 29 of file g_local.h.

Referenced by G_InitGame().

#define INFINITE   1000000
 

Definition at line 34 of file g_local.h.

#define INTERMISSION_DELAY_TIME   1000
 

Definition at line 41 of file g_local.h.

Referenced by CheckExitRules().

#define MAX_ALERT_EVENTS   32
 

Definition at line 769 of file g_local.h.

Referenced by AddSightEvent(), AddSoundEvent(), ClearPlayerAlertEvents(), and RemoveOldestAlert().

#define MAX_COMBAT_POINTS   512
 

Definition at line 754 of file g_local.h.

Referenced by NPC_FindCombatPoint(), and SP_point_combat().

#define MAX_FILEPATH   144
 

Definition at line 1472 of file g_local.h.

#define MAX_G_SHARED_BUFFER_SIZE   8192
 

Definition at line 85 of file g_local.h.

#define MAX_INTEREST_POINTS   64
 

Definition at line 744 of file g_local.h.

Referenced by SP_target_interest().

#define MAX_NETNAME   36
 

Definition at line 435 of file g_local.h.

Referenced by Cmd_CallTeamVote_f().

#define MAX_REFNAME   32
 

Definition at line 1226 of file g_local.h.

Referenced by TAG_Add().

#define MAX_VOTE_COUNT   3
 

Definition at line 436 of file g_local.h.

Referenced by Cmd_CallTeamVote_f(), and Cmd_CallVote_f().

#define PSG_TEAMVOTED   (1<<1)
 

Definition at line 432 of file g_local.h.

Referenced by ClientSpawn(), Cmd_CallTeamVote_f(), and Cmd_TeamVote_f().

#define PSG_VOTED   (1<<0)
 

Definition at line 431 of file g_local.h.

Referenced by ClientSpawn(), Cmd_CallVote_f(), and Cmd_Vote_f().

#define REWARD_SPRITE_TIME   2000
 

Definition at line 39 of file g_local.h.

Referenced by player_die(), Team_FragBonuses(), and Team_TouchOurFlag().

#define RTF_NAVGOAL   0x00000001
 

Definition at line 1230 of file g_local.h.

Referenced by NAV_ShowDebugInfo(), SP_waypoint_navgoal(), SP_waypoint_navgoal_1(), SP_waypoint_navgoal_2(), SP_waypoint_navgoal_4(), and SP_waypoint_navgoal_8().

#define RTF_NONE   0
 

Definition at line 1229 of file g_local.h.

#define SP_INTERMISSION_DELAY_TIME   5000
 

Definition at line 42 of file g_local.h.

#define SP_PODIUM_MODEL   "models/mapobjects/podium/podium4.md3"
 

Definition at line 96 of file g_local.h.

Referenced by G_InitGame().

#define SPF_BUTTON_FPUSHABLE   2
 

Definition at line 1211 of file g_local.h.

Referenced by ForceThrow().

#define SPF_BUTTON_USABLE   1
 

Definition at line 1210 of file g_local.h.

#define START_TIME_FIND_LINKS   FRAMETIME*2
 

Definition at line 46 of file g_local.h.

Referenced by SP_misc_maglock().

#define START_TIME_FIND_WAYPOINT   FRAMETIME*5
 

Definition at line 50 of file g_local.h.

#define START_TIME_LINK_ENTS   FRAMETIME*1
 

Definition at line 1227 of file g_local.h.

#define START_TIME_LINK_ENTS   FRAMETIME*1
 

Definition at line 1227 of file g_local.h.

Referenced by SP_misc_weapon_shooter(), and SP_reference_tag().

#define START_TIME_MOVERS_SPAWNED   FRAMETIME*2
 

Definition at line 47 of file g_local.h.

#define START_TIME_NAV_CALC   FRAMETIME*4
 

Definition at line 49 of file g_local.h.

Referenced by G_InitGame().

#define START_TIME_REMOVE_ENTS   FRAMETIME*3
 

Definition at line 48 of file g_local.h.

Referenced by SP_NPC_spawner().


Typedef Documentation

typedef struct alertEvent_s alertEvent_t
 

Referenced by ClearPlayerAlertEvents(), NPC_PickEnemyExt(), and RemoveOldestAlert().

typedef struct bot_settings_s bot_settings_t
 

Referenced by BotAISetupClient(), BotResetState(), and G_BotConnect().

typedef int clientConnected_t
 

Definition at line 371 of file g_local.h.

typedef struct gclient_s gclient_t
 

Definition at line 17 of file g_local.h.

Referenced by AddPowerDuelPlayers(), AddTournamentPlayer(), BotDamageNotification(), BroadcastTeamChange(), CalculateRanks(), CheckArmor(), CheckExitRules(), CheckIntermissionExit(), ClientBegin(), ClientConnect(), ClientEvents(), ClientForString(), ClientInactivityTimer(), ClientIntermissionThink(), ClientNumberFromString(), ClientSpawn(), ClientThink_real(), ClientTimerActions(), ClientUserinfoChanged(), DeathmatchScoreboardMessage(), DuelLimitHit(), DuelResetWinsLosses(), ExitLevel(), G_AddRandomBot(), G_ClientForShooter(), G_ClientNumberFromName(), G_ClientNumberFromStrippedName(), G_CountBotPlayers(), G_CountHumanPlayers(), G_CreateFakeClient(), G_Damage(), G_FreeClientForShooter(), G_FreeFakeClient(), G_GetDuelWinner(), G_InitSessionData(), G_KickAllBots(), G_PowerDuelCount(), G_ReadSessionData(), G_RemoveRandomBot(), G_WriteClientSessionData(), LogExit(), NPC_Begin(), P_DamageFeedback(), P_SetTwitchInfo(), Pickup_Powerup(), Pickup_Team(), player_die(), RemovePowerDuelLosers(), SetTeam(), SiegeTakesPriority(), SortRanks(), SpectatorClientEndFrame(), SpectatorThink(), Svcmd_ForceTeam_f(), Team_TouchEnemyFlag(), Team_TouchOurFlag(), and WP_SetSaberModel().

typedef struct gentity_s gentity_t
 

Definition at line 16 of file g_local.h.

Referenced by AcceptBotCommand(), Add_Ammo(), AddScore(), AddSiegeWinningTeamPoints(), AddSightEvent(), AddSoundEvent(), AddTeamScore(), AI_CheckEnemyCollision(), AI_DeleteSelfFromGroup(), AI_DistributeAttack(), AI_FindSelfInPreviousGroup(), AI_GetGroup(), AI_GetGroupSize(), AI_GetGroupSize2(), AI_GetNextEmptyGroup(), AI_GroupMemberKilled(), AI_GroupUpdateSquadstates(), AI_InsertGroupMember(), AI_RefreshGroup(), AI_SetNewGroupCommander(), AI_TryJoinPreviousGroup(), AI_ValidateGroupMember(), AI_ValidateNoEnemyGroupMember(), AimAtTarget(), ammo_generic_power_converter_use(), ammo_power_converter_use(), anglerCallback(), AnimateRiders(), asteroid_count_num_asteroids(), asteroid_field_think(), asteroid_pick_random_asteroid(), auto_turret_die(), BeamOut(), BeginAutoPathRoutine(), BeginIntermission(), BG_MySaber(), BG_ParseField(), BG_VehTraceFromCamPos(), Blocked_Door(), Blocked_Mover(), BlowDetpacks(), Board(), Boba_DoFlameThrower(), Boba_FireDecide(), Boba_FireFlameThrower(), Boba_Flying(), Boba_FlyStart(), Boba_FlyStop(), Boba_StartFlameThrower(), Boba_StopKnockdown(), body_die(), BodyRemovalPadTime(), BodyRid(), BodySink(), BotAI_GetClientState(), BotAI_GetEntityState(), BotCanHear(), BotCheckDetPacks(), BotDamageNotification(), BotDoChat(), BotGetFlagBack(), BotGuardFlagCarrier(), BotHasAssociated(), BotOrder(), BotScanForLeader(), BotStraightTPOrderCheck(), bottom_die(), BotWaypointRender(), CalcEntitySpot(), CalcMuzzlePoint(), CalcMuzzlePointOrigin(), CalcTeamDoorCenter(), CalculateAwards(), CalculateDemolitionist(), CalculateEfficiency(), CalculateLogistics(), CalculateSection31Award(), CalculateSharpshooter(), CalculateSiegeGoals(), CalculateStreak(), CalculateTactician(), CalculateTeamAward(), CalculateTeamCarrier(), CalculateTeamDefender(), CalculateTeamInterceptor(), CalculateTeamMVP(), CalculateTeamMVPByRank(), CalculateTeamRedShirt(), CalculateTeamWarrior(), CalculateUntouchable(), CalculateWeightGoals(), CanCounterThrow(), CanDamage(), CanSee(), CanShoot(), ChangeWeapon(), charge_stick(), CheatsOk(), check_recharge(), CheckAlmostCapture(), CheckArmor(), CheckForFriendInLOF(), CheckForFunc(), CheckItemCanBePickedUpByNPC(), CheckTeamStatus(), CheckTournament(), Client_CheckImpactBBrush(), ClientBegin(), ClientCommand(), ClientConnect(), ClientDisconnect(), ClientEndFrame(), ClientEvents(), ClientImpacts(), ClientNumberFromString(), ClientSpawn(), ClientThink(), ClientThink_real(), ClientTimerActions(), ClientUserinfoChanged(), Cmd_CallTeamVote_f(), Cmd_CallVote_f(), Cmd_DebugSetBodyAnim_f(), Cmd_DebugSetSaberMove_f(), Cmd_DuelTeam_f(), Cmd_EngageDuel_f(), Cmd_Follow_f(), Cmd_FollowCycle_f(), Cmd_ForceChanged_f(), Cmd_GameCommand_f(), Cmd_Give_f(), Cmd_God_f(), Cmd_Kill_f(), Cmd_LevelShot_f(), Cmd_Noclip_f(), Cmd_Notarget_f(), Cmd_NPC_f(), Cmd_SaberAttackCycle_f(), Cmd_Score_f(), Cmd_SetViewpos_f(), Cmd_SiegeClass_f(), Cmd_Stats_f(), Cmd_Team_f(), Cmd_TeamTask_f(), Cmd_TeamVote_f(), Cmd_ToggleSaber_f(), Cmd_Vote_f(), Cmd_Where_f(), CommanderBotCTFAI(), CommanderBotSiegeAI(), CommanderBotTeamplayAI(), CorpsePhysics(), CreateLaserTrap(), CreateMissile(), CreateShield(), CTFFlagMovement(), CTFTakesPriority(), DeadSaberThink(), DeathFX(), DeathmatchScoreboardMessage(), Debug_NPCPrintf(), decompTriggerUse(), DEMP2_AltDetonate(), DEMP2_AltRadiusDamage(), DetPackBlow(), DetPackDie(), DetPackPain(), Disappear(), DismembermentByNum(), DismembermentTest(), Do_Strike(), DoGripAction(), DoImpact(), DoorBlockingSection(), DownedSaberThink(), drop_charge(), Drop_Item(), Eject(), EjectAll(), emplaced_gun_die(), emplaced_gun_pain(), emplaced_gun_realuse(), emplaced_gun_update(), emplaced_gun_use(), EnergyAmmoStationSettings(), EnergyHealthStationSettings(), EnergyShieldStationSettings(), EntIsGlass(), EWeb_Create(), EWeb_SetBoneAngles(), EWeb_SetBoneAnim(), EWebDie(), EWebDisattach(), EWebFire(), EWebPain(), EWebPositionUser(), EWebThink(), EWebUpdateBoneAngles(), ExplodeDeath(), faller_think(), faller_touch(), FighterIsInSpace(), FighterSuspended(), FindGenericEnemyIndex(), FindIntermissionPoint(), finish_spawning_turretG2(), FinishSpawningItem(), FireVehicleWeapon(), FireWeapon(), FlagObjects(), FlyingCreature(), ForceAbsorb(), ForceDrain(), ForceDrainDamage(), ForceGrip(), ForceHeal(), ForceJump(), ForceJumpCharge(), ForceLightning(), ForceLightningDamage(), ForcePowerUsableOn(), ForceProtect(), ForceRage(), ForceSeeing(), ForceShootDrain(), ForceShootLightning(), ForceSpeed(), ForceTeamForceReplenish(), ForceTeamHeal(), ForceTelepathy(), ForceTelepathyCheckDirectNPCTarget(), ForceThrow(), func_rotating_use(), func_static_use(), func_timer_think(), func_timer_use(), func_usable_die(), func_usable_pain(), func_usable_think(), func_usable_use(), func_wait_return_solid(), funcBBrushDie(), funcBBrushDieGo(), funcBBrushPain(), funcBBrushTouch(), funcBBrushUse(), fx_runner_link(), fx_runner_think(), fx_runner_use(), G2Tur_SetBoneAngles(), G_ActivateBehavior(), G_AddEvent(), G_AddPowerDuelLoserScore(), G_AddPowerDuelScore(), G_AddPredictableEvent(), G_AddPushVecToUcmd(), G_AddVoiceEvent(), G_AimSet(), G_AlertTeam(), G_AngerAlert(), G_ApplyKnockback(), G_ATSTCheckPain(), G_AttachToVehicle(), G_AttackDelay(), G_BounceItem(), G_BounceMissile(), G_BounceObject(), G_BreakArm(), G_CallSpawn(), G_CanBeEnemy(), G_CanDisruptify(), G_CanJumpToEnemyVeh(), G_CanResetDuelists(), G_CanUseDispOn(), G_CheapWeaponFire(), G_CheckAlertEvents(), G_CheckClientIdle(), G_CheckClientTimeouts(), G_CheckForDanger(), G_CheckForDismemberment(), G_CheckInSolid(), G_CheckMovingLoopingSounds(), G_CheckVictoryScript(), G_Chunks(), G_CleanAllFakeClients(), G_ClearEnemy(), G_ClearLineOfSight(), G_ClearLOS(), G_ClearLOS2(), G_ClearLOS3(), G_ClearLOS4(), G_ClearLOS5(), G_Damage(), G_DeathAlert(), G_DeflectMissile(), G_Dismember(), G_DrivableATSTDie(), G_DriveATST(), G_DroidSounds(), G_EjectDroidUnit(), G_EntIsBreakable(), G_EntIsDoor(), G_EntIsRemovableUsable(), G_EntIsUnlockedDoor(), G_EntitiesFree(), G_EntitySound(), G_ExplodeMissile(), G_Find(), G_FindDoorTrigger(), G_FindLocalInterestPoint(), G_FindTeams(), G_ForceSaberOn(), G_FreeEntity(), G_GetBoltPosition(), G_GetDismemberBolt(), G_GetDismemberLoc(), G_GetDuelWinner(), G_GetHitLocation(), G_GetHitLocFromSurfName(), G_GetHitQuad(), G_GetJediMaster(), G_HeavyMelee(), G_HeldByMonster(), G_InitGame(), G_InitGentity(), G_IsRidingVehicle(), G_KillBox(), G_Knockdown(), G_KnockOffVehicle(), G_LetGoOfWall(), G_LocationBasedDamageModifier(), G_MiscModelExplosion(), G_MissileBounceEffect(), G_MissileImpact(), G_MoverPush(), G_MoverTeam(), G_MoverTouchPushTriggers(), G_MuteSound(), G_OtherPlayersDueling(), G_PickDeathAnim(), G_PickTarget(), G_PlayDoorLoopSound(), G_PlayDoorSound(), G_PlayEffect(), G_PlayEffectID(), G_PlayerHasCustomSkeleton(), G_PortalifyEntities(), G_PowerDuelCheckFail(), G_PrecacheSoundsets(), G_PreDefSound(), G_RadiusDamage(), G_RadiusList(), G_ReflectMissile(), G_RemoveDuelist(), G_ResetDuelists(), G_RMGPathing(), G_ROFF_NotetrackCallback(), G_RunClient(), G_RunExPhys(), G_RunFrame(), G_RunItem(), G_RunMissile(), G_RunMover(), G_RunObject(), G_RunStuckMissile(), G_RunThink(), G_SaberModelSetup(), G_Say(), G_ScaleNetHealth(), G_ScreenShake(), G_SetActiveState(), G_SetAngles(), G_SetAnim(), G_SetClientSound(), G_SetEnemy(), G_SetOrigin(), G_SetSaber(), G_SetTauntAnim(), G_ShutdownGame(), G_SiegeClientExData(), G_Sound(), G_SoundAtLoc(), G_SoundOnEnt(), G_SoundTempEntity(), G_Spawn(), G_SpawnEntitiesFromString(), G_SpawnGEntityFromSpawnVars(), G_SpawnItem(), G_SpecialRollGetup(), G_SpecialSpawnItem(), G_SpeechEvent(), G_SPSaberDamageTraceLerped(), G_StartFlee(), G_StartMatrixEffect(), G_StartObjectMoving(), G_StopObjectMoving(), G_TeamEnemy(), G_TempEntity(), G_TestEntityPosition(), G_TestLine(), G_ThereIsAMaster(), G_Throw(), G_TouchTriggers(), G_TryPushingEntity(), G_UcmdMoveForDir(), G_UpdateClientAnims(), G_UpdateClientBroadcasts(), G_UseDispenserOn(), G_UseTargets(), G_UseTargets2(), G_ValidateSiegeClassForTeam(), G_VehicleAttachDroidUnit(), G_VehicleSpawn(), G_VehMuzzleFireFX(), GEntity_UseFunc(), GetClosestSpawn(), GetIdealDestination(), GetNearestBadThing(), GetNewFlagPoint(), GetNextSpawnInIndex(), GetObjectThatTargets(), GibEntity(), GlassDie(), GlassDie_Old(), GlassPain(), GlassUse(), GlobalUse(), GM_Dying(), Grenadier_ClearTimers(), health_power_converter_use(), HolocronPopOut(), HolocronRespawn(), HolocronThink(), HolocronTouch(), HolocronUpdate(), Howler_TryDamage(), hurt_touch(), hurt_use(), hyperspace_touch(), IdealDistance(), ImperialProbe_FireBlaster(), ImperialProbe_MaintainHeight(), InFOV(), InFOV2(), InitBodyQue(), Initialize(), InitMover(), InitMoverTrData(), InitShooter(), InitTrigger(), Interrogator_die(), Interrogator_MaintainHeight(), InVisrange(), ItemUse_Binoculars(), ItemUse_Jetpack(), ItemUse_MedPack(), ItemUse_MedPack_Big(), ItemUse_Seeker(), ItemUse_Sentry(), ItemUse_Shield(), ItemUse_UseCloak(), ItemUse_UseDisp(), ItemUse_UseEWeb(), Jedi_Ambush(), Jedi_CanPullBackSaber(), Jedi_CheckAmbushPlayer(), Jedi_CheckFlipEvasions(), Jedi_ClearTimers(), Jedi_Cloak(), Jedi_Decloak(), Jedi_DodgeEvasion(), Jedi_FindEnemyInCone(), Jedi_PlayBlockedPushSound(), Jedi_PlayDeflectSound(), Jedi_QuickReactions(), Jedi_RageStop(), Jedi_ReCalcParryTime(), Jedi_SaberBlockGo(), Jedi_SaberBusy(), Jedi_WaitingAmbush(), JediMasterUpdate(), Jetpack_Off(), Jetpack_On(), JMSaberThink(), JMSaberTouch(), JMTakesPriority(), laserTrapDelayedExplode(), laserTrapExplode(), laserTrapStick(), laserTrapThink(), LaunchItem(), LimbThink(), LimbTouch(), LoadPath_ThisLevel(), locateCamera(), LockDoors(), LogAccuracyHit(), LookAtKiller(), maglock_die(), maglock_link(), MaintainBodyQueue(), MakeDeadSaber(), Mark1_die(), Mark1_dying(), Mark1_FireBlaster(), Mark1_FireRocket(), Mark1Dead_FireBlaster(), Mark1Dead_FireRocket(), Mark2_FireBlaster(), MatchTeam(), MineMonster_TryDamage(), misc_dlight_use(), misc_faller_create(), misc_faller_think(), misc_weapon_shooter_aim(), misc_weapon_shooter_fire(), misc_weapon_shooter_use(), moveAndRotateCallback(), MoveClientToIntermission(), MoveOwner(), moverCallback(), multi_trigger(), multi_trigger_run(), multi_wait(), NAV_AvoidCollision(), NAV_Bypass(), NAV_CheckAhead(), NAV_CheckNodeFailedForEnt(), NAV_ClearBlockedInfo(), NAV_ClearPathToPoint(), NAV_FindClosestWaypointForEnt(), NAV_FindClosestWaypointForPoint(), NAV_FindClosestWaypointForPoint2(), NAV_GetNearestNode(), NAV_MoveBlocker(), NAV_MoveToGoal(), NAV_ResolveBlock(), NAV_ResolveEntityCollision(), NAV_SetBlockedInfo(), NAV_StackedCanyon(), NAV_Steer(), NAV_StoreWaypoint(), NAV_TestBestNode(), NAV_TestForBlocked(), NAV_TrueCollision(), NAV_WaypointsTooFar(), NAVNEW_AvoidCollision(), NAVNEW_Bypass(), NAVNEW_CheckDoubleBlock(), NAVNEW_DanceWithBlocker(), NAVNEW_MoveToGoal(), NAVNEW_PushBlocker(), NAVNEW_ResolveEntityCollision(), NAVNEW_SidestepBlocker(), NAVNEW_TestNodeConnectionBlocked(), NPC_Accelerate(), NPC_ATST_Pain(), NPC_Begin(), NPC_Blocked(), NPC_BSAdvanceFight(), NPC_BSEmplaced(), NPC_BSFlee(), NPC_BSGM_Attack(), NPC_BSGrenadier_Attack(), NPC_BSJedi_Default(), NPC_BSJedi_FollowLeader(), NPC_BSMove(), NPC_BSRancor_Default(), NPC_BSSeeker_Default(), NPC_BSST_Attack(), NPC_BSStandGuard(), NPC_BSWampa_Default(), NPC_CheckCanAttack(), NPC_CheckEnemy(), NPC_CheckEnemyStealth(), NPC_CheckGetNewWeapon(), NPC_CheckInvestigate(), NPC_CheckLookTarget(), NPC_CheckPlayerTeamStealth(), NPC_CheckPossibleEnemy(), NPC_CheckVisibility(), NPC_ChoosePainAnimation(), NPC_ClearBlocked(), NPC_ClearGoal(), NPC_ClearLookTarget(), NPC_ClearLOS2(), NPC_ClearLOS3(), NPC_ClearLOS4(), NPC_ClearPathToGoal(), NPC_ClearShot(), NPC_DefaultScriptFlags(), NPC_Droid_Pain(), NPC_EnemyTooFar(), NPC_EntRangeFromBolt(), NPC_ExecuteBState(), NPC_FaceEntity(), NPC_FindEnemy(), NPC_FindNearestEnemy(), NPC_GalakMech_Init(), NPC_GetPainChance(), NPC_GM_Pain(), NPC_Grenadier_Pain(), NPC_Grenadier_PlayConfusionSound(), NPC_Howler_Pain(), NPC_Interrogator_Precache(), NPC_Jedi_Pain(), NPC_Jedi_PlayConfusionSound(), NPC_Jedi_RateNewEnemy(), NPC_Kill_f(), NPC_Mark1_Pain(), NPC_Mark1_Part_Explode(), NPC_Mark2_Pain(), NPC_Mark2_Part_Explode(), NPC_MineMonster_Pain(), NPC_Pain(), NPC_PainFunc(), NPC_ParseParms(), NPC_PickAlly(), NPC_PickEnemy(), NPC_PickEnemyExt(), NPC_PlayConfusionSound(), NPC_Precache(), NPC_PrecacheType(), NPC_PrintScore(), NPC_Probe_Pain(), NPC_Rancor_Pain(), NPC_Remote_Pain(), NPC_RemoveBody(), NPC_Respond(), NPC_SearchForWeapons(), NPC_Seeker_Pain(), NPC_Sentry_Pain(), NPC_SetAnim(), NPC_SetBlocked(), NPC_SetBoneAngles(), NPC_SetFX_SpawnStates(), NPC_SetGoal(), NPC_SetLookTarget(), NPC_SetMiscDefaultData(), NPC_SetMoveGoal(), NPC_SetPainEvent(), NPC_SetPickUpGoal(), NPC_SetSurfaceOnOff(), NPC_SetWeapons(), NPC_ShotEntity(), NPC_ShowDebugInfo(), NPC_ShySpawn(), NPC_Sniper_Pain(), NPC_Sniper_PlayConfusionSound(), NPC_SomeoneLookingAtMe(), NPC_Spawn(), NPC_Spawn_Do(), NPC_Spawn_f(), NPC_Spawn_Go(), NPC_SpawnEffect(), NPC_SpawnType(), NPC_SpotWouldTelefrag(), NPC_ST_Pain(), NPC_StandTrackAndShoot(), NPC_StartFlee(), NPC_TargetVisible(), NPC_TempLookTarget(), NPC_Think(), NPC_Touch(), NPC_TouchFunc(), NPC_Use(), NPC_UseResponse(), NPC_ValidEnemy(), NPC_VehiclePrecache(), NPC_VehicleSpawnUse(), NPC_Wampa_Pain(), ObjectDie(), OnSameTeam(), P_DamageFeedback(), P_WorldEffects(), pas_adjust_enemy(), pas_fire(), pas_think(), PassLovedOneCheck(), PassStandardEnemyChecks(), Pickup_Ammo(), Pickup_Armor(), Pickup_Health(), Pickup_Holdable(), Pickup_Powerup(), Pickup_Team(), Pickup_Weapon(), pitch_roll_for_slope(), PlaceShield(), player_die(), PlayersInGame(), PM_HoverTrace(), PM_VehicleImpact(), PmoveSingle(), PrintCTFMessage(), ProcessOrientCommands(), prox_mine_think(), proxMineThink(), Q3_GetFloat(), Q3_GetString(), Q3_GetTag(), Q3_GetVector(), Q3_Kill(), Q3_Lerp2Angles(), Q3_Lerp2End(), Q3_Lerp2Origin(), Q3_Lerp2Pos(), Q3_Lerp2Start(), Q3_Play(), Q3_PlaySound(), Q3_Remove(), Q3_RemoveEnt(), Q3_Set(), Q3_SetICARUSFreeze(), Q3_SetLoopSound(), Q3_SetParm(), Q3_Use(), Rancor_Bite(), Rancor_CheckRoar(), Rancor_Crush(), Rancor_DropVictim(), Rancor_SetBolts(), Rancor_Smash(), Rancor_Swing(), Reached_BinaryMover(), Reached_Train(), ReachedGoal(), ref_link(), Remote_Fire(), Remote_MaintainHeight(), respawn(), RespawnItem(), ReturnToPos1(), RocketDie(), rocketThink(), saberBackToOwner(), SaberBounceSound(), saberCheckKnockdown_BrokenParry(), saberCheckKnockdown_DuelLoss(), saberCheckKnockdown_Smashed(), saberCheckKnockdown_Thrown(), saberFirstThrown(), SaberGotHit(), saberKnockDown(), saberKnockOutOfHand(), saberReactivate(), SaberUpdateSelf(), ScorePlum(), scriptrunner_run(), Seeker_FindEnemy(), Seeker_Fire(), Seeker_FollowOwner(), Seeker_MaintainHeight(), SeekerDroneUpdate(), SelectCTFSpawnPoint(), SelectDuelSpawnPoint(), SelectInitialSpawnPoint(), SelectNearestDeathmatchSpawnPoint(), SelectRandomDeathmatchSpawnPoint(), SelectRandomFurthestSpawnPoint(), SelectRandomTeamSpawnPoint(), SelectSiegeSpawnPoint(), SelectSpawnPoint(), SelectSpectatorSpawnPoint(), SendPendingPredictableEvents(), Sentry_Fire(), Sentry_MaintainHeight(), sentry_use(), sentryExpire(), SentryTouch(), SetClientViewAngle(), SetGoal(), SetMoverState(), SetNPCGlobals(), SetTeam(), SetTeamNumbers(), SetTeamQuick(), SetupGameGhoul2Model(), shield_power_converter_use(), ShieldDie(), ShieldGoNotSolid(), ShieldGoSolid(), ShieldPain(), ShieldRemove(), ShieldThink(), ShieldTouch(), shipboundary_think(), shipboundary_touch(), ShotThroughGlass(), Siege_CountDefenders(), Siege_CountTeammates(), Siege_DefendFromAttackers(), Siege_TargetClosestObjective(), SiegeBeginRound(), SiegeBroadcast_OBJECTIVECOMPLETE(), SiegeBroadcast_ROUNDOVER(), SiegeCheckTimers(), SiegeDoTeamAssign(), siegeEndUse(), SiegeIconUse(), SiegeItemDie(), SiegeItemPain(), SiegeItemRemoveOwner(), SiegeItemThink(), SiegeItemTouch(), SiegeItemUse(), SiegePointUse(), SiegeRespawn(), SiegeRoundComplete(), siegeTriggerUse(), Sniper_ClearTimers(), Sniper_EvaluateShot(), SolidifyOwner(), SP_CreateRain(), SP_CreateSnow(), SP_CreateSpaceDust(), SP_emplaced_gun(), SP_func_bobbing(), SP_func_breakable(), SP_func_button(), SP_func_door(), SP_func_glass(), SP_func_pendulum(), SP_func_plat(), SP_func_rotating(), SP_func_static(), SP_func_timer(), SP_func_train(), SP_func_usable(), SP_func_wall(), SP_fx_runner(), SP_gametype_item(), SP_info_camp(), SP_info_jedimaster_start(), SP_info_notnull(), SP_info_null(), SP_info_player_deathmatch(), SP_info_player_duel(), SP_info_player_duel1(), SP_info_player_duel2(), SP_info_player_intermission(), SP_info_player_intermission_blue(), SP_info_player_intermission_red(), SP_info_player_siegeteam1(), SP_info_player_siegeteam2(), SP_info_player_start(), SP_info_player_start_blue(), SP_info_player_start_red(), SP_info_siege_decomplete(), SP_info_siege_objective(), SP_info_siege_radaricon(), SP_item_botroam(), SP_light(), SP_misc_ammo_floor_unit(), SP_misc_bsp(), SP_misc_faller(), SP_misc_G2model(), SP_misc_holocron(), SP_misc_maglock(), SP_misc_model(), SP_misc_model_ammo_power_converter(), SP_misc_model_health_power_converter(), SP_misc_model_shield_power_converter(), SP_misc_model_static(), SP_misc_portal_camera(), SP_misc_portal_surface(), SP_misc_shield_floor_unit(), SP_misc_siege_item(), SP_misc_skyportal(), SP_misc_skyportal_orient(), SP_misc_teleporter_dest(), SP_misc_turret(), SP_misc_turretG2(), SP_misc_weapon_shooter(), SP_misc_weather_zone(), SP_NPC_Alora(), SP_NPC_Bartender(), SP_NPC_BespinCop(), SP_NPC_Cultist(), SP_NPC_Cultist_Commando(), SP_NPC_Cultist_Destroyer(), SP_NPC_Cultist_Saber(), SP_NPC_Cultist_Saber_Powers(), SP_NPC_Desann(), SP_NPC_Droid_ATST(), SP_NPC_Droid_Gonk(), SP_NPC_Droid_Interrogator(), SP_NPC_Droid_Mark1(), SP_NPC_Droid_Mark2(), SP_NPC_Droid_Mouse(), SP_NPC_Droid_Probe(), SP_NPC_Droid_Protocol(), SP_NPC_Droid_R2D2(), SP_NPC_Droid_R5D2(), SP_NPC_Droid_Remote(), SP_NPC_Droid_Seeker(), SP_NPC_Droid_Sentry(), SP_NPC_Galak(), SP_NPC_Gran(), SP_NPC_Imperial(), SP_NPC_ImpWorker(), SP_NPC_Jan(), SP_NPC_Jawa(), SP_NPC_Jedi(), SP_NPC_Kyle(), SP_NPC_Lando(), SP_NPC_Luke(), SP_NPC_MineMonster(), SP_NPC_MonMothma(), SP_NPC_Monster_Claw(), SP_NPC_Monster_Fish(), SP_NPC_Monster_Flier2(), SP_NPC_Monster_Glider(), SP_NPC_Monster_Howler(), SP_NPC_Monster_Lizard(), SP_NPC_Monster_Murjj(), SP_NPC_Monster_Rancor(), SP_NPC_Monster_Swamp(), SP_NPC_Monster_Wampa(), SP_NPC_MorganKatarn(), SP_NPC_Noghri(), SP_NPC_Prisoner(), SP_NPC_Rebel(), SP_NPC_Reborn(), SP_NPC_Reborn_New(), SP_NPC_Reelo(), SP_NPC_Rodian(), SP_NPC_ShadowTrooper(), SP_NPC_Snowtrooper(), SP_NPC_spawner(), SP_NPC_Stormtrooper(), SP_NPC_StormtrooperOfficer(), SP_NPC_SwampTrooper(), SP_NPC_Tavion(), SP_NPC_Tavion_New(), SP_NPC_Tie_Pilot(), SP_NPC_Trandoshan(), SP_NPC_Tusken(), SP_NPC_Ugnaught(), SP_NPC_Vehicle(), SP_NPC_Weequay(), SP_PAS(), SP_path_corner(), SP_point_combat(), SP_reference_tag(), SP_shooter_blaster(), SP_target_activate(), SP_target_counter(), SP_target_deactivate(), SP_target_delay(), SP_target_escapetrig(), SP_target_give(), SP_target_interest(), SP_target_kill(), SP_target_laser(), SP_target_level_change(), SP_target_location(), SP_target_play_music(), SP_target_position(), SP_target_print(), SP_target_push(), SP_target_random(), SP_target_relay(), SP_target_remove_powerups(), SP_target_score(), SP_target_screenshake(), SP_target_scriptrunner(), SP_target_siege_end(), SP_target_speaker(), SP_target_teleporter(), SP_team_CTF_blueplayer(), SP_team_CTF_bluespawn(), SP_team_CTF_redplayer(), SP_team_CTF_redspawn(), SP_terrain(), SP_trigger_always(), SP_trigger_asteroid_field(), SP_trigger_hurt(), SP_trigger_hyperspace(), SP_trigger_lightningstrike(), SP_trigger_multiple(), SP_trigger_once(), SP_trigger_push(), SP_trigger_shipboundary(), SP_trigger_space(), SP_trigger_teleport(), SP_waypoint(), SP_waypoint_navgoal(), SP_waypoint_navgoal_1(), SP_waypoint_navgoal_2(), SP_waypoint_navgoal_4(), SP_waypoint_navgoal_8(), SP_waypoint_small(), space_touch(), SpawnPlatTrigger(), SpecialItemThink(), SpectatorClientEndFrame(), SpectatorThink(), SpotWouldTelefrag(), SpotWouldTelefrag2(), ST_AggressionAdjust(), ST_ApproachEnemy(), ST_ClearTimers(), ST_Commander(), ST_HuntEnemy(), ST_MarkToCover(), ST_ResolveBlockedShot(), ST_StartFlee(), ST_TrackEnemy(), ST_TransferMoveGoal(), ST_TransferTimers(), StandardBotAI(), StandardSetBodyAnim(), StopFollowing(), Svcmd_EntityList_f(), target_activate_use(), target_counter_use(), target_deactivate_use(), target_kill_use(), target_laser_off(), target_laser_on(), target_laser_start(), target_laser_think(), target_laser_use(), target_level_change_use(), target_play_music_use(), target_random_use(), target_relay_use(), target_scriptrunner_use(), target_teleporter_use(), Team_CaptureFlagSound(), Team_CheckDroppedItem(), Team_CheckHurtCarrier(), Team_DroppedFlagThink(), Team_ForceGesture(), Team_FragBonuses(), Team_FreeEntity(), Team_GetLocation(), Team_GetLocationMsg(), Team_ResetFlag(), Team_ReturnFlagSound(), Team_TakeFlagSound(), Team_TouchEnemyFlag(), Team_TouchOurFlag(), TeamplayInfoMessage(), TeleportPlayer(), TeleportToWP(), thermalDetonatorExplode(), thermalThinkStandard(), Think_BeginMoving(), Think_MatchTeam(), Think_SetupTrainTargets(), Think_SpawnNewDoorTrigger(), Think_Strike(), Think_Target_Delay(), thrownSaberTouch(), ThrowSaberToAttacker(), TIMER_Clear2(), TIMER_Done(), TIMER_Done2(), TIMER_Exists(), TIMER_Get(), TIMER_Remove(), TIMER_Set(), TIMER_Start(), TossClientItems(), TossClientWeapon(), Touch_Button(), Touch_DoorTrigger(), Touch_Item(), Touch_Multi(), touch_NULL(), Touch_Plat(), Touch_PlatCenterTrigger(), touchLaserTrap(), trap_AdjustAreaPortalState(), trap_EntityContact(), trap_EntityContactCapsule(), trap_ICARUS_AssociateEnt(), trap_ICARUS_FreeEnt(), trap_ICARUS_InitEnt(), trap_ICARUS_RunScript(), trap_ICARUS_TaskIDComplete(), trap_ICARUS_TaskIDPending(), trap_ICARUS_TaskIDSet(), trap_ICARUS_ValidEnt(), trap_LinkEntity(), trap_LocateGameData(), trap_Nav_AddFailedNode(), trap_Nav_CheckFailedNodes(), trap_Nav_GetBestPathBetweenEnts(), trap_Nav_GetNearestNode(), trap_Nav_NodeFailed(), trap_SetBrushModel(), trap_UnlinkEntity(), TrapThink(), trigger_always_think(), trigger_cleared_fire(), trigger_push_touch(), trigger_teleporter_touch(), TryGrapple(), TryHeal(), TryUse(), TurboLaser_SetBoneAnim(), turret_base_spawn_top(), turret_base_think(), turret_base_use(), turret_die(), turret_head_think(), TurretBasePain(), turretG2_base_think(), turretG2_base_use(), turretG2_die(), turretG2_head_think(), turretG2_respawn(), turretG2_set_models(), TurretG2Pain(), TurretPain(), UnLockDoors(), Update(), UpdateClientRenderBolts(), UpdateClientRenderinfo(), UpdateGoal(), UpdateTournamentInfo(), Use_BinaryMover(), Use_BinaryMover_Go(), Use_Item(), Use_Multi(), Use_Shooter(), Use_Strike(), Use_Target_Delay(), Use_Target_Escapetrig(), Use_Target_Give(), Use_Target_Print(), Use_target_push(), Use_target_remove_powerups(), Use_Target_Score(), Use_Target_Screenshake(), Use_Target_Speaker(), use_wall(), UseSiegeTarget(), ValidateBoard(), ValidEnemy(), ValidUseTarget(), VEH_TryEject(), VEH_TurretAim(), VEH_TurretAnglesToEnemy(), VEH_TurretCheckFire(), VEH_TurretObeyPassengerControl(), VEH_TurretThink(), Vehicle_SetAnim(), W_TraceSetStart(), Wampa_CheckRoar(), Wampa_SetBolts(), Wampa_Slash(), waypoint_getRadius(), WP_AbsorbConversion(), WP_ActivateSaber(), WP_AddToClientBitflags(), WP_CalcVehMuzzle(), WP_DeactivateSaber(), WP_DisruptorAltFire(), WP_DoSpecificPower(), WP_DropDetPack(), WP_DropThermal(), WP_ExplosiveDie(), WP_FireBlasterMissile(), WP_FireEmplacedMissile(), WP_FireGenericBlasterMissile(), WP_FireMelee(), WP_FireStunBaton(), WP_FireThermalDetonator(), WP_FireTurboLaserMissile(), WP_FireTurretMissile(), WP_FireVehicleWeapon(), WP_flechette_alt_blow(), WP_ForcePowerAvailable(), WP_ForcePowerInUse(), WP_ForcePowerRegenerate(), WP_ForcePowerStart(), WP_ForcePowerStop(), WP_ForcePowersUpdate(), WP_ForcePowerUsable(), WP_GetVehicleCamPos(), WP_GetVelocityForForceJump(), WP_InitForcePowers(), WP_LobFire(), WP_PlaceLaserTrap(), WP_ResistForcePush(), WP_SaberAddG2Model(), WP_SaberApplyDamage(), WP_SaberBlock(), WP_SaberBlockNonRandom(), WP_SaberBounceSound(), WP_SaberCanBlock(), WP_SaberDoClash(), WP_SaberDoHit(), WP_SaberInitBladeData(), WP_SaberLength(), WP_SaberPositionUpdate(), WP_SaberRadiusDamage(), WP_SaberRemoveG2Model(), WP_SabersCheckLock(), WP_SabersIntersect(), WP_SaberStartMissileBlockCheck(), WP_SpawnInitForcePowers(), WP_TouchVehMissile(), WP_VehCheckTraceFromCamPos(), WP_VehLeadCrosshairVeh(), WP_VehWeapSetSolidToOwner(), and WPOrgVisible().

typedef struct reference_tag_s reference_tag_t
 

Referenced by FirstFreeRefTag(), ref_link(), TAG_Add(), TAG_Find(), TAG_GetAngles(), TAG_GetFlags(), TAG_GetOrigin(), TAG_GetOrigin2(), and TAG_GetRadius().

typedef struct renderInfo_s renderInfo_t
 

Referenced by NPC_ParseParms(), Rancor_SetBolts(), UpdateClientRenderBolts(), UpdateClientRenderinfo(), and Wampa_SetBolts().


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
HL_NONE 
HL_FOOT_RT 
HL_FOOT_LT 
HL_LEG_RT 
HL_LEG_LT 
HL_WAIST 
HL_BACK_RT 
HL_BACK_LT 
HL_BACK 
HL_CHEST_RT 
HL_CHEST_LT 
HL_CHEST 
HL_ARM_RT 
HL_ARM_LT 
HL_HAND_RT 
HL_HAND_LT 
HL_HEAD 
HL_GENERIC1 
HL_GENERIC2 
HL_GENERIC3 
HL_GENERIC4 
HL_GENERIC5 
HL_GENERIC6 
HL_MAX 

Definition at line 98 of file g_local.h.

00099 {
00100         HL_NONE = 0,
00101         HL_FOOT_RT,
00102         HL_FOOT_LT,
00103         HL_LEG_RT,
00104         HL_LEG_LT,
00105         HL_WAIST,
00106         HL_BACK_RT,
00107         HL_BACK_LT,
00108         HL_BACK,
00109         HL_CHEST_RT,
00110         HL_CHEST_LT,
00111         HL_CHEST,
00112         HL_ARM_RT,
00113         HL_ARM_LT,
00114         HL_HAND_RT,
00115         HL_HAND_LT,
00116         HL_HEAD,
00117         HL_GENERIC1,
00118         HL_GENERIC2,
00119         HL_GENERIC3,
00120         HL_GENERIC4,
00121         HL_GENERIC5,
00122         HL_GENERIC6,
00123         HL_MAX
00124 };

anonymous enum
 

Enumeration values:
CON_DISCONNECTED 
CON_CONNECTING 
CON_CONNECTED 

Definition at line 366 of file g_local.h.

00366              {
00367         CON_DISCONNECTED,
00368         CON_CONNECTING,
00369         CON_CONNECTED
00370 };

enum alertEventLevel_e
 

Enumeration values:
AEL_MINOR 
AEL_SUSPICIOUS 
AEL_DISCOVERED 
AEL_DANGER 
AEL_DANGER_GREAT 

Definition at line 777 of file g_local.h.

00778 {
00779         AEL_MINOR,                      //Enemy responds to the sound, but only by looking
00780         AEL_SUSPICIOUS,         //Enemy looks at the sound, and will also investigate it
00781         AEL_DISCOVERED,         //Enemy knows the player is around, and will actively hunt
00782         AEL_DANGER,                     //Enemy should try to find cover
00783         AEL_DANGER_GREAT,       //Enemy should run like hell!
00784 } alertEventLevel_e;

enum alertEventType_e
 

Enumeration values:
AET_SIGHT 
AET_SOUND 

Definition at line 771 of file g_local.h.

00772 {
00773         AET_SIGHT,
00774         AET_SOUND,
00775 } alertEventType_e;

enum moverState_t
 

Enumeration values:
MOVER_POS1 
MOVER_POS2 
MOVER_1TO2 
MOVER_2TO1 

Definition at line 89 of file g_local.h.

Referenced by MatchTeam(), Q3_Lerp2Origin(), and Q3_Lerp2Pos().

00089              {
00090         MOVER_POS1,
00091         MOVER_POS2,
00092         MOVER_1TO2,
00093         MOVER_2TO1
00094 } moverState_t;

enum playerTeamStateState_t
 

Enumeration values:
TEAM_BEGIN 
TEAM_ACTIVE 

Definition at line 380 of file g_local.h.

00380              {
00381         TEAM_BEGIN,             // Beginning a team game, spawn at base
00382         TEAM_ACTIVE             // Now actively playing
00383 } playerTeamStateState_t;

enum spectatorState_t
 

Enumeration values:
SPECTATOR_NOT 
SPECTATOR_FREE 
SPECTATOR_FOLLOW 
SPECTATOR_SCOREBOARD 

Definition at line 373 of file g_local.h.

Referenced by G_ReadSessionData(), and SetTeam().


Function Documentation

void Add_Ammo gentity_t ent,
int  weapon,
int  count
 

Definition at line 2118 of file g_items.c.

References playerState_s::ammo, ammoData, gentity_s::client, gentity_t, ammoData_s::max, and gclient_s::ps.

Referenced by Pickup_Ammo(), Pickup_Weapon(), and WeaponThink().

02119 {
02120         if ( ent->client->ps.ammo[weapon] < ammoData[weapon].max )
02121         {
02122                 ent->client->ps.ammo[weapon] += count;
02123                 if ( ent->client->ps.ammo[weapon] > ammoData[weapon].max )
02124                 {
02125                         ent->client->ps.ammo[weapon] = ammoData[weapon].max;
02126                 }
02127         }
02128 }

void AddRemap const char *  oldShader,
const char *  newShader,
float  timeOffset
 

Definition at line 20 of file g_utils.c.

References MAX_SHADER_REMAPS, Q_stricmp(), remapCount, remappedShaders, strcpy(), and shaderRemap_t::timeOffset.

Referenced by G_RemapTeamShaders(), and G_UseTargets2().

00020                                                                               {
00021         int i;
00022 
00023         for (i = 0; i < remapCount; i++) {
00024                 if (Q_stricmp(oldShader, remappedShaders[i].oldShader) == 0) {
00025                         // found it, just update this one
00026                         strcpy(remappedShaders[i].newShader,newShader);
00027                         remappedShaders[i].timeOffset = timeOffset;
00028                         return;
00029                 }
00030         }
00031         if (remapCount < MAX_SHADER_REMAPS) {
00032                 strcpy(remappedShaders[remapCount].newShader,newShader);
00033                 strcpy(remappedShaders[remapCount].oldShader,oldShader);
00034                 remappedShaders[remapCount].timeOffset = timeOffset;
00035                 remapCount++;
00036         }
00037 }

void AddScore gentity_t ent,
vec3_t  origin,
int  score
 

Definition at line 436 of file g_combat.c.

References CalculateRanks(), gentity_s::client, g_dontPenalizeTeam, g_gametype, gentity_t, GT_TEAM, vmCvar_t::integer, level, PERS_SCORE, PERS_TEAM, playerState_s::persistant, gclient_s::ps, level_locals_t::teamScores, vec3_t, and level_locals_t::warmupTime.

Referenced by AddSiegeWinningTeamPoints(), BroadcastObjectiveCompletion(), player_die(), Team_FragBonuses(), Team_TouchEnemyFlag(), Team_TouchOurFlag(), Use_Target_Escapetrig(), and Use_Target_Score().

00437 {
00438         /*
00439         if (g_gametype.integer == GT_SIEGE)
00440         { //no scoring in this gametype at all.
00441                 return;
00442         }
00443         */
00444 
00445         if ( !ent->client ) {
00446                 return;
00447         }
00448         // no scoring during pre-match warmup
00449         if ( level.warmupTime ) {
00450                 return;
00451         }
00452         // show score plum
00453         //ScorePlum(ent, origin, score);
00454         //
00455         ent->client->ps.persistant[PERS_SCORE] += score;
00456         if ( g_gametype.integer == GT_TEAM && !g_dontPenalizeTeam )
00457                 level.teamScores[ ent->client->ps.persistant[PERS_TEAM] ] += score;
00458         CalculateRanks();
00459 }

void AddSightEvent gentity_t owner,
vec3_t  position,
float  radius,
alertEventLevel_e  alertLevel,
float  addLight
 

Definition at line 623 of file NPC_senses.c.

References AEL_DANGER, AET_SIGHT, level_locals_t::alertEvents, level_locals_t::curAlertID, gentity_t, level, MAX_ALERT_EVENTS, NULL, level_locals_t::numAlertEvents, RemoveOldestAlert(), level_locals_t::time, vec3_t, and VectorCopy.

Referenced by CorpsePhysics(), ForceTelepathyCheckDirectNPCTarget(), and NPC_BSRancor_Default().

00624 {
00625         //FIXME: Handle this in another manner?
00626         if ( level.numAlertEvents >= MAX_ALERT_EVENTS )
00627         {
00628                 if ( !RemoveOldestAlert() )
00629                 {//how could that fail?
00630                         return;
00631                 }
00632         }
00633 
00634         if ( owner == NULL && alertLevel < AEL_DANGER ) //allows un-owned danger alerts
00635                 return;
00636 
00637         //FIXME: if owner is not a player or player ally, and there are no player allies present,
00638         //                      perhaps we don't need to store the alert... unless we want the player to
00639         //                      react to enemy alert events in some way?
00640 
00641         VectorCopy( position, level.alertEvents[ level.numAlertEvents ].position );
00642 
00643         level.alertEvents[ level.numAlertEvents ].radius        = radius;
00644         level.alertEvents[ level.numAlertEvents ].level         = alertLevel;
00645         level.alertEvents[ level.numAlertEvents ].type          = AET_SIGHT;
00646         level.alertEvents[ level.numAlertEvents ].owner         = owner;                
00647         level.alertEvents[ level.numAlertEvents ].addLight      = addLight;     //will get added to actual light at that point when it's checked
00648         level.alertEvents[ level.numAlertEvents ].ID            = level.curAlertID++;
00649         level.alertEvents[ level.numAlertEvents ].timestamp     = level.time;
00650 
00651         level.numAlertEvents++;
00652 }

void AddSoundEvent gentity_t owner,
vec3_t  position,
float  radius,
alertEventLevel_e  alertLevel,
qboolean  needLOS
 

Definition at line 579 of file NPC_senses.c.

References AEL_DANGER, AET_SOUND, level_locals_t::alertEvents, level_locals_t::curAlertID, gentity_t, level, MAX_ALERT_EVENTS, NULL, level_locals_t::numAlertEvents, RemoveOldestAlert(), level_locals_t::time, vec3_t, and VectorCopy.

Referenced by ForceTelepathyCheckDirectNPCTarget(), NPC_BSRancor_Default(), and Rancor_Smash().

00580 {
00581         //FIXME: Handle this in another manner?
00582         if ( level.numAlertEvents >= MAX_ALERT_EVENTS )
00583         {
00584                 if ( !RemoveOldestAlert() )
00585                 {//how could that fail?
00586                         return;
00587                 }
00588         }
00589         
00590         if ( owner == NULL && alertLevel < AEL_DANGER ) //allows un-owned danger alerts
00591                 return;
00592 
00593         //FIXME: if owner is not a player or player ally, and there are no player allies present,
00594         //                      perhaps we don't need to store the alert... unless we want the player to
00595         //                      react to enemy alert events in some way?
00596 
00597         VectorCopy( position, level.alertEvents[ level.numAlertEvents ].position );
00598 
00599         level.alertEvents[ level.numAlertEvents ].radius        = radius;
00600         level.alertEvents[ level.numAlertEvents ].level         = alertLevel;
00601         level.alertEvents[ level.numAlertEvents ].type          = AET_SOUND;
00602         level.alertEvents[ level.numAlertEvents ].owner         = owner;
00603         if ( needLOS )
00604         {//a very low-level sound, when check this sound event, check for LOS
00605                 level.alertEvents[ level.numAlertEvents ].addLight      = 1;    //will force an LOS trace on this sound
00606         }
00607         else
00608         {
00609                 level.alertEvents[ level.numAlertEvents ].addLight      = 0;    //will force an LOS trace on this sound
00610         }
00611         level.alertEvents[ level.numAlertEvents ].ID            = level.curAlertID++;
00612         level.alertEvents[ level.numAlertEvents ].timestamp     = level.time;
00613 
00614         level.numAlertEvents++;
00615 }

int ArmorIndex gentity_t ent  ) 
 

void B_CleanupAlloc void   ) 
 

Definition at line 142 of file ai_util.c.

References NULL.

Referenced by G_ShutdownGame().

00143 {
00144 #ifdef BOT_ZMALLOC
00145         int i = 0;
00146 
00147         while (i < MAX_BALLOC)
00148         {
00149                 if (BAllocList[i])
00150                 {
00151                         trap_BotFreeMemoryGame(BAllocList[i]);
00152                         BAllocList[i] = NULL;
00153                 }
00154 
00155                 i++;
00156         }
00157 #endif
00158 }

void B_InitAlloc void   ) 
 

Definition at line 133 of file ai_util.c.

References gWPArray, and memset().

Referenced by G_InitGame().

00134 {
00135 #ifdef BOT_ZMALLOC
00136         memset(BAllocList, 0, sizeof(BAllocList));
00137 #endif
00138 
00139         memset(gWPArray, 0, sizeof(gWPArray));
00140 }

void BeginIntermission void   ) 
 

Definition at line 2019 of file g_main.c.

References AdjustTournamentScores(), client, CS_CLIENT_DUELWINNER, DuelLimitHit(), FindIntermissionPoint(), g_entities, g_gametype, gDuelExit, gentity_t, GT_DUEL, GT_POWERDUEL, vmCvar_t::integer, level_locals_t::intermissiontime, level, level_locals_t::maxclients, MoveClientToIntermission(), qfalse, qtrue, respawn(), SendScoreboardMessageToAllClients(), gclient_s::sess, clientSession_t::sessionTeam, TEAM_SPECTATOR, level_locals_t::time, and trap_SetConfigstring().

Referenced by CheckExitRules(), and Cmd_LevelShot_f().

02019                                {
02020         int                     i;
02021         gentity_t       *client;
02022 
02023         if ( level.intermissiontime ) {
02024                 return;         // already active
02025         }
02026 
02027         // if in tournement mode, change the wins / losses
02028         if ( g_gametype.integer == GT_DUEL || g_gametype.integer == GT_POWERDUEL ) {
02029                 trap_SetConfigstring ( CS_CLIENT_DUELWINNER, "-1" );
02030 
02031                 if (g_gametype.integer != GT_POWERDUEL)
02032                 {
02033                         AdjustTournamentScores();
02034                 }
02035                 if (DuelLimitHit())
02036                 {
02037                         gDuelExit = qtrue;
02038                 }
02039                 else
02040                 {
02041                         gDuelExit = qfalse;
02042                 }
02043         }
02044 
02045         level.intermissiontime = level.time;
02046         FindIntermissionPoint();
02047 
02048         /*
02049         if (g_singlePlayer.integer) {
02050                 trap_Cvar_Set("ui_singlePlayerActive", "0");
02051                 UpdateTournamentInfo();
02052         }
02053         */
02054         //what the? Well, I don't want this to happen.
02055 
02056         // move all clients to the intermission point
02057         for (i=0 ; i< level.maxclients ; i++) {
02058                 client = g_entities + i;
02059                 if (!client->inuse)
02060                         continue;
02061                 // respawn if dead
02062                 if (client->health <= 0) {
02063                         if (g_gametype.integer != GT_POWERDUEL ||
02064                                 !client->client ||
02065                                 client->client->sess.sessionTeam != TEAM_SPECTATOR)
02066                         { //don't respawn spectators in powerduel or it will mess the line order all up
02067                                 respawn(client);
02068                         }
02069                 }
02070                 MoveClientToIntermission( client );
02071         }
02072 
02073         // send the current scoring to all clients
02074         SendScoreboardMessageToAllClients();
02075 
02076 }

void BlowDetpacks gentity_t ent  ) 
 

Definition at line 2849 of file g_weapon.c.

References CHAN_BODY, gentity_s::client, entityShared_t::currentOrigin, DetPackBlow(), FOFS, G_Find(), G_Sound(), G_SoundIndex(), gentity_t, playerState_s::hasDetPackPlanted, level, gentity_s::nextthink, NULL, entityState_s::origin, gentity_s::parent, gclient_s::ps, qfalse, gentity_s::r, random, gentity_s::s, gentity_s::think, level_locals_t::time, and VectorCopy.

Referenced by player_die(), and WP_DropDetPack().

02850 {
02851         gentity_t *found = NULL;
02852 
02853         if ( ent->client->ps.hasDetPackPlanted )
02854         {
02855                 while ( (found = G_Find( found, FOFS(classname), "detpack") ) != NULL )
02856                 {//loop through all ents and blow the crap out of them!
02857                         if ( found->parent == ent )
02858                         {
02859                                 VectorCopy( found->r.currentOrigin, found->s.origin );
02860                                 found->think = DetPackBlow;
02861                                 found->nextthink = level.time + 100 + random() * 200;
02862                                 G_Sound( found, CHAN_BODY, G_SoundIndex("sound/weapons/detpack/warning.wav") );
02863                         }
02864                 }
02865                 ent->client->ps.hasDetPackPlanted = qfalse;
02866         }
02867 }

void body_die gentity_t self,
gentity_t inflictor,
gentity_t attacker,
int  damage,
int  meansOfDeath
 

Definition at line 685 of file g_combat.c.

References BodyRid(), gentity_s::client, entityShared_t::currentOrigin, EF_DISINTEGRATION, entityState_s::eFlags, playerState_s::eFlags, ET_NPC, entityState_s::eType, G_FreeEntity(), gentity_t, GIB_HEALTH, gentity_s::health, playerState_s::lastHitLoc, level, MOD_CRUSH, MOD_FALLING, MOD_LAVA, MOD_SLIME, MOD_SUICIDE, MOD_TARGET_LASER, MOD_TELEFRAG, MOD_TRIGGER_HURT, MOD_UNKNOWN, MOD_WATER, gentity_s::nextthink, playerState_s::origin, entityState_s::origin2, gclient_s::ps, qboolean, qfalse, qtrue, gentity_s::r, gclient_s::respawnTime, gentity_s::s, gentity_s::think, level_locals_t::time, playerState_s::torsoTimer, and VectorCopy.

Referenced by player_die().

00685                                                                                                           {
00686         // NOTENOTE No gibbing right now, this is star wars.
00687         qboolean doDisint = qfalse;
00688 
00689         if (self->s.eType == ET_NPC)
00690         { //well, just rem it then, so long as it's done with its death anim and it's not a standard weapon.
00691                 if ( self->client && self->client->ps.torsoTimer <= 0 &&
00692                          (meansOfDeath == MOD_UNKNOWN ||
00693                           meansOfDeath == MOD_WATER ||
00694                           meansOfDeath == MOD_SLIME ||
00695                           meansOfDeath == MOD_LAVA ||
00696                           meansOfDeath == MOD_CRUSH ||
00697                           meansOfDeath == MOD_TELEFRAG ||
00698                           meansOfDeath == MOD_FALLING ||
00699                           meansOfDeath == MOD_SUICIDE ||
00700                           meansOfDeath == MOD_TARGET_LASER ||
00701                           meansOfDeath == MOD_TRIGGER_HURT) )
00702                 {
00703                         self->think = G_FreeEntity;
00704                         self->nextthink = level.time;
00705                 }
00706                 return;
00707         }
00708 
00709         if (self->health < (GIB_HEALTH+1))
00710         {
00711                 self->health = GIB_HEALTH+1;
00712 
00713                 if (self->client && (level.time - self->client->respawnTime) < 2000)
00714                 {
00715                         doDisint = qfalse;
00716                 }
00717                 else
00718                 {
00719                         doDisint = qtrue;
00720                 }
00721         }
00722 
00723         if (self->client && (self->client->ps.eFlags & EF_DISINTEGRATION))
00724         {
00725                 return;
00726         }
00727         else if (self->s.eFlags & EF_DISINTEGRATION)
00728         {
00729                 return;
00730         }
00731 
00732         if (doDisint)
00733         {
00734                 if (self->client)
00735                 {
00736                         self->client->ps.eFlags |= EF_DISINTEGRATION;
00737                         VectorCopy(self->client->ps.origin, self->client->ps.lastHitLoc);
00738                 }
00739                 else
00740                 {
00741                         self->s.eFlags |= EF_DISINTEGRATION;
00742                         VectorCopy(self->r.currentOrigin, self->s.origin2);
00743 
00744                         //since it's the corpse entity, tell it to "remove" itself
00745                         self->think = BodyRid;
00746                         self->nextthink = level.time + 1000;
00747                 }
00748                 return;
00749         }
00750 }

int BotAILoadMap int  restart  ) 
 

Definition at line 966 of file ai_main.c.

References BotResetState(), botstates, bot_state_s::inuse, MAX_CLIENTS, qtrue, and bot_state_s::setupcount.

Referenced by G_InitGame().

00966                                 {
00967         int                     i;
00968 
00969         for (i = 0; i < MAX_CLIENTS; i++) {
00970                 if (botstates[i] && botstates[i]->inuse) {
00971                         BotResetState( botstates[i] );
00972                         botstates[i]->setupcount = 4;
00973                 }
00974         }
00975 
00976         return qtrue;
00977 }

int BotAISetup int  restart  ) 
 

Definition at line 7575 of file ai_main.c.

References bot_attachments, bot_camp, bot_forcepowers, bot_forgimmick, bot_getinthecarrr, bot_honorableduelacceptance, bot_pvstype, bot_wp_clearweight, bot_wp_distconnect, bot_wp_edit, bot_wp_info, bot_wp_visconnect, botstates, CVAR_CHEAT, memset(), qfalse, qtrue, trap_BotLibSetup(), trap_Cvar_Register(), and trap_Cvar_Update().

Referenced by G_InitGame().

07575                               {
07576         //rww - new bot cvars..
07577         trap_Cvar_Register(&bot_forcepowers, "bot_forcepowers", "1", CVAR_CHEAT);
07578         trap_Cvar_Register(&bot_forgimmick, "bot_forgimmick", "0", CVAR_CHEAT);
07579         trap_Cvar_Register(&bot_honorableduelacceptance, "bot_honorableduelacceptance", "0", CVAR_CHEAT);
07580         trap_Cvar_Register(&bot_pvstype, "bot_pvstype", "1", CVAR_CHEAT);
07581 #ifndef FINAL_BUILD
07582         trap_Cvar_Register(&bot_getinthecarrr, "bot_getinthecarrr", "0", 0);
07583 #endif
07584 
07585 #ifdef _DEBUG
07586         trap_Cvar_Register(&bot_nogoals, "bot_nogoals", "0", CVAR_CHEAT);
07587         trap_Cvar_Register(&bot_debugmessages, "bot_debugmessages", "0", CVAR_CHEAT);
07588 #endif
07589 
07590         trap_Cvar_Register(&bot_attachments, "bot_attachments", "1", 0);
07591         trap_Cvar_Register(&bot_camp, "bot_camp", "1", 0);
07592 
07593         trap_Cvar_Register(&bot_wp_info, "bot_wp_info", "1", 0);
07594         trap_Cvar_Register(&bot_wp_edit, "bot_wp_edit", "0", CVAR_CHEAT);
07595         trap_Cvar_Register(&bot_wp_clearweight, "bot_wp_clearweight", "1", 0);
07596         trap_Cvar_Register(&bot_wp_distconnect, "bot_wp_distconnect", "1", 0);
07597         trap_Cvar_Register(&bot_wp_visconnect, "bot_wp_visconnect", "1", 0);
07598 
07599         trap_Cvar_Update(&bot_forcepowers);
07600         //end rww
07601 
07602         //if the game is restarted for a tournament
07603         if (restart) {
07604                 return qtrue;
07605         }
07606 
07607         //initialize the bot states
07608         memset( botstates, 0, sizeof(botstates) );
07609 
07610         if (!trap_BotLibSetup())
07611         {
07612                 return qfalse; //wts?!
07613         }
07614 
07615         return qtrue;
07616 }

int BotAISetupClient int  client,
struct bot_settings_s settings,
qboolean  restart
 

Definition at line 819 of file ai_main.c.

References B_Alloc(), bot_settings_t, bot_state_t, BotAI_Print(), BotDoChat(), BotScheduleBotThink(), botstates, BotUtilizePersonality(), bot_state_s::botWeaponWeights, bot_state_s::client, client, bot_state_s::entergame_time, bot_state_s::entitynum, FloatTime, g_gametype, bot_state_s::gs, GT_DUEL, GT_POWERDUEL, vmCvar_t::integer, bot_state_s::inuse, memcpy(), memset(), bot_state_s::ms, numbots, PlayersInGame(), PRT_FATAL, qfalse, qtrue, bot_state_s::settings, bot_state_s::setupcount, trap_BotAllocGoalState(), trap_BotAllocMoveState(), trap_BotAllocWeaponState(), WP_BLASTER, WP_BOWCASTER, WP_BRYAR_PISTOL, WP_DEMP2, WP_DET_PACK, WP_DISRUPTOR, WP_FLECHETTE, WP_MELEE, WP_NONE, WP_REPEATER, WP_ROCKET_LAUNCHER, WP_SABER, WP_STUN_BATON, WP_THERMAL, WP_TRIP_MINE, and bot_state_s::ws.

Referenced by G_BotConnect().

00819                                                                                     {
00820         bot_state_t *bs;
00821 
00822         if (!botstates[client]) botstates[client] = (bot_state_t *) B_Alloc(sizeof(bot_state_t)); //G_Alloc(sizeof(bot_state_t));
00823                                                                                                                                                           //rww - G_Alloc bad! B_Alloc good.
00824 
00825         memset(botstates[client], 0, sizeof(bot_state_t));
00826 
00827         bs = botstates[client];
00828 
00829         if (bs && bs->inuse) {
00830                 BotAI_Print(PRT_FATAL, "BotAISetupClient: client %d already setup\n", client);
00831                 return qfalse;
00832         }
00833 
00834         memcpy(&bs->settings, settings, sizeof(bot_settings_t));
00835 
00836         bs->client = client; //need to know the client number before doing personality stuff
00837 
00838         //initialize weapon weight defaults..
00839         bs->botWeaponWeights[WP_NONE] = 0;
00840         bs->botWeaponWeights[WP_STUN_BATON] = 1;
00841         bs->botWeaponWeights[WP_SABER] = 10;
00842         bs->botWeaponWeights[WP_BRYAR_PISTOL] = 11;
00843         bs->botWeaponWeights[WP_BLASTER] = 12;
00844         bs->botWeaponWeights[WP_DISRUPTOR] = 13;
00845         bs->botWeaponWeights[WP_BOWCASTER] = 14;
00846         bs->botWeaponWeights[WP_REPEATER] = 15;
00847         bs->botWeaponWeights[WP_DEMP2] = 16;
00848         bs->botWeaponWeights[WP_FLECHETTE] = 17;
00849         bs->botWeaponWeights[WP_ROCKET_LAUNCHER] = 18;
00850         bs->botWeaponWeights[WP_THERMAL] = 14;
00851         bs->botWeaponWeights[WP_TRIP_MINE] = 0;
00852         bs->botWeaponWeights[WP_DET_PACK] = 0;
00853         bs->botWeaponWeights[WP_MELEE] = 1;
00854 
00855         BotUtilizePersonality(bs);
00856 
00857         if (g_gametype.integer == GT_DUEL || g_gametype.integer == GT_POWERDUEL)
00858         {
00859                 bs->botWeaponWeights[WP_SABER] = 13;
00860         }
00861 
00862         //allocate a goal state
00863         bs->gs = trap_BotAllocGoalState(client);
00864 
00865         //allocate a weapon state
00866         bs->ws = trap_BotAllocWeaponState();
00867 
00868         bs->inuse = qtrue;
00869         bs->entitynum = client;
00870         bs->setupcount = 4;
00871         bs->entergame_time = FloatTime();
00872         bs->ms = trap_BotAllocMoveState();
00873         numbots++;
00874 
00875         //NOTE: reschedule the bot thinking
00876         BotScheduleBotThink();
00877 
00878         if (PlayersInGame())
00879         { //don't talk to yourself
00880                 BotDoChat(bs, "GeneralGreetings", 0);
00881         }
00882 
00883         return qtrue;
00884 }

int BotAIShutdown int  restart  ) 
 

Definition at line 7623 of file ai_main.c.

References BotAIShutdownClient(), botstates, client, bot_state_s::inuse, MAX_CLIENTS, qtrue, and trap_BotLibShutdown().

Referenced by G_ShutdownGame().

07623                                  {
07624 
07625         int i;
07626 
07627         //if the game is restarted for a tournament
07628         if ( restart ) {
07629                 //shutdown all the bots in the botlib
07630                 for (i = 0; i < MAX_CLIENTS; i++) {
07631                         if (botstates[i] && botstates[i]->inuse) {
07632                                 BotAIShutdownClient(botstates[i]->client, restart);
07633                         }
07634                 }
07635                 //don't shutdown the bot library
07636         }
07637         else {
07638                 trap_BotLibShutdown();
07639         }
07640         return qtrue;
07641 }

int BotAIShutdownClient int  client,
qboolean  restart
 

Definition at line 891 of file ai_main.c.

References bot_state_t, botstates, client, bot_state_s::gs, bot_state_s::inuse, memset(), bot_state_s::ms, numbots, qfalse, qtrue, trap_BotFreeGoalState(), trap_BotFreeMoveState(), trap_BotFreeWeaponState(), and bot_state_s::ws.

Referenced by BotAIShutdown(), and ClientDisconnect().

00891                                                       {
00892         bot_state_t *bs;
00893 
00894         bs = botstates[client];
00895         if (!bs || !bs->inuse) {
00896                 //BotAI_Print(PRT_ERROR, "BotAIShutdownClient: client %d already shutdown\n", client);
00897                 return qfalse;
00898         }
00899 
00900         trap_BotFreeMoveState(bs->ms);
00901         //free the goal state`                  
00902         trap_BotFreeGoalState(bs->gs);
00903         //free the weapon weights
00904         trap_BotFreeWeaponState(bs->ws);
00905         //
00906         //clear the bot state
00907         memset(bs, 0, sizeof(bot_state_t));
00908         //set the inuse flag to qfalse
00909         bs->inuse = qfalse;
00910         //there's one bot less
00911         numbots--;
00912         //everything went ok
00913         return qtrue;
00914 }

int BotAIStartFrame int  time  ) 
 

Definition at line 7492 of file ai_main.c.

References bot_attachments, bot_camp, bot_forgimmick, bot_getinthecarrr, bot_honorableduelacceptance, bot_pvstype, BOT_THINK_TIME, bot_wp_info, BotAI(), BotScheduleBotThink(), botstates, bot_state_s::botthink_residual, BotUpdateInput(), BotWaypointRender(), client, gentity_s::client, CON_CONNECTED, clientPersistant_t::connected, G_CheckBotSpawn(), g_entities, gBotEdit, gUpdateVars, bot_state_s::inuse, level, MAX_CLIENTS, gclient_s::pers, qtrue, level_locals_t::time, trap_BotUserCommand(), trap_Cvar_Update(), and UpdateEventTracker().

Referenced by vmMain().

07492                               {
07493         int i;
07494         int elapsed_time, thinktime;
07495         static int local_time;
07496         static int botlib_residual;
07497         static int lastbotthink_time;
07498 
07499         if (gUpdateVars < level.time)
07500         {
07501                 trap_Cvar_Update(&bot_pvstype);
07502                 trap_Cvar_Update(&bot_camp);
07503                 trap_Cvar_Update(&bot_attachments);
07504                 trap_Cvar_Update(&bot_forgimmick);
07505                 trap_Cvar_Update(&bot_honorableduelacceptance);
07506 #ifndef FINAL_BUILD
07507                 trap_Cvar_Update(&bot_getinthecarrr);
07508 #endif
07509                 gUpdateVars = level.time + 1000;
07510         }
07511 
07512         G_CheckBotSpawn();
07513 
07514         //rww - addl bot frame functions
07515         if (gBotEdit)
07516         {
07517                 trap_Cvar_Update(&bot_wp_info);
07518                 BotWaypointRender();
07519         }
07520 
07521         UpdateEventTracker();
07522         //end rww
07523 
07524         //cap the bot think time
07525         //if the bot think time changed we should reschedule the bots
07526         if (BOT_THINK_TIME != lastbotthink_time) {
07527                 lastbotthink_time = BOT_THINK_TIME;
07528                 BotScheduleBotThink();
07529         }
07530 
07531         elapsed_time = time - local_time;
07532         local_time = time;
07533 
07534         if (elapsed_time > BOT_THINK_TIME) thinktime = elapsed_time;
07535         else thinktime = BOT_THINK_TIME;
07536 
07537         // execute scheduled bot AI
07538         for( i = 0; i < MAX_CLIENTS; i++ ) {
07539                 if( !botstates[i] || !botstates[i]->inuse ) {
07540                         continue;
07541                 }
07542                 //
07543                 botstates[i]->botthink_residual += elapsed_time;
07544                 //
07545                 if ( botstates[i]->botthink_residual >= thinktime ) {
07546                         botstates[i]->botthink_residual -= thinktime;
07547 
07548                         if (g_entities[i].client->pers.connected == CON_CONNECTED) {
07549                                 BotAI(i, (float) thinktime / 1000);
07550                         }
07551                 }
07552         }
07553 
07554         // execute bot user commands every frame
07555         for( i = 0; i < MAX_CLIENTS; i++ ) {
07556                 if( !botstates[i] || !botstates[i]->inuse ) {
07557                         continue;
07558                 }
07559                 if( g_entities[i].client->pers.connected != CON_CONNECTED ) {
07560                         continue;
07561                 }
07562 
07563                 BotUpdateInput(botstates[i], time, elapsed_time);
07564                 trap_BotUserCommand(botstates[i]->client, &botstates[i]->lastucmd);
07565         }
07566 
07567         return qtrue;
07568 }

void BotInterbreedEndMatch void   ) 
 

void BotOrder gentity_t ent,
int  clientnum,
int  ordernum
 

Definition at line 184 of file ai_main.c.

References BotDoChat(), BotReportStatus(), botstates, BotStraightTPOrderCheck(), bot_state_s::chatAltObject, bot_state_s::chatObject, bot_state_s::chatTeam, gentity_s::client, CTFSTATE_MAXCTFSTATES, CTFSTATE_NONE, g_entities, g_gametype, gentity_t, GT_CTF, GT_CTY, GT_SIEGE, GT_TEAM, vmCvar_t::integer, MAX_CLIENTS, NULL, OnSameTeam(), gclient_s::sess, SIEGESTATE_MAXSIEGESTATES, SIEGESTATE_NONE, bot_state_s::state_Forced, clientSession_t::teamLeader, TEAMPLAYSTATE_MAXTPSTATES, and TEAMPLAYSTATE_NONE.

00185 {
00186         int stateMin = 0;
00187         int stateMax = 0;
00188         int i = 0;
00189 
00190         if (!ent || !ent->client || !ent->client->sess.teamLeader)
00191         {
00192                 return;
00193         }
00194 
00195         if (clientnum != -1 && !botstates[clientnum])
00196         {
00197                 return;
00198         }
00199 
00200         if (clientnum != -1 && !OnSameTeam(ent, &g_entities[clientnum]))
00201         {
00202                 return;
00203         }
00204 
00205         if (g_gametype.integer != GT_CTF && g_gametype.integer != GT_CTY && g_gametype.integer != GT_SIEGE &&
00206                 g_gametype.integer != GT_TEAM)
00207         {
00208                 return;
00209         }
00210 
00211         if (g_gametype.integer == GT_CTF || g_gametype.integer == GT_CTY)
00212         {
00213                 stateMin = CTFSTATE_NONE;
00214                 stateMax = CTFSTATE_MAXCTFSTATES;
00215         }
00216         else if (g_gametype.integer == GT_SIEGE)
00217         {
00218                 stateMin = SIEGESTATE_NONE;
00219                 stateMax = SIEGESTATE_MAXSIEGESTATES;
00220         }
00221         else if (g_gametype.integer == GT_TEAM)
00222         {
00223                 stateMin = TEAMPLAYSTATE_NONE;
00224                 stateMax = TEAMPLAYSTATE_MAXTPSTATES;
00225         }
00226 
00227         if ((ordernum < stateMin && ordernum != -1) || ordernum >= stateMax)
00228         {
00229                 return;
00230         }
00231 
00232         if (clientnum != -1)
00233         {
00234                 if (ordernum == -1)
00235                 {
00236                         BotReportStatus(botstates[clientnum]);
00237                 }
00238                 else
00239                 {
00240                         BotStraightTPOrderCheck(ent, ordernum, botstates[clientnum]);
00241                         botstates[clientnum]->state_Forced = ordernum;
00242                         botstates[clientnum]->chatObject = ent;
00243                         botstates[clientnum]->chatAltObject = NULL;
00244                         if (BotDoChat(botstates[clientnum], "OrderAccepted", 1))
00245                         {
00246                                 botstates[clientnum]->chatTeam = 1;
00247                         }
00248                 }
00249         }
00250         else
00251         {
00252                 while (i < MAX_CLIENTS)
00253                 {
00254                         if (botstates[i] && OnSameTeam(ent, &g_entities[i]))
00255                         {
00256                                 if (ordernum == -1)
00257                                 {
00258                                         BotReportStatus(botstates[i]);
00259                                 }
00260                                 else
00261                                 {
00262                                         BotStraightTPOrderCheck(ent, ordernum, botstates[i]);
00263                                         botstates[i]->state_Forced = ordernum;
00264                                         botstates[i]->chatObject = ent;
00265                                         botstates[i]->chatAltObject = NULL;
00266                                         if (BotDoChat(botstates[i], "OrderAccepted", 0))
00267                                         {
00268                                                 botstates[i]->chatTeam = 1;
00269                                         }
00270                                 }
00271                         }
00272 
00273                         i++;
00274                 }
00275         }
00276 }

void BroadcastTeamChange gclient_t client,