#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_t * | G_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_t * | Drop_Item (gentity_t *ent, gitem_t *item, float angle) |
| gentity_t * | LaunchItem (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_t * | G_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_t * | G_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_t * | G_Spawn (void) |
| gentity_t * | G_TempEntity (vec3_t origin, int event) |
| gentity_t * | G_PlayEffect (int fxID, vec3_t org, vec3_t ang) |
| gentity_t * | G_PlayEffectID (const int fxID, vec3_t org, vec3_t ang) |
| gentity_t * | G_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_t * | CreateMissile (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_t * | TAG_Find (const char *owner, const char *name) |
| reference_tag_t * | TAG_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_t * | SelectSpawnPoint (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_t * | G_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_t * | gJMSaberEnt |
| 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 |
|
|
Definition at line 31 of file g_local.h. Referenced by InitBodyQue(). |
|
|
Definition at line 38 of file g_local.h. Referenced by player_die(). |
|
|
|
|
|
|
Definition at line 1173 of file g_local.h. Referenced by CheckArmor(), G_MissileImpact(), and WP_FireStunBaton(). |
|
|
Definition at line 1174 of file g_local.h. Referenced by CheckArmor(). |
|
|
Definition at line 1175 of file g_local.h. Referenced by G_MissileImpact(), and WP_FireEmplacedMissile(). |
|
|
Definition at line 1171 of file g_local.h. Referenced by Boba_FireFlameThrower(). |
|
|
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(). |
|
|
|
|
|
Definition at line 1178 of file g_local.h. Referenced by G_Damage(), and WP_SaberApplyDamage(). |
|
|
Definition at line 1176 of file g_local.h. Referenced by G_Damage(), G_LocationBasedDamageModifier(), and Rancor_Attack(). |
|
|
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(). |
|
|
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(). |
|
|
Definition at line 1177 of file g_local.h. Referenced by G_Damage(). |
|
|
|
|
|
|
|
|
Definition at line 1163 of file g_local.h. Referenced by G_Damage(), and G_RadiusDamage(). |
|
|
Definition at line 1179 of file g_local.h. Referenced by G_Damage(). |
|
|
Definition at line 1181 of file g_local.h. Referenced by G_Damage(). |
|
|
Definition at line 1180 of file g_local.h. Referenced by G_Damage(). |
|
|
Definition at line 1182 of file g_local.h. Referenced by G_Damage(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 79 of file g_local.h. Referenced by charge_stick(), Client_CheckImpactBBrush(), DoImpact(), and G_Damage(). |
|
|
Definition at line 68 of file g_local.h. Referenced by G_MissileImpact(), and G_RunObject(). |
|
|
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(). |
|
|
Definition at line 70 of file g_local.h. Referenced by G_BounceMissile(), and G_MissileImpact(). |
|
|
Definition at line 77 of file g_local.h. Referenced by G_Damage(), G_MissileImpact(), NPC_Spawn_Do(), and SP_func_breakable(). |
|
|
Definition at line 76 of file g_local.h. Referenced by G_Damage(), and SP_func_breakable(). |
|
|
Definition at line 63 of file g_local.h. Referenced by NPC_ExecuteBState(). |
|
|
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(). |
|
|
Definition at line 60 of file g_local.h. Referenced by ClientThink_real(), and Team_ForceGesture(). |
|
|
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(). |
|
|
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(). |
|
|
Definition at line 62 of file g_local.h. Referenced by NAV_ClearPathToPoint(), NPC_ClearPathToGoal(), NPC_SetMoveGoal(), and ST_TransferMoveGoal(). |
|
|
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(). |
|
|
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(). |
|
|
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(). |
|
|
|
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(). |
|
|
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(). |
|
|
Definition at line 65 of file g_local.h. Referenced by G_Damage(), G_EjectDroidUnit(), NPC_Begin(), and player_die(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 11 of file g_local.h. Referenced by AddPassenger(), Inhabited(), SetParent(), SetPilot(), and VectorCompare2(). |
|
|
Definition at line 29 of file g_local.h. Referenced by G_InitGame(). |
|
|
|
|
|
Definition at line 41 of file g_local.h. Referenced by CheckExitRules(). |
|
|
Definition at line 769 of file g_local.h. Referenced by AddSightEvent(), AddSoundEvent(), ClearPlayerAlertEvents(), and RemoveOldestAlert(). |
|
|
Definition at line 754 of file g_local.h. Referenced by NPC_FindCombatPoint(), and SP_point_combat(). |
|
|
|
|
|
|
|
|
Definition at line 744 of file g_local.h. Referenced by SP_target_interest(). |
|
|
Definition at line 435 of file g_local.h. Referenced by Cmd_CallTeamVote_f(). |
|
|
Definition at line 1226 of file g_local.h. Referenced by TAG_Add(). |
|
|
Definition at line 436 of file g_local.h. Referenced by Cmd_CallTeamVote_f(), and Cmd_CallVote_f(). |
|
|
Definition at line 432 of file g_local.h. Referenced by ClientSpawn(), Cmd_CallTeamVote_f(), and Cmd_TeamVote_f(). |
|
|
Definition at line 431 of file g_local.h. Referenced by ClientSpawn(), Cmd_CallVote_f(), and Cmd_Vote_f(). |
|
|
Definition at line 39 of file g_local.h. Referenced by player_die(), Team_FragBonuses(), and Team_TouchOurFlag(). |
|
|
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(). |
|
|
|
|
|
|
|
|
Definition at line 96 of file g_local.h. Referenced by G_InitGame(). |
|
|
Definition at line 1211 of file g_local.h. Referenced by ForceThrow(). |
|
|
|
|
|
Definition at line 46 of file g_local.h. Referenced by SP_misc_maglock(). |
|
|
|
|
|
|
|
|
Definition at line 1227 of file g_local.h. Referenced by SP_misc_weapon_shooter(), and SP_reference_tag(). |
|
|
|
|
|
Definition at line 49 of file g_local.h. Referenced by G_InitGame(). |
|
|
Definition at line 48 of file g_local.h. Referenced by SP_NPC_spawner(). |
|
|
Referenced by ClearPlayerAlertEvents(), NPC_PickEnemyExt(), and RemoveOldestAlert(). |
|
|
Referenced by BotAISetupClient(), BotResetState(), and G_BotConnect(). |
|
|
|
|
|
|
|
Referenced by FirstFreeRefTag(), ref_link(), TAG_Add(), TAG_Find(), TAG_GetAngles(), TAG_GetFlags(), TAG_GetOrigin(), TAG_GetOrigin2(), and TAG_GetRadius(). |
|
|
Referenced by NPC_ParseParms(), Rancor_SetBolts(), UpdateClientRenderBolts(), UpdateClientRenderinfo(), and Wampa_SetBolts(). |
|
|
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 };
|
|
|
Definition at line 366 of file g_local.h.
00366 {
00367 CON_DISCONNECTED,
00368 CON_CONNECTING,
00369 CON_CONNECTED
00370 };
|
|
|
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;
|
|
|
Definition at line 771 of file g_local.h.
00772 {
00773 AET_SIGHT,
00774 AET_SOUND,
00775 } alertEventType_e;
|
|
|
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;
|
|
|
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;
|
|
|
Definition at line 373 of file g_local.h. Referenced by G_ReadSessionData(), and SetTeam().
00373 {
00374 SPECTATOR_NOT,
00375 SPECTATOR_FREE,
00376 SPECTATOR_FOLLOW,
00377 SPECTATOR_SCOREBOARD
00378 } spectatorState_t;
|
|
||||||||||||||||
|
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().
|
|
||||||||||||||||
|
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 }
|
|
||||||||||||||||
|
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 }
|
|
||||||||||||||||||||||||
|
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 }
|
|
||||||||||||||||||||||||
|
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 }
|
|
|
|
|
|
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 }
|
|
|
Definition at line 133 of file ai_util.c. References gWPArray, and memset(). Referenced by G_InitGame().
|
|
|
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 }
|
|
|
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 }
|
|
||||||||||||||||||||||||
|
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 }
|
|
|
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 }
|
|
|
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 }
|
|
||||||||||||||||
|
|
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 }
|
|
||||||||||||
|
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 }
|
|
|
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 }
|
|
|
|
|
||||||||||||||||
|
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 }
|
|