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

Go to the source code of this file.

Classes

class  Arc

Macros

#define X(BEGIN, P, END, class, prefix)

Functions

 MODEL (ARC_ITEM, W_Model("g_arc.md3"))
 MODEL (ARC_MUZZLEFLASH, "models/flash.md3")
 MODEL (ARC_VIEW, W_Model("h_arc.iqm"))
 MODEL (ARC_WORLD, W_Model("v_arc.md3"))
 REGISTER_WEAPON (ARC, NEW(Arc))
 SOUND (ARC_BOLT_FIRE, W_Sound("electro_fire2"))
 SOUND (ARC_BOLT_IMPACT, W_Sound("electro_impact"))
 SOUND (ARC_FIRE, W_Sound("arc_fire"))
 SOUND (ARC_LOOP, W_Sound("arc_loop"))
 SOUND (ARC_LOOP_OVERHEAT, W_Sound("arc_loop_overheat"))
 SOUND (ARC_STOP, W_Sound("arc_stop"))

Variables

entity arc_beam
const int ARC_BT_BURST_HEAL = 0x12
const int ARC_BT_BURST_HIT = 0x13
const int ARC_BT_BURST_MISS = 0x10
const int ARC_BT_BURST_WALL = 0x11
const int ARC_BT_BURSTMASK = 0x10
const int ARC_BT_HEAL = 0x02
const int ARC_BT_HIT = 0x03
const int ARC_BT_MISS = 0x00
const int ARC_BT_WALL = 0x01
bool arc_BUTTON_ATCK_prev
float arc_cooldown
float arc_heat_percent
const float ARC_MAX_SEGMENTS = 20
float arc_overheat
const int ARC_SF_BEAMDIR = BIT(3)
const int ARC_SF_BEAMTYPE = BIT(4)
const int ARC_SF_LOCALMASK = ARC_SF_START | ARC_SF_WANTDIR | ARC_SF_BEAMDIR
const int ARC_SF_START = BIT(1)
const int ARC_SF_UPDATE = BIT(0)
const int ARC_SF_WANTDIR = BIT(2)
vector arc_shotorigin [4]
bool arc_smoke_sound
float beam_alpha
bool beam_bursting
vector beam_color
vector beam_dir
float beam_heat
entity beam_hiteffect
float beam_hitlight [4]
string beam_image
bool beam_initialized
entity beam_muzzleeffect
entity beam_muzzleentity
float beam_muzzlelight [4]
float beam_prev
vector beam_shotorigin
vector beam_start
float beam_teleporttime
float beam_thickness
entity beam_traileffect
int beam_type
float beam_usevieworigin
vector beam_wantdir
entity Draw_ArcBeam_callback_entity
vector Draw_ArcBeam_callback_last_bottom
float Draw_ArcBeam_callback_last_thickness
vector Draw_ArcBeam_callback_last_top

Macro Definition Documentation

◆ X

#define X ( BEGIN,
P,
END,
class,
prefix )

Definition at line 36 of file arc.qh.

