Xonotic
raptor_weapons.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <common/weapons/_all.qh>
4 
7 /* impulse */ ATTRIB(RaptorCannon, impulse, int, 3);
8 /* refname */ ATTRIB(RaptorCannon, netname, string, "raptorcannon");
9 /* wepname */ ATTRIB(RaptorCannon, m_name, string, _("Raptor cannon"));
10 ENDCLASS(RaptorCannon)
11 REGISTER_WEAPON(RAPTOR, NEW(RaptorCannon));
12 
14 /* flags */ ATTRIB(RaptorBomb, spawnflags, int, WEP_FLAG_HIDDEN | WEP_FLAG_SPECIALATTACK);
15 /* impulse */ ATTRIB(RaptorBomb, impulse, int, 3);
16 /* refname */ ATTRIB(RaptorBomb, netname, string, "raptorbomb");
17 /* wepname */ ATTRIB(RaptorBomb, m_name, string, _("Raptor bomb"));
18 ENDCLASS(RaptorBomb)
19 REGISTER_WEAPON(RAPTOR_BOMB, NEW(RaptorBomb));
20 
22 /* flags */ ATTRIB(RaptorFlare, spawnflags, int, WEP_TYPE_OTHER | WEP_FLAG_HIDDEN | WEP_FLAG_SPECIALATTACK);
23 /* impulse */ ATTRIB(RaptorFlare, impulse, int, 3);
24 /* refname */ ATTRIB(RaptorFlare, netname, string, "raptorflare");
25 /* wepname */ ATTRIB(RaptorFlare, m_name, string, _("Raptor flare"));
26 ENDCLASS(RaptorFlare)
27 REGISTER_WEAPON(RAPTOR_FLARE, NEW(RaptorFlare));
28 
29 #ifdef SVQC
30 float autocvar_g_vehicle_raptor_cannon_cost = 1;
31 float autocvar_g_vehicle_raptor_cannon_damage = 10;
32 float autocvar_g_vehicle_raptor_cannon_radius = 60;
33 float autocvar_g_vehicle_raptor_cannon_refire = 0.033333;
34 float autocvar_g_vehicle_raptor_cannon_speed = 24000;
35 float autocvar_g_vehicle_raptor_cannon_spread = 0.01;
36 float autocvar_g_vehicle_raptor_cannon_force = 25;
37 
38 float autocvar_g_vehicle_raptor_bomblets = 8;
39 float autocvar_g_vehicle_raptor_bomblet_alt = 750;
40 float autocvar_g_vehicle_raptor_bomblet_time = 0.5;
41 float autocvar_g_vehicle_raptor_bomblet_damage = 55;
42 float autocvar_g_vehicle_raptor_bomblet_spread = 0.4;
43 float autocvar_g_vehicle_raptor_bomblet_edgedamage = 25;
44 float autocvar_g_vehicle_raptor_bomblet_radius = 350;
45 float autocvar_g_vehicle_raptor_bomblet_force = 150;
46 float autocvar_g_vehicle_raptor_bomblet_explode_delay = 0.4;
47 
48 float autocvar_g_vehicle_raptor_bombs_refire = 5;
49 
50 float autocvar_g_vehicle_raptor_flare_refire = 5;
51 float autocvar_g_vehicle_raptor_flare_lifetime = 10;
52 float autocvar_g_vehicle_raptor_flare_chase = 0.9;
53 float autocvar_g_vehicle_raptor_flare_range = 2000;
54 #endif
55 
56 #ifdef CSQC
57 void RaptorCBShellfragDraw(entity this);
58 void RaptorCBShellfragToss(vector _org, vector _vel, vector _ang);
59 #endif
#define NEW(cname,...)
Definition: oo.qh:105
CLASS(Object) Object
Definition: oo.qh:318
entity() spawn
REGISTER_WEAPON(RAPTOR, NEW(RaptorCannon))
string netname
Definition: powerups.qc:20
const int WEP_FLAG_HIDDEN
Definition: weapon.qh:200
flare(red, "0xff0000", "0xdc7171") flare(blue
float impulse
Definition: progsdefs.qc:158
float spawnflags
Definition: progsdefs.qc:191
#define ATTRIB(...)
Definition: oo.qh:136
const int WEP_TYPE_OTHER
Definition: weapon.qh:195
vector(float skel, float bonenum) _skel_get_boneabs_hidden
const int WEP_FLAG_SPECIALATTACK
Definition: weapon.qh:211
#define ENDCLASS(cname)
Definition: oo.qh:269
Definition: raptor.qh:5
string m_name
Definition: scores.qh:135