Xonotic
racer_weapon.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <common/weapons/_all.qh>
4 
7 /* impulse */ ATTRIB(RacerAttack, impulse, int, 3);
8 /* refname */ ATTRIB(RacerAttack, netname, string, "racercannon");
9 /* wepname */ ATTRIB(RacerAttack, m_name, string, _("Racer cannon"));
10 ENDCLASS(RacerAttack)
11 REGISTER_WEAPON(RACER, NEW(RacerAttack));
12 
13 // TODO: move into implementation
14 #ifdef SVQC
15 void racer_fire_rocket(entity this, entity player, vector org, vector dir, entity trg);
16 #endif
17 
18 #ifdef SVQC
19 float autocvar_g_vehicle_racer_cannon_cost = 1.5;
20 float autocvar_g_vehicle_racer_cannon_damage = 15;
21 float autocvar_g_vehicle_racer_cannon_radius = 100;
22 float autocvar_g_vehicle_racer_cannon_refire = 0.05;
23 float autocvar_g_vehicle_racer_cannon_speed = 15000;
24 float autocvar_g_vehicle_racer_cannon_spread = 0.0125;
25 float autocvar_g_vehicle_racer_cannon_force = 50;
26 
27 float autocvar_g_vehicle_racer_rocket_accel = 1600;
28 float autocvar_g_vehicle_racer_rocket_damage = 100;
29 float autocvar_g_vehicle_racer_rocket_radius = 125;
30 float autocvar_g_vehicle_racer_rocket_force = 350;
31 float autocvar_g_vehicle_racer_rocket_speed = 900;
32 float autocvar_g_vehicle_racer_rocket_turnrate = 0.2;
33 float autocvar_g_vehicle_racer_rocket_refire = 3;
34 
35 float autocvar_g_vehicle_racer_rocket_climbspeed = 1600;
36 float autocvar_g_vehicle_racer_rocket_locked_maxangle = 1.8;
37 #endif
#define NEW(cname,...)
Definition: oo.qh:105
CLASS(Object) Object
Definition: oo.qh:318
entity() spawn
string netname
Definition: powerups.qc:20
const int WEP_FLAG_HIDDEN
Definition: weapon.qh:200
float impulse
Definition: progsdefs.qc:158
float spawnflags
Definition: progsdefs.qc:191
#define ATTRIB(...)
Definition: oo.qh:136
REGISTER_WEAPON(RACER, NEW(RacerAttack))
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
int dir
Definition: impulse.qc:89
Definition: racer.qh:5
string m_name
Definition: scores.qh:135