Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
constants.qh File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EFMASK_CHEAP   (EF_ADDITIVE | EF_DOUBLESIDED | EF_FULLBRIGHT | EF_NODEPTHTEST | EF_NODRAW | EF_NOGUNBOB | EF_NOSHADOW | EF_LOWPRECISION | EF_SELECTABLE | EF_TELEPORT_BIT)

Variables

const int CVAR_NOTIFY = BIT(1)
const int CVAR_READONLY = BIT(2)
const int CVAR_SAVE = BIT(0)
const int EF_SHOCK = 262144
const int FL_CLIENT = 8
const int FL_DUCKED = BIT(19)
const int FL_FLY = 1
const int FL_GODMODE = 64
const int FL_INWATER = 16
const int FL_ITEM = 256
const int FL_JUMPRELEASED = 4096
const int FL_MONSTER = 32
const int FL_NOTARGET = 128
const int FL_ONGROUND = 512
const int FL_ONSLICK = BIT(20)
const int FL_PARTIALGROUND = 1024
const int FL_PICKUPITEMS = BIT(18)
const int FL_POWERUP = BIT(14)
const int FL_PROJECTILE = BIT(15)
const int FL_SPAWNING = BIT(17)
const int FL_SWIM = 2
const int FL_TOSSED = BIT(16)
const int FL_WATERJUMP = 2048
const int FL_WEAPON = BIT(13)
const int FRAGS_PLAYER = 0
const int FRAGS_PLAYER_OUT_OF_GAME = -616
const int FRAGS_SPECTATOR = -666
const int GTV_AVAILABLE = 1
const int GTV_CUSTOM = 2
const int GTV_FORBIDDEN = 0
const int HUD_BUMBLEBEE_GUN = 25
const int HUD_NORMAL = 0
const int INITPRIO_DROPTOFLOOR = 20
const int INITPRIO_FINDTARGET = 10
const int INITPRIO_FIRST = 0
const int INITPRIO_GAMETYPE = 0
const int INITPRIO_GAMETYPE_FALLBACK = 1
const int INITPRIO_LAST = 99
const int INITPRIO_LINKDOORS = 91
const int INITPRIO_SETLOCATION = 90
const int KEY_ATCK = BIT(6)
const int KEY_ATCK2 = BIT(7)
const int KEY_BACKWARD = BIT(1)
const int KEY_CROUCH = BIT(5)
const int KEY_FORWARD = BIT(0)
const int KEY_JUMP = BIT(4)
const int KEY_LEFT = BIT(2)
const int KEY_RIGHT = BIT(3)
const int MAPVOTE_COUNT = 20
const float PL_CORPSE_SCALE = 0.235
const vector PL_CROUCH_MAX_CONST = '16 16 25'
const vector PL_CROUCH_MIN_CONST = '-16 -16 -24'
const vector PL_MAX_CONST = '16 16 45'
const vector PL_MIN_CONST = '-16 -16 -24'
const int RANKINGS_CNT = 99
const int SERVERFLAG_ALLOW_FULLBRIGHT = BIT(0)
const int SERVERFLAG_FORBID_PICKUPTIMER = BIT(4)
const int SERVERFLAG_PLAYERSTATS = BIT(2)
const int SERVERFLAG_PLAYERSTATS_CUSTOM = BIT(3)
const int SERVERFLAG_TEAMPLAY = BIT(1)
const int SPECIES_ALIEN = 2
const int SPECIES_ANIMAL = 3
const int SPECIES_HUMAN = 0
const int SPECIES_RESERVED = 15
const int SPECIES_ROBOT_RUSTY = 4
const int SPECIES_ROBOT_SHINY = 5
const int SPECIES_ROBOT_SOLID = 1

Macro Definition Documentation

◆ EFMASK_CHEAP

Variable Documentation

◆ CVAR_NOTIFY

const int CVAR_NOTIFY = BIT(1)

Definition at line 11 of file constants.qh.

◆ CVAR_READONLY

const int CVAR_READONLY = BIT(2)

Definition at line 12 of file constants.qh.

◆ CVAR_SAVE

const int CVAR_SAVE = BIT(0)

Definition at line 10 of file constants.qh.

◆ EF_SHOCK

const int EF_SHOCK = 262144

Definition at line 103 of file constants.qh.