36#define X(BEGIN, P, END, class, prefix) \
37 BEGIN(class) \
38 P(class, prefix, bolt, float, NONE) \
39 P(class, prefix, bolt_ammo, float, NONE) \
40 P(class, prefix, bolt_bounce_count, float, NONE) \
41 P(class, prefix, bolt_bounce_explode, float, NONE) \
42 P(class, prefix, bolt_bounce_lifetime, float, NONE) \
43 P(class, prefix, bolt_count, float, NONE) \
44 P(class, prefix, bolt_damageforcescale, float, NONE) \
45 P(class, prefix, bolt_damage, float, NONE) \
46 P(class, prefix, bolt_edgedamage, float, NONE) \
47 P(class, prefix, bolt_force, float, NONE) \
48 P(class, prefix, bolt_health, float, NONE) \
49 P(class, prefix, bolt_lifetime, float, NONE) \
50 P(class, prefix, bolt_radius, float, NONE) \
51 P(class, prefix, bolt_refire, float, NONE) \
52 P(class, prefix, bolt_refire2, float, NONE) \
53 P(class, prefix, bolt_speed, float, NONE) \
54 P(class, prefix, bolt_spread, float, NONE) \
55 P(class, prefix, beam_ammo, float, NONE) \
56 P(class, prefix, beam_animtime, float, NONE) \
57 P(class, prefix, beam_botaimlifetime, float, NONE) \
58 P(class, prefix, beam_botaimspeed, float, NONE) \
59 P(class, prefix, beam_damage, float, NONE) \
60 P(class, prefix, beam_degreespersegment, float, NONE) \
61 P(class, prefix, beam_distancepersegment, float, NONE) \
62 P(class, prefix, beam_falloff_halflifedist, float, NONE) \
63 P(class, prefix, beam_falloff_maxdist, float, NONE) \
64 P(class, prefix, beam_falloff_mindist, float, NONE) \
65 P(class, prefix, beam_force, float, NONE) \
66 P(class, prefix, beam_healing_amax, float, NONE) \
67 P(class, prefix, beam_healing_aps, float, NONE) \
68 P(class, prefix, beam_healing_hmax, float, NONE) \
69 P(class, prefix, beam_healing_hps, float, NONE) \
70 P(class, prefix, beam_heat, float, NONE) /* heat increase per second (primary) */ \
71 P(class, prefix, beam_maxangle, float, NONE) \
72 P(class, prefix, beam_nonplayerdamage, float, NONE) \
73 P(class, prefix, beam_range, float, NONE) \
74 P(class, prefix, beam_refire, float, NONE) \
75 P(class, prefix, beam_returnspeed, float, NONE) \
76 P(class, prefix, beam_tightness, float, NONE) \
77 P(class, prefix, burst_ammo, float, NONE) \
78 P(class, prefix, burst_damage, float, NONE) \
79 P(class, prefix, burst_healing_aps, float, NONE) \
80 P(class, prefix, burst_healing_hps, float, NONE) \
81 P(class, prefix, burst_heat, float, NONE) /* heat increase per second (secondary) */ \
82 P(class, prefix, cooldown, float, NONE) /* heat decrease per second when resting */ \
83 P(class, prefix, cooldown_release, float, NONE) /* delay weapon re-use when releasing button */ \
84 P(class, prefix, overheat_max, float, NONE) /* maximum heat before jamming */ \
85 P(class, prefix, overheat_min, float, NONE) /* minimum heat to wait for cooldown */ \
86 P(class, prefix, pickup_ammo, float, NONE) \
87 P(class, prefix, switchdelay_drop, float, NONE) \
88 P(class, prefix, switchdelay_raise, float, NONE) \
89 P(class, prefix, weaponreplace, string, NONE) \
90 P(class, prefix, weaponstartoverride, float, NONE) \
91 P(class, prefix, weaponstart, float, NONE) \
92 P(class, prefix, weaponthrowable, float, NONE) \
93 END()

Function Documentation

◆ MODEL() [1/4]

MODEL ( ARC_ITEM ,
W_Model("g_arc.md3")  )

◆ MODEL() [2/4]

MODEL ( ARC_MUZZLEFLASH ,
"models/flash.md3"  )

◆ MODEL() [3/4]

MODEL ( ARC_VIEW ,
W_Model("h_arc.iqm")  )

◆ MODEL() [4/4]

MODEL ( ARC_WORLD ,
W_Model("v_arc.md3")  )

◆ REGISTER_WEAPON()

REGISTER_WEAPON ( ARC ,
NEW(Arc)  )

◆ SOUND() [1/6]

SOUND ( ARC_BOLT_FIRE ,
W_Sound("electro_fire2")  )

◆ SOUND() [2/6]

SOUND ( ARC_BOLT_IMPACT ,
W_Sound("electro_impact")  )

◆ SOUND() [3/6]

SOUND ( ARC_FIRE ,
W_Sound("arc_fire")  )

◆ SOUND() [4/6]

SOUND ( ARC_LOOP ,
W_Sound("arc_loop")  )

◆ SOUND() [5/6]

SOUND ( ARC_LOOP_OVERHEAT ,
W_Sound("arc_loop_overheat")  )

◆ SOUND() [6/6]

SOUND ( ARC_STOP ,
W_Sound("arc_stop")  )

Variable Documentation

◆ arc_beam

entity arc_beam

◆ ARC_BT_BURST_HEAL

const int ARC_BT_BURST_HEAL = 0x12

