Xonotic
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

 REGISTER_WEAPON (HOOK, hook, NEW(Hook))
 
 STATIC_INIT (OFFHAND_HOOK)
 

Variables

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, 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 speed
Definition: subs.qh:41
float damageforcescale
Definition: damage.qh:137
float radius
Definition: impulse.qh:11
float ammo
Definition: sv_turrets.qh:44
float lifetime
Definition: powerups.qc:23
float gravity
Definition: items.qh:16
float health
Definition: progsdefs.qc:137

Definition at line 23 of file hook.qh.

Function Documentation

◆ REGISTER_WEAPON()

REGISTER_WEAPON ( HOOK  ,
hook  ,
NEW(Hook  
)

◆ STATIC_INIT()

STATIC_INIT ( OFFHAND_HOOK  )

Definition at line 68 of file hook.qh.

References dmg, dmg_edge, dmg_force, dmg_radius, and NEW.

OffhandHook OFFHAND_HOOK
Definition: hook.qh:67
#define NEW(cname,...)
Definition: oo.qh:105

Variable Documentation

◆ OFFHAND_HOOK

OffhandHook OFFHAND_HOOK

Definition at line 67 of file hook.qh.

Referenced by client_hasweapon(), and W_WeaponFrame().