Referenced by CSQCModel_Effects_Apply(), DEF(), and SUB().

◆ FL_CLIENT

◆ FL_DUCKED

const int FL_DUCKED = BIT(19)

◆ FL_FLY

const int FL_FLY = 1

◆ FL_GODMODE

const int FL_GODMODE = 64

◆ FL_INWATER

const int FL_INWATER = 16

Definition at line 73 of file constants.qh.

Referenced by CreatureFrame_Liquids().

◆ FL_ITEM

◆ FL_JUMPRELEASED

const int FL_JUMPRELEASED = 4096

Definition at line 81 of file constants.qh.

Referenced by ObserverOrSpectatorThink().

◆ FL_MONSTER

const int FL_MONSTER = 32

Definition at line 74 of file constants.qh.

Referenced by _Movetype_ContentsMask(), Monster_Appear_Check(), and Monster_Spawn().

◆ FL_NOTARGET

◆ FL_ONGROUND

const int FL_ONGROUND = 512

◆ FL_ONSLICK

const int FL_ONSLICK = BIT(20)

Definition at line 90 of file constants.qh.

◆ FL_PARTIALGROUND

const int FL_PARTIALGROUND = 1024

Definition at line 79 of file constants.qh.

Referenced by navigation_routerating().

◆ FL_PICKUPITEMS

const int FL_PICKUPITEMS = BIT(18)

Definition at line 88 of file constants.qh.

Referenced by Item_Touch(), and PutPlayerInServer().

◆ FL_POWERUP

const int FL_POWERUP = BIT(14)

Definition at line 84 of file constants.qh.

◆ FL_PROJECTILE

◆ FL_SPAWNING

const int FL_SPAWNING = BIT(17)

Definition at line 87 of file constants.qh.

Referenced by ObserverOrSpectatorThink().

◆ FL_SWIM

const int FL_SWIM = 2

◆ FL_TOSSED

const int FL_TOSSED = BIT(16)

Definition at line 86 of file constants.qh.

Referenced by W_ThrowNewWeapon().

◆ FL_WATERJUMP

const int FL_WATERJUMP = 2048

◆ FL_WEAPON

const int FL_WEAPON = BIT(13)

Definition at line 83 of file constants.qh.

◆ FRAGS_PLAYER

const int FRAGS_PLAYER = 0

◆ FRAGS_PLAYER_OUT_OF_GAME

◆ FRAGS_SPECTATOR

◆ GTV_AVAILABLE

◆ GTV_CUSTOM

◆ GTV_FORBIDDEN

const int GTV_FORBIDDEN = 0

Definition at line 63 of file constants.qh.

Referenced by GameTypeVote_AvailabilityStatus().

◆ HUD_BUMBLEBEE_GUN

const int HUD_BUMBLEBEE_GUN = 25

Definition at line 48 of file constants.qh.

Referenced by HUD_Crosshair_Vehicle(), HUD_Vehicle(), NET_HANDLE(), and View_EventChase().

◆ HUD_NORMAL

◆ INITPRIO_DROPTOFLOOR

const int INITPRIO_DROPTOFLOOR = 20

Definition at line 97 of file constants.qh.

Referenced by DropToFloor_QC_DelayedInit(), g_clientmodel_init(), and g_model_init().

◆ INITPRIO_FINDTARGET

◆ INITPRIO_FIRST

const int INITPRIO_FIRST = 0

Definition at line 93 of file constants.qh.

◆ INITPRIO_GAMETYPE

const int INITPRIO_GAMETYPE = 0

◆ INITPRIO_GAMETYPE_FALLBACK

const int INITPRIO_GAMETYPE_FALLBACK = 1

Definition at line 95 of file constants.qh.

Referenced by InitGameplayMode().

◆ INITPRIO_LAST

const int INITPRIO_LAST = 99

Definition at line 100 of file constants.qh.

Referenced by spawnfunc().

◆ INITPRIO_LINKDOORS

const int INITPRIO_LINKDOORS = 91

Definition at line 99 of file constants.qh.

Referenced by spawnfunc(), and spawnfunc().

◆ INITPRIO_SETLOCATION

const int INITPRIO_SETLOCATION = 90

◆ KEY_ATCK

const int KEY_ATCK = BIT(6)