Definition at line 116 of file arc.qh.

Referenced by NET_HANDLE().

◆ ARC_BT_BURST_HIT

const int ARC_BT_BURST_HIT = 0x13

Definition at line 117 of file arc.qh.

Referenced by NET_HANDLE().

◆ ARC_BT_BURST_MISS

const int ARC_BT_BURST_MISS = 0x10

Definition at line 114 of file arc.qh.

Referenced by NET_HANDLE().

◆ ARC_BT_BURST_WALL

const int ARC_BT_BURST_WALL = 0x11

Definition at line 115 of file arc.qh.

Referenced by NET_HANDLE().

◆ ARC_BT_BURSTMASK

const int ARC_BT_BURSTMASK = 0x10

Definition at line 118 of file arc.qh.

Referenced by W_Arc_Beam_Think().

◆ ARC_BT_HEAL

const int ARC_BT_HEAL = 0x02

Definition at line 112 of file arc.qh.

Referenced by NET_HANDLE(), and W_Arc_Beam_Think().

◆ ARC_BT_HIT

const int ARC_BT_HIT = 0x03

Definition at line 113 of file arc.qh.

Referenced by NET_HANDLE(), and W_Arc_Beam_Think().

◆ ARC_BT_MISS

const int ARC_BT_MISS = 0x00

Definition at line 110 of file arc.qh.

Referenced by NET_HANDLE().

◆ ARC_BT_WALL

const int ARC_BT_WALL = 0x01

Definition at line 111 of file arc.qh.

Referenced by NET_HANDLE(), and W_Arc_Beam_Think().

◆ arc_BUTTON_ATCK_prev

bool arc_BUTTON_ATCK_prev

Definition at line 129 of file arc.qh.

Referenced by W_Arc_Beam_Think().

◆ arc_cooldown

float arc_cooldown

Definition at line 136 of file arc.qh.

◆ arc_heat_percent

float arc_heat_percent

Definition at line 137 of file arc.qh.

Referenced by Arc_Player_SetHeat().

◆ ARC_MAX_SEGMENTS

const float ARC_MAX_SEGMENTS = 20

Definition at line 103 of file arc.qh.

Referenced by Draw_ArcBeam(), and W_Arc_Beam_Think().

◆ arc_overheat

float arc_overheat

Definition at line 135 of file arc.qh.

Referenced by DEF(), and SUB().

◆ ARC_SF_BEAMDIR

const int ARC_SF_BEAMDIR = BIT(3)

Definition at line 123 of file arc.qh.

Referenced by NET_HANDLE(), W_Arc_Beam_Send(), and W_Arc_Beam_Think().

◆ ARC_SF_BEAMTYPE

const int ARC_SF_BEAMTYPE = BIT(4)

Definition at line 124 of file arc.qh.

Referenced by NET_HANDLE(), W_Arc_Beam_Send(), and W_Arc_Beam_Think().

◆ ARC_SF_LOCALMASK

const int ARC_SF_LOCALMASK = ARC_SF_START | ARC_SF_WANTDIR | ARC_SF_BEAMDIR

Definition at line 125 of file arc.qh.

Referenced by W_Arc_Beam_Send().

◆ ARC_SF_START

const int ARC_SF_START = BIT(1)

Definition at line 121 of file arc.qh.

Referenced by NET_HANDLE(), W_Arc_Beam_Send(), and W_Arc_Beam_Think().

◆ ARC_SF_UPDATE

const int ARC_SF_UPDATE = BIT(0)

Definition at line 120 of file arc.qh.

Referenced by NET_HANDLE(), SetSpectatee(), and W_Arc_Beam_Send().

◆ ARC_SF_WANTDIR

const int ARC_SF_WANTDIR = BIT(2)

Definition at line 122 of file arc.qh.

Referenced by NET_HANDLE(), W_Arc_Beam_Send(), and W_Arc_Beam_Think().

◆ arc_shotorigin

vector arc_shotorigin[4]

Definition at line 104 of file arc.qh.

Referenced by ClientInit_misc(), NET_HANDLE(), and NET_HANDLE().

◆ arc_smoke_sound

bool arc_smoke_sound

Definition at line 138 of file arc.qh.

◆ beam_alpha

