Stop bunnyhoping when bot slows down for some reason
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / buffs / sv_buffs.qh
1 #pragma once
2
3 #include "buffs.qh"
4
5 #include "../instagib/_mod.qh"
6
7 bool  autocvar_g_buffs_effects;
8 float autocvar_g_buffs_waypoint_distance;
9 bool autocvar_g_buffs_randomize;
10 float autocvar_g_buffs_random_lifetime;
11 bool autocvar_g_buffs_random_location;
12 int autocvar_g_buffs_random_location_attempts;
13 int autocvar_g_buffs_spawn_count;
14 bool autocvar_g_buffs_replace_powerups;
15 float autocvar_g_buffs_cooldown_activate;
16 float autocvar_g_buffs_cooldown_respawn;
17 float autocvar_g_buffs_resistance_blockpercent;
18 float autocvar_g_buffs_medic_survive_chance;
19 float autocvar_g_buffs_medic_survive_health;
20 float autocvar_g_buffs_medic_rot;
21 float autocvar_g_buffs_medic_max;
22 float autocvar_g_buffs_medic_regen;
23 float autocvar_g_buffs_medic_heal_amount = 15;
24 float autocvar_g_buffs_medic_heal_delay = 1;
25 float autocvar_g_buffs_medic_heal_range = 400;
26 float autocvar_g_buffs_vengeance_damage_multiplier;
27 float autocvar_g_buffs_bash_force;
28 float autocvar_g_buffs_bash_force_self;
29 float autocvar_g_buffs_disability_slowtime;
30 float autocvar_g_buffs_disability_speed;
31 float autocvar_g_buffs_disability_rate;
32 float autocvar_g_buffs_disability_weaponspeed;
33 float autocvar_g_buffs_speed_speed;
34 float autocvar_g_buffs_speed_rate;
35 float autocvar_g_buffs_speed_weaponspeed;
36 float autocvar_g_buffs_speed_damage_take;
37 float autocvar_g_buffs_speed_regen;
38 float autocvar_g_buffs_vampire_damage_steal;
39 float autocvar_g_buffs_invisible_alpha;
40 float autocvar_g_buffs_jump_height;
41 float autocvar_g_buffs_inferno_burntime_factor;
42 float autocvar_g_buffs_inferno_burntime_min_time;
43 float autocvar_g_buffs_inferno_burntime_target_damage;
44 float autocvar_g_buffs_inferno_burntime_target_time;
45 float autocvar_g_buffs_inferno_damagemultiplier;
46 float autocvar_g_buffs_swapper_range;
47 float autocvar_g_buffs_magnet_range_item;
48 float autocvar_g_buffs_magnet_range_buff = 200;
49 float autocvar_g_buffs_luck_chance = 0.15;
50 float autocvar_g_buffs_luck_damagemultiplier = 3;
51
52 // ammo
53 .float buff_ammo_prev_infitems;
54 .int buff_ammo_prev_clipload;
55 // invisible
56 .float buff_invisible_prev_alpha;
57 // medic
58 .float buff_medic_healtime;
59 // disability
60 .float buff_disability_time;
61 .float buff_disability_effect_time;
62 // flight
63 .float buff_flight_oldgravity;
64 // common buff variables
65 .float buff_effect_delay;
66
67 // buff definitions
68 .float buff_active;
69 .float buff_activetime;
70 .float buff_activetime_updated;
71 .entity buff_waypoint;
72 .int oldbuffs; // for updating effects
73 .entity buff_model; // controls effects (TODO: make csqc)
74
75 const vector BUFF_MIN = ('-16 -16 0');
76 const vector BUFF_MAX = ('16 16 60');
77
78 // client side options
79 .float cvar_cl_buffs_autoreplace;