Xonotic
okrpc.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <common/weapons/all.qh>
4 
6 /* spawnfunc */ ATTRIB(OverkillRocketPropelledChainsaw, m_canonical_spawnfunc, string, "weapon_okrpc");
7 /* ammotype */ ATTRIB(OverkillRocketPropelledChainsaw, ammo_type, Resource, RES_ROCKETS);
8 /* impulse */ ATTRIB(OverkillRocketPropelledChainsaw, impulse, int, 9);
10 /* rating */ ATTRIB(OverkillRocketPropelledChainsaw, bot_pickupbasevalue, float, 10000);
11 /* color */ ATTRIB(OverkillRocketPropelledChainsaw, wpcolor, vector, '0.5 0.5 0');
12 /* modelname */ ATTRIB(OverkillRocketPropelledChainsaw, mdl, string, "ok_rl");
13 #ifdef GAMEQC
14 /* model */ ATTRIB(OverkillRocketPropelledChainsaw, m_model, Model, MDL_RPC_ITEM);
15 /* flash mdl */ ATTRIB(OverkillRocketPropelledChainsaw, m_muzzlemodel, Model, MDL_RPC_MUZZLEFLASH);
16 /* flash eff */ ATTRIB(OverkillRocketPropelledChainsaw, m_muzzleeffect, entity, EFFECT_ROCKET_MUZZLEFLASH);
17 #endif
18 /* crosshair */ ATTRIB(OverkillRocketPropelledChainsaw, w_crosshair, string, "gfx/crosshairrocketlauncher");
19 /* crosshair */ ATTRIB(OverkillRocketPropelledChainsaw, w_crosshair_size, float, 0.6);
20 /* wepimg */ ATTRIB(OverkillRocketPropelledChainsaw, model2, string, "weaponrpc");
21 /* refname */ ATTRIB(OverkillRocketPropelledChainsaw, netname, string, "okrpc");
22 /* wepname */ ATTRIB(OverkillRocketPropelledChainsaw, m_name, string, _("Overkill Rocket Propelled Chainsaw"));
23 
24 #define X(BEGIN, P, END, class, prefix) \
25  BEGIN(class) \
26  P(class, prefix, ammo, float, PRI) \
27  P(class, prefix, animtime, float, PRI) \
28  P(class, prefix, damage, float, PRI) \
29  P(class, prefix, damage2, float, PRI) \
30  P(class, prefix, damageforcescale, float, PRI) \
31  P(class, prefix, edgedamage, float, PRI) \
32  P(class, prefix, force, float, PRI) \
33  P(class, prefix, health, float, PRI) \
34  P(class, prefix, lifetime, float, PRI) \
35  P(class, prefix, radius, float, PRI) \
36  P(class, prefix, refire, float, PRI) \
37  P(class, prefix, speedaccel, float, PRI) \
38  P(class, prefix, speed, float, PRI) \
39  P(class, prefix, ammo, float, SEC) \
40  P(class, prefix, animtime, float, SEC) \
41  P(class, prefix, damage, float, SEC) \
42  P(class, prefix, delay, float, SEC) \
43  P(class, prefix, edgedamage, float, SEC) \
44  P(class, prefix, force, float, SEC) \
45  P(class, prefix, force_zscale, float, SEC) \
46  P(class, prefix, lifetime, float, SEC) \
47  P(class, prefix, radius, float, SEC) \
48  P(class, prefix, refire, float, SEC) \
49  P(class, prefix, refire_type, float, SEC) \
50  P(class, prefix, shotangle, float, SEC) \
51  P(class, prefix, speed, float, SEC) \
52  P(class, prefix, spread, float, SEC) \
53  P(class, prefix, reload_ammo, float, NONE) \
54  P(class, prefix, reload_time, float, NONE) \
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()
62  W_PROPS(X, OverkillRocketPropelledChainsaw, okrpc)
63 #undef X
64 
65 ENDCLASS(OverkillRocketPropelledChainsaw)
66 REGISTER_WEAPON(OVERKILL_RPC, okrpc, NEW(OverkillRocketPropelledChainsaw));
67 
68 //SPAWNFUNC_WEAPON(weapon_okrpc, WEP_OVERKILL_RPC)
69 //SPAWNFUNC_WEAPON(weapon_rpc, WEP_OVERKILL_RPC)
const int WEP_FLAG_RELOADABLE
Definition: weapon.qh:201
#define NEW(cname,...)
Definition: oo.qh:105
CLASS(Object) Object
Definition: oo.qh:318
entity() spawn
string netname
Definition: powerups.qc:20
float bot_pickupbasevalue
Definition: bot.qh:66
const int WEP_FLAG_HIDDEN
Definition: weapon.qh:200
const int WEP_TYPE_SPLASH
Definition: weapon.qh:196
float impulse
Definition: progsdefs.qc:158
float spawnflags
Definition: progsdefs.qc:191
#define ATTRIB(...)
Definition: oo.qh:136
#define X(BEGIN, P, END, class, prefix)
Definition: okrpc.qh:24
REGISTER_WEAPON(OVERKILL_RPC, okrpc, NEW(OverkillRocketPropelledChainsaw))
Definition: model.qh:3
vector(float skel, float bonenum) _skel_get_boneabs_hidden
const int WEP_FLAG_CANCLIMB
Definition: weapon.qh:198
#define ENDCLASS(cname)
Definition: oo.qh:269
const int WEP_FLAG_MUTATORBLOCKED
Definition: weapon.qh:203
fields which are explicitly/manually set are marked with "M", fields set automatically are marked wit...
Definition: weapon.qh:41
#define W_PROPS(L, class, prefix)
Definition: all.qh:163
const int WEP_FLAG_SUPERWEAPON
Definition: weapon.qh:202
string m_name
Definition: scores.qh:135