Definition at line 41 of file constants.qh.

Referenced by GetPressedKeys(), HUD_PressedKeys(), and PM_dodging_GetPressedKeys().

◆ KEY_ATCK2

const int KEY_ATCK2 = BIT(7)

Definition at line 42 of file constants.qh.

Referenced by GetPressedKeys(), HUD_PressedKeys(), and PM_dodging_GetPressedKeys().

◆ KEY_BACKWARD

◆ KEY_CROUCH

const int KEY_CROUCH = BIT(5)

Definition at line 40 of file constants.qh.

Referenced by GetPressedKeys(), HUD_PressedKeys(), and PM_dodging_GetPressedKeys().

◆ KEY_FORWARD

◆ KEY_JUMP

const int KEY_JUMP = BIT(4)

◆ KEY_LEFT

const int KEY_LEFT = BIT(2)

◆ KEY_RIGHT

const int KEY_RIGHT = BIT(3)

◆ MAPVOTE_COUNT

const int MAPVOTE_COUNT = 20

◆ PL_CORPSE_SCALE

const float PL_CORPSE_SCALE = 0.235

Definition at line 60 of file constants.qh.

Referenced by CSQCPlayer_SetMinsMaxs(), and EndFrame().

◆ PL_CROUCH_MAX_CONST

const vector PL_CROUCH_MAX_CONST = '16 16 25'

Definition at line 57 of file constants.qh.

Referenced by spawnfunc(), waypoint_spawn(), and waypoint_think().

◆ PL_CROUCH_MIN_CONST

const vector PL_CROUCH_MIN_CONST = '-16 -16 -24'

Definition at line 58 of file constants.qh.

Referenced by spawnfunc(), waypoint_spawn(), and waypoint_think().

◆ PL_MAX_CONST

◆ PL_MIN_CONST

◆ RANKINGS_CNT

◆ SERVERFLAG_ALLOW_FULLBRIGHT

const int SERVERFLAG_ALLOW_FULLBRIGHT = BIT(0)

Definition at line 16 of file constants.qh.

Referenced by readlevelcvars(), and View_NightVision().

◆ SERVERFLAG_FORBID_PICKUPTIMER

const int SERVERFLAG_FORBID_PICKUPTIMER = BIT(4)

Definition at line 20 of file constants.qh.

Referenced by HUD_Pickup(), and readlevelcvars().

◆ SERVERFLAG_PLAYERSTATS

const int SERVERFLAG_PLAYERSTATS = BIT(2)

◆ SERVERFLAG_PLAYERSTATS_CUSTOM

const int SERVERFLAG_PLAYERSTATS_CUSTOM = BIT(3)

◆ SERVERFLAG_TEAMPLAY

const int SERVERFLAG_TEAMPLAY = BIT(1)

Definition at line 17 of file constants.qh.

Referenced by GameRules_teams().

◆ SPECIES_ALIEN

const int SPECIES_ALIEN = 2

Definition at line 24 of file constants.qh.

Referenced by get_model_parameters(), and species_prefix().

◆ SPECIES_ANIMAL

const int SPECIES_ANIMAL = 3

Definition at line 25 of file constants.qh.

Referenced by get_model_parameters(), and species_prefix().

◆ SPECIES_HUMAN

const int SPECIES_HUMAN = 0

Definition at line 22 of file constants.qh.

Referenced by get_model_parameters(), player_getspecies(), and species_prefix().

◆ SPECIES_RESERVED

const int SPECIES_RESERVED = 15

Definition at line 28 of file constants.qh.

Referenced by get_model_parameters(), and species_prefix().

◆ SPECIES_ROBOT_RUSTY

const int SPECIES_ROBOT_RUSTY = 4

Definition at line 26 of file constants.qh.

Referenced by get_model_parameters(), Gib_setmodel(), and species_prefix().

◆ SPECIES_ROBOT_SHINY

const int SPECIES_ROBOT_SHINY = 5

Definition at line 27 of file constants.qh.

Referenced by get_model_parameters(), Gib_setmodel(), and species_prefix().

◆ SPECIES_ROBOT_SOLID

const int SPECIES_ROBOT_SOLID = 1

Definition at line 23 of file constants.qh.

Referenced by get_model_parameters(), Gib_setmodel(), and species_prefix().