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

Go to the source code of this file.

Classes

class  Hook
class  OffhandHook

Macros

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

Functions

 MODEL (HOOK, "models/hook.md3")
 MODEL (HOOK_ITEM, W_Model("g_hookgun.md3"))
 MODEL (HOOK_VIEW, W_Model("h_hookgun.iqm"))
 MODEL (HOOK_WORLD, W_Model("v_hookgun.md3"))
 REGISTER_WEAPON (HOOK, NEW(Hook))
 SOUND (HOOK_FIRE, W_Sound("hook_fire"))
 SOUND (HOOK_IMPACT, W_Sound("hook_impact"))
 SOUND (HOOKBOMB_FIRE, W_Sound("hookbomb_fire"))
 SOUND (HOOKBOMB_IMPACT, W_Sound("hookbomb_impact"))
 STATIC_INIT (OFFHAND_HOOK)

Variables

float dmg
float dmg_duration
float dmg_edge
float dmg_force
float dmg_last
float dmg_power
float dmg_radius
float hook_refire
float hook_time_fueldecrease
float hook_time_hooked
OffhandHook OFFHAND_HOOK

Macro Definition Documentation

◆ X

#define X ( BEGIN,
P,
END,
class,
prefix )
Value:
BEGIN(class) \
P(class, prefix, ammo, float, PRI) \
P(class, prefix, animtime, float, BOTH) \
P(class, prefix, damageforcescale, float, SEC) \
P(class, prefix, damage, float, SEC) \
P(class, prefix, duration, float, SEC) \
P(class, prefix, edgedamage, float, SEC) \
P(class, prefix, force, float, SEC) \
P(class, prefix, gravity, float, SEC) \
P(class, prefix, health, float, SEC) \
P(class, prefix, hooked_ammo, float, PRI) \
P(class, prefix, hooked_time_free, float, PRI) \
P(class, prefix, hooked_time_max, float, PRI) \
P(class, prefix, lifetime, float, SEC) \
P(class, prefix, pickup_ammo, float, NONE) \
P(class, prefix, power, float, SEC) \
P(class, prefix, radius, float, SEC) \
P(class, prefix, refire, float, BOTH) \
P(class, prefix, speed, float, SEC) \
P(class, prefix, switchdelay_drop, float, NONE) \
P(class, prefix, switchdelay_raise, float, NONE) \
P(class, prefix, weaponreplace, string, NONE) \
P(class, prefix, weaponstartoverride, float, NONE) \
P(class, prefix, weaponstart, float, NONE) \
P(class, prefix, weaponthrowable, float, NONE) \
END()
float lifetime
Definition powerups.qc:23
float gravity
Definition items.qh:17
float radius
Definition impulse.qh:11
float damageforcescale
float speed
Definition dynlight.qc:9
float health
Legacy fields for the resources. To be removed.
Definition resources.qh:9
float ammo
Definition sv_turrets.qh:43

Definition at line 35 of file hook.qh.

35#define X(BEGIN, P, END, class, prefix) \
36 BEGIN(class) \
37 P(class, prefix, ammo, float, PRI) \
38 P(class, prefix, animtime, float, BOTH) \
39 P(class, prefix, damageforcescale, float, SEC) \
40 P(class, prefix, damage, float, SEC) \
41 P(class, prefix, duration, float, SEC) \
42 P(class, prefix, edgedamage, float, SEC) \
43 P(class, prefix, force, float, SEC) \
44 P(class, prefix, gravity, float, SEC) \
45 P(class, prefix, health, float, SEC) \
46 P(class, prefix, hooked_ammo, float, PRI) \
47 P(class, prefix, hooked_time_free, float, PRI) \
48 P(class, prefix, hooked_time_max, float, PRI) \
49 P(class, prefix, lifetime, float, SEC) \
50 P(class, prefix, pickup_ammo, float, NONE) \
51 P(class, prefix, power, float, SEC) \
52 P(class, prefix, radius, float, SEC) \
53 P(class, prefix, refire, float, BOTH) \
54 P(class, prefix, speed, float, SEC) \
55 P(class, prefix, switchdelay_drop, float, NONE) \
56 P(class, prefix, switchdelay_raise, float, NONE) \
57 P(class, prefix, weaponreplace, string, NONE) \
58 P(class, prefix, weaponstartoverride, float, NONE) \
59 P(class, prefix, weaponstart, float, NONE) \
60 P(class, prefix, weaponthrowable, float, NONE) \
61 END()

Function Documentation

◆ MODEL() [1/4]

MODEL ( HOOK ,
"models/hook.md3"  )

◆ MODEL() [2/4]

MODEL ( HOOK_ITEM ,
W_Model("g_hookgun.md3")  )

◆ MODEL() [3/4]

MODEL ( HOOK_VIEW ,
W_Model("h_hookgun.iqm")  )

◆ MODEL() [4/4]

MODEL ( HOOK_WORLD ,
W_Model("v_hookgun.md3")  )

◆ REGISTER_WEAPON()

REGISTER_WEAPON ( HOOK ,
NEW(Hook)  )

◆ SOUND() [1/4]

SOUND ( HOOK_FIRE ,
W_Sound("hook_fire")  )

◆ SOUND() [2/4]

SOUND ( HOOK_IMPACT ,
W_Sound("hook_impact")  )

◆ SOUND() [3/4]

SOUND ( HOOKBOMB_FIRE ,
W_Sound("hookbomb_fire")  )

◆ SOUND() [4/4]

SOUND ( HOOKBOMB_IMPACT ,
W_Sound("hookbomb_impact")  )

◆ STATIC_INIT()

STATIC_INIT ( OFFHAND_HOOK )

Definition at line 81 of file hook.qh.

OffhandHook OFFHAND_HOOK
Definition hook.qh:80
#define NEW(cname,...)
Definition oo.qh:117

References NEW, OFFHAND_HOOK, and STATIC_INIT.

Variable Documentation

◆ dmg

float dmg

Definition at line 85 of file hook.qh.

◆ dmg_duration

float dmg_duration

Definition at line 90 of file hook.qh.

Referenced by W_Hook_Explode2(), and W_Hook_ExplodeThink().

◆ dmg_edge

float dmg_edge

Definition at line 86 of file hook.qh.

◆ dmg_force

float dmg_force

Definition at line 88 of file hook.qh.

◆ dmg_last

float dmg_last

Definition at line 91 of file hook.qh.

Referenced by W_Hook_Explode2(), and W_Hook_ExplodeThink().

◆ dmg_power

float dmg_power

Definition at line 89 of file hook.qh.

Referenced by W_Hook_Explode2(), and W_Hook_ExplodeThink().

◆ dmg_radius

float dmg_radius

Definition at line 87 of file hook.qh.

◆ hook_refire

float hook_refire

Definition at line 92 of file hook.qh.

◆ hook_time_fueldecrease

float hook_time_fueldecrease

Definition at line 94 of file hook.qh.

◆ hook_time_hooked

float hook_time_hooked

Definition at line 93 of file hook.qh.

◆ OFFHAND_HOOK

OffhandHook OFFHAND_HOOK

Definition at line 80 of file hook.qh.

Referenced by client_hasweapon(), MUTATOR_HOOKFUNCTION(), STATIC_INIT(), and W_WeaponFrame().