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

Go to the source code of this file.

Classes

class  Hagar

Macros

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

Functions

 MODEL (HAGAR_ITEM, W_Model("g_hagar.md3"))
 MODEL (HAGAR_VIEW, W_Model("h_hagar.iqm"))
 MODEL (HAGAR_WORLD, W_Model("v_hagar.md3"))
 REGISTER_WEAPON (HAGAR, NEW(Hagar))
Sound SND_HAGEXP_RANDOM (float rnd)
 SOUND (HAGAR_BEEP, W_Sound("hagar_beep"))
 SOUND (HAGAR_FIRE, W_Sound("hagar_fire"))
 SOUND (HAGAR_LOAD, W_Sound("hagar_load"))
 SOUND (HAGEXP1, W_Sound("hagexp1"))
 SOUND (HAGEXP2, W_Sound("hagexp2"))
 SOUND (HAGEXP3, W_Sound("hagexp3"))

Macro Definition Documentation

◆ X

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

Definition at line 38 of file hagar.qh.

38#define X(BEGIN, P, END, class, prefix) \
39 BEGIN(class) \
40 P(class, prefix, ammo, float, BOTH) \
41 P(class, prefix, damageforcescale, float, BOTH) \
42 P(class, prefix, damage, float, BOTH) \
43 P(class, prefix, edgedamage, float, BOTH) \
44 P(class, prefix, force, float, BOTH) \
45 P(class, prefix, health, float, BOTH) \
46 P(class, prefix, lifetime, float, PRI) \
47 P(class, prefix, lifetime_min, float, SEC) \
48 P(class, prefix, lifetime_rand, float, SEC) \
49 P(class, prefix, load, float, SEC) \
50 P(class, prefix, load_abort, float, SEC) \
51 P(class, prefix, load_animtime, float, SEC) \
52 P(class, prefix, load_hold, float, SEC) \
53 P(class, prefix, load_linkexplode, float, SEC) \
54 P(class, prefix, load_max, float, SEC) \
55 P(class, prefix, load_releasedeath, float, SEC) \
56 P(class, prefix, load_speed, float, SEC) \
57 P(class, prefix, load_spread, float, SEC) \
58 P(class, prefix, load_spread_bias, float, SEC) \
59 P(class, prefix, pickup_ammo, float, NONE) \
60 P(class, prefix, radius, float, BOTH) \
61 P(class, prefix, refire, float, BOTH) \
62 P(class, prefix, reload_ammo, float, NONE) \
63 P(class, prefix, reload_time, float, NONE) \
64 P(class, prefix, secondary, float, NONE) \
65 P(class, prefix, speed, float, BOTH) \
66 P(class, prefix, spread, float, BOTH) \
67 P(class, prefix, switchdelay_drop, float, NONE) \
68 P(class, prefix, switchdelay_raise, float, NONE) \
69 P(class, prefix, weaponreplace, string,NONE) \
70 P(class, prefix, weaponstartoverride, float, NONE) \
71 P(class, prefix, weaponstart, float, NONE) \
72 P(class, prefix, weaponthrowable, float, NONE) \
73 END()

Function Documentation

◆ MODEL() [1/3]

MODEL ( HAGAR_ITEM ,
W_Model("g_hagar.md3")  )

◆ MODEL() [2/3]

MODEL ( HAGAR_VIEW ,
W_Model("h_hagar.iqm")  )

◆ MODEL() [3/3]

MODEL ( HAGAR_WORLD ,
W_Model("v_hagar.md3")  )

◆ REGISTER_WEAPON()

REGISTER_WEAPON ( HAGAR ,
NEW(Hagar)  )

◆ SND_HAGEXP_RANDOM()

Sound SND_HAGEXP_RANDOM ( float rnd)

Definition at line 14 of file hagar.qh.

14 {
15 return REGISTRY_GET(Sounds, SND_HAGEXP1.m_id + rint(rnd * 2));
16}
float rint(float f)
#define REGISTRY_GET(id, i)
Definition registry.qh:43

References REGISTRY_GET, and rint().

◆ SOUND() [1/6]

SOUND ( HAGAR_BEEP ,
W_Sound("hagar_beep")  )

◆ SOUND() [2/6]

SOUND ( HAGAR_FIRE ,
W_Sound("hagar_fire")  )

◆ SOUND() [3/6]

SOUND ( HAGAR_LOAD ,
W_Sound("hagar_load")  )

◆ SOUND() [4/6]

SOUND ( HAGEXP1 ,
W_Sound("hagexp1")  )

◆ SOUND() [5/6]

SOUND ( HAGEXP2 ,
W_Sound("hagexp2")  )

◆ SOUND() [6/6]

SOUND ( HAGEXP3 ,
W_Sound("hagexp3")  )