Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
crylink.qh
Go to the documentation of this file.
1#pragma once
2
3#ifdef GAMEQC
4MODEL(CRYLINK_VIEW, W_Model("h_crylink.iqm"));
5MODEL(CRYLINK_WORLD, W_Model("v_crylink.md3"));
6MODEL(CRYLINK_ITEM, W_Model("g_crylink.md3"));
7
8SOUND(CRYLINK_FIRE2, W_Sound("crylink_fire2"));
9SOUND(CRYLINK_FIRE, W_Sound("crylink_fire"));
10SOUND(CRYLINK_IMPACT2, W_Sound("crylink_impact2"));
11SOUND(CRYLINK_IMPACT, W_Sound("crylink_impact"));
12SOUND(CRYLINK_LINKJOIN, W_Sound("crylink_linkjoin"));
13#endif
14
16/* spawnfunc */ ATTRIB(Crylink, m_canonical_spawnfunc, string, "weapon_crylink");
17/* ammotype */ ATTRIB(Crylink, ammo_type, Resource, RES_CELLS);
18/* impulse */ ATTRIB(Crylink, impulse, int, 6);
20/* rating */ ATTRIB(Crylink, bot_pickupbasevalue, float, 6000);
21/* color */ ATTRIB(Crylink, m_color, vector, '0.918 0.435 0.976');
22/* modelname */ ATTRIB(Crylink, mdl, string, "crylink");
23#ifdef GAMEQC
24/* model */ ATTRIB(Crylink, m_model, Model, MDL_CRYLINK_ITEM);
25/* flash mdl */ ATTRIB(Crylink, m_muzzlemodel, Model, MDL_Null);
26/* flash eff */ ATTRIB(Crylink, m_muzzleeffect, entity, EFFECT_CRYLINK_MUZZLEFLASH);
27#endif
28/* crosshair */ ATTRIB(Crylink, w_crosshair, string, "gfx/crosshaircrylink");
29/* crosshair */ ATTRIB(Crylink, w_crosshair_size, float, 0.5);
30/* wepimg */ ATTRIB(Crylink, model2, string, "weaponcrylink");
31/* refname */ ATTRIB(Crylink, netname, string, "crylink");
32/* wepname */ ATTRIB(Crylink, m_name, string, _("Crylink"));
33
34#define X(BEGIN, P, END, class, prefix) \
35 BEGIN(class) \
36 P(class, prefix, ammo, float, BOTH) \
37 P(class, prefix, animtime, float, BOTH) \
38 P(class, prefix, bouncedamagefactor, float, BOTH) \
39 P(class, prefix, bounces, float, BOTH) \
40 P(class, prefix, damage, float, BOTH) \
41 P(class, prefix, edgedamage, float, BOTH) \
42 P(class, prefix, force, float, BOTH) \
43 P(class, prefix, joindelay, float, BOTH) \
44 P(class, prefix, joinexplode, float, BOTH) \
45 P(class, prefix, joinexplode_damage, float, BOTH) \
46 P(class, prefix, joinexplode_edgedamage, float, BOTH) \
47 P(class, prefix, joinexplode_force, float, BOTH) \
48 P(class, prefix, joinexplode_radius, float, BOTH) \
49 P(class, prefix, joinspread, float, BOTH) \
50 P(class, prefix, linkexplode, float, BOTH) \
51 P(class, prefix, middle_fadetime, float, BOTH) \
52 P(class, prefix, middle_lifetime, float, BOTH) \
53 P(class, prefix, other_fadetime, float, BOTH) \
54 P(class, prefix, other_lifetime, float, BOTH) \
55 P(class, prefix, pickup_ammo, float, NONE) \
56 P(class, prefix, radius, float, BOTH) \
57 P(class, prefix, refire, float, BOTH) \
58 P(class, prefix, reload_ammo, float, NONE) \
59 P(class, prefix, reload_time, float, NONE) \
60 P(class, prefix, secondary, float, NONE) \
61 P(class, prefix, shots, float, BOTH) \
62 P(class, prefix, speed, float, BOTH) \
63 P(class, prefix, spreadtype, float, SEC) \
64 P(class, prefix, spread, float, BOTH) \
65 P(class, prefix, switchdelay_drop, float, NONE) \
66 P(class, prefix, switchdelay_raise, float, NONE) \
67 P(class, prefix, weaponreplace, string, NONE) \
68 P(class, prefix, weaponstartoverride, float, NONE) \
69 P(class, prefix, weaponstart, float, NONE) \
70 P(class, prefix, weaponthrowable, float, NONE) \
71 END()
72 W_PROPS(X, Crylink, crylink)
73#undef X
74
77
78SPAWNFUNC_WEAPON(weapon_crylink, WEP_CRYLINK)
79
80#ifdef SVQC
81.float gravity;
84
85.entity crylink_owner; // we can't use realowner, as that's subject to change
86
87.entity queuenext;
88.entity queueprev;
89
91#endif
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
Definition model.qh:3
fields which are explicitly/manually set are marked with "M", fields set automatically are marked wit...
Definition weapon.qh:44
ATTRIB(Weapon, m_canonical_spawnfunc, string)
the canonical spawnfunc name
float gravity
Definition items.qh:17
#define X()
string W_Model(string w_mdl)
Definition all.qc:232
#define MODEL(name, path)
Definition all.qh:8
#define NEW(cname,...)
Definition oo.qh:117
#define CLASS(...)
Definition oo.qh:145
#define ENDCLASS(cname)
Definition oo.qh:281
#define ATTRIB(...)
Definition oo.qh:148
vector
Definition self.qh:92
string W_Sound(string w_snd)
Definition all.qc:225
#define SOUND(name, path)
Definition all.qh:30
#define W_PROPS(L, class, prefix)
Definition all.qh:179
#define REGISTER_WEAPON(id, inst)
Definition all.qh:136
const int WEP_FLAG_CANCLIMB
Definition weapon.qh:214
const int WEP_FLAG_RELOADABLE
Definition weapon.qh:217
const int WEP_TYPE_SPLASH
Definition weapon.qh:212
#define SPAWNFUNC_WEAPON(name, weapon)
Definition weapon.qh:150
const int WEP_FLAG_NORMAL
Definition weapon.qh:215