Merge branch 'master' into terencehill/bot_AI_improvements
[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_pickup_anyway = false;
10 float autocvar_g_buffs_pickup_delay = 0.7;
11 bool autocvar_g_buffs_randomize;
12 float autocvar_g_buffs_random_lifetime;
13 bool autocvar_g_buffs_random_location;
14 int autocvar_g_buffs_random_location_attempts;
15 int autocvar_g_buffs_spawn_count;
16 bool autocvar_g_buffs_replace_powerups;
17 float autocvar_g_buffs_cooldown_activate;
18 float autocvar_g_buffs_cooldown_respawn;
19 float autocvar_g_buffs_resistance_blockpercent;
20 float autocvar_g_buffs_medic_survive_chance;
21 float autocvar_g_buffs_medic_survive_health;
22 float autocvar_g_buffs_medic_rot;
23 float autocvar_g_buffs_medic_max;
24 float autocvar_g_buffs_medic_regen;
25 float autocvar_g_buffs_medic_heal_amount = 15;
26 float autocvar_g_buffs_medic_heal_delay = 1;
27 float autocvar_g_buffs_medic_heal_range = 400;
28 float autocvar_g_buffs_vengeance_damage_multiplier;
29 float autocvar_g_buffs_bash_force;
30 float autocvar_g_buffs_bash_force_self;
31 float autocvar_g_buffs_disability_slowtime;
32 float autocvar_g_buffs_disability_speed;
33 float autocvar_g_buffs_disability_rate;
34 float autocvar_g_buffs_disability_weaponspeed;
35 float autocvar_g_buffs_speed_speed;
36 float autocvar_g_buffs_speed_rate;
37 float autocvar_g_buffs_speed_weaponspeed;
38 float autocvar_g_buffs_speed_damage_take;
39 float autocvar_g_buffs_speed_regen;
40 float autocvar_g_buffs_vampire_damage_steal;
41 float autocvar_g_buffs_invisible_alpha;
42 float autocvar_g_buffs_jump_height;
43 float autocvar_g_buffs_inferno_burntime_factor;
44 float autocvar_g_buffs_inferno_burntime_min_time;
45 float autocvar_g_buffs_inferno_burntime_target_damage;
46 float autocvar_g_buffs_inferno_burntime_target_time;
47 float autocvar_g_buffs_inferno_damagemultiplier;
48 float autocvar_g_buffs_swapper_range;
49 float autocvar_g_buffs_magnet_range_item;
50 float autocvar_g_buffs_magnet_range_buff = 200;
51 float autocvar_g_buffs_luck_chance = 0.15;
52 float autocvar_g_buffs_luck_damagemultiplier = 3;
53
54 // ammo
55 .float buff_ammo_prev_infitems;
56 .int buff_ammo_prev_clipload;
57 // invisible
58 .float buff_invisible_prev_alpha;
59 // medic
60 .float buff_medic_healtime;
61 // disability
62 .float buff_disability_time;
63 .float buff_disability_effect_time;
64 // flight
65 .float buff_flight_oldgravity;
66 // common buff variables
67 .float buff_effect_delay;
68
69 // buff definitions
70 .float buff_active;
71 .float buff_activetime;
72 .float buff_activetime_updated;
73 .entity buff_waypoint;
74 .int oldbuffs; // for updating effects
75 .float buff_shield; // delay for players to keep them from spamming buff pickups
76 .entity buff_model; // controls effects (TODO: make csqc)
77
78 const vector BUFF_MIN = ('-16 -16 0');
79 const vector BUFF_MAX = ('16 16 60');
80
81 // client side options
82 .float cvar_cl_buffs_autoreplace;