Also update racer cannon cost
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / vehicles / vehicle / racer_weapon.qh
1 #pragma once
2
3 #include <common/weapons/_all.qh>
4
5 CLASS(RacerAttack, PortoLaunch)
6 /* flags     */ ATTRIB(RacerAttack, spawnflags, int, WEP_TYPE_OTHER | WEP_FLAG_HIDDEN | WEP_FLAG_MUTATORBLOCKED);
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 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