float beam_alpha

Definition at line 143 of file arc.qh.

Referenced by NET_HANDLE().

◆ beam_bursting

bool beam_bursting

Definition at line 132 of file arc.qh.

Referenced by W_Arc_Beam_Think().

◆ beam_color

vector beam_color

Definition at line 142 of file arc.qh.

◆ beam_dir

vector beam_dir

Definition at line 106 of file arc.qh.

Referenced by Draw_ArcBeam(), W_Arc_Beam_Send(), and W_Arc_Beam_Think().

◆ beam_heat

float beam_heat

Definition at line 134 of file arc.qh.

Referenced by W_Arc_Beam_Think().

◆ beam_hiteffect

entity beam_hiteffect

Definition at line 146 of file arc.qh.

Referenced by Draw_ArcBeam(), and NET_HANDLE().

◆ beam_hitlight

float beam_hitlight[4]

Definition at line 147 of file arc.qh.

Referenced by Draw_ArcBeam(), and NET_HANDLE().

◆ beam_image

string beam_image

Definition at line 150 of file arc.qh.

Referenced by NET_HANDLE().

◆ beam_initialized

bool beam_initialized

Definition at line 131 of file arc.qh.

Referenced by Draw_ArcBeam(), and W_Arc_Beam_Think().

◆ beam_muzzleeffect

entity beam_muzzleeffect

Definition at line 148 of file arc.qh.

Referenced by Draw_ArcBeam(), and NET_HANDLE().

◆ beam_muzzleentity

entity beam_muzzleentity

Definition at line 152 of file arc.qh.

Referenced by Draw_ArcBeam(), NET_HANDLE(), and Remove_ArcBeam().

◆ beam_muzzlelight

float beam_muzzlelight[4]

Definition at line 149 of file arc.qh.

Referenced by Draw_ArcBeam(), and NET_HANDLE().

◆ beam_prev

float beam_prev

Definition at line 130 of file arc.qh.

Referenced by W_Arc_Beam_Think().

◆ beam_shotorigin

vector beam_shotorigin

Definition at line 156 of file arc.qh.

Referenced by Draw_ArcBeam(), and NET_HANDLE().

◆ beam_start

vector beam_start

Definition at line 105 of file arc.qh.

Referenced by W_Arc_Beam_Send(), and W_Arc_Beam_Think().

◆ beam_teleporttime

float beam_teleporttime

Definition at line 133 of file arc.qh.

Referenced by W_Arc_Beam_Think().

◆ beam_thickness

float beam_thickness

Definition at line 144 of file arc.qh.

Referenced by NET_HANDLE().

◆ beam_traileffect

entity beam_traileffect

Definition at line 145 of file arc.qh.

Referenced by NET_HANDLE().

◆ beam_type

int beam_type

Definition at line 108 of file arc.qh.

Referenced by NET_HANDLE(), W_Arc_Beam_Send(), and W_Arc_Beam_Think().

◆ beam_usevieworigin

float beam_usevieworigin

Definition at line 154 of file arc.qh.

Referenced by Draw_ArcBeam(), NET_HANDLE(), and Reset_ArcBeam().

◆ beam_wantdir

vector beam_wantdir

Definition at line 107 of file arc.qh.

Referenced by W_Arc_Beam_Send(), and W_Arc_Beam_Think().

◆ Draw_ArcBeam_callback_entity

entity Draw_ArcBeam_callback_entity

Definition at line 158 of file arc.qh.

Referenced by Draw_ArcBeam(), and Draw_ArcBeam_callback().

◆ Draw_ArcBeam_callback_last_bottom

vector Draw_ArcBeam_callback_last_bottom

Definition at line 161 of file arc.qh.

Referenced by Draw_ArcBeam(), and Draw_ArcBeam_callback().

◆ Draw_ArcBeam_callback_last_thickness

float Draw_ArcBeam_callback_last_thickness

Definition at line 159 of file arc.qh.

Referenced by Draw_ArcBeam(), and Draw_ArcBeam_callback().

◆ Draw_ArcBeam_callback_last_top

vector Draw_ArcBeam_callback_last_top

Definition at line 160 of file arc.qh.

Referenced by Draw_ArcBeam(), and Draw_ArcBeam_callback().