Xonotic
sv_buffs.qh
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #include "buffs.qh"
6 
7 void buffs_Initialize();
8 
9 AUTOCVAR(g_buffs, int, -1, "Enable buffs, -1: enabled but no auto location or replacing powerups, 1: enabled and can replace them");
10 
11 REGISTER_MUTATOR(buffs, autocvar_g_buffs)
12 {
14  {
16  }
17 }
18 
30 bool autocvar_g_buffs_drop = false;
58 
59 // ammo
62 // flight
65 // common buff variables
67 
68 // buff definitions
72 .entity buff_waypoint;
73 .entity oldbuffs; // for updating effects
74 .float buff_shield; // delay for players to keep them from spamming buff pickups
75 .entity buff_model; // controls effects (TODO: make csqc)
76 
77 const vector BUFF_MIN = ('-16 -16 0');
78 const vector BUFF_MAX = ('16 16 60');
79 
80 float buff_Available(entity buff);
81 
82 void buff_RemoveAll(entity actor, int removal_type);
83 
float autocvar_g_buffs_medic_survive_health
Definition: sv_buffs.qh:35
float buff_ammo_prev_infitems
Definition: sv_buffs.qh:60
float autocvar_g_buffs_inferno_burntime_factor
Definition: sv_buffs.qh:48
void buffs_Initialize()
Definition: sv_buffs.qc:1000
float autocvar_g_buffs_disability_slowtime
Definition: sv_buffs.qh:42
bool buff_active
Definition: sv_buffs.qh:69
entity buff_waypoint
Definition: sv_buffs.qh:72
float autocvar_g_buffs_inferno_damagemultiplier
Definition: sv_buffs.qh:52
float autocvar_g_buffs_swapper_range
Definition: sv_buffs.qh:53
float autocvar_g_buffs_random_lifetime
Definition: sv_buffs.qh:25
float autocvar_g_buffs_medic_rot
Definition: sv_buffs.qh:36
float buff_shield
Definition: sv_buffs.qh:74
float buff_effect_delay
Definition: sv_buffs.qh:66
float autocvar_g_buffs_waypoint_distance
Definition: sv_buffs.qh:20
bool autocvar_g_buffs_replace_powerups
Definition: sv_buffs.qh:29
bool buff_activetime_updated
Definition: sv_buffs.qh:71
bool autocvar_g_buffs_drop
Definition: sv_buffs.qh:30
int autocvar_g_buffs_spawn_count
Definition: sv_buffs.qh:28
entity() spawn
float autocvar_g_buffs_inferno_burntime_target_time
Definition: sv_buffs.qh:51
const vector BUFF_MIN
Definition: sv_buffs.qh:77
bool autocvar_g_buffs_random_location
Definition: sv_buffs.qh:26
float autocvar_g_buffs_magnet_range_buff
Definition: sv_buffs.qh:55
float autocvar_g_buffs_medic_regen
Definition: sv_buffs.qh:38
bool autocvar_g_buffs_effects
Definition: sv_buffs.qh:19
AUTOCVAR(g_buffs, int, -1, "Enable buffs, -1: enabled but no auto location or replacing powerups, 1: enabled and can replace them")
const vector BUFF_MAX
Definition: sv_buffs.qh:78
float buff_Available(entity buff)
Definition: sv_buffs.qc:257
float autocvar_g_buffs_magnet_range_item
Definition: sv_buffs.qh:54
float autocvar_g_buffs_luck_damagemultiplier
Definition: sv_buffs.qh:57
float autocvar_g_buffs_bash_force
Definition: sv_buffs.qh:40
float autocvar_g_buffs_disability_weaponspeed
Definition: sv_buffs.qh:45
entity buff_model
Definition: sv_buffs.qh:75
float autocvar_g_buffs_medic_survive_chance
Definition: sv_buffs.qh:34
float buff_activetime
Definition: sv_buffs.qh:70
int autocvar_g_buffs_random_location_attempts
Definition: sv_buffs.qh:27
float autocvar_g_buffs_bash_force_self
Definition: sv_buffs.qh:41
void buff_RemoveAll(entity actor, int removal_type)
Definition: sv_buffs.qc:286
float autocvar_g_buffs_medic_max
Definition: sv_buffs.qh:37
float autocvar_g_buffs_vengeance_damage_multiplier
Definition: sv_buffs.qh:39
float autocvar_g_buffs_disability_rate
Definition: sv_buffs.qh:44
float autocvar_g_buffs_pickup_delay
Definition: sv_buffs.qh:22
bool autocvar_g_buffs_randomize
Definition: sv_buffs.qh:23
float autocvar_g_buffs_jump_height
Definition: sv_buffs.qh:47
float autocvar_g_buffs_luck_chance
Definition: sv_buffs.qh:56
float autocvar_g_buffs_disability_speed
Definition: sv_buffs.qh:43
float autocvar_g_buffs_cooldown_activate
Definition: sv_buffs.qh:31
bool autocvar_g_buffs_pickup_anyway
Definition: sv_buffs.qh:21
float buff_flight_oldgravity
Definition: sv_buffs.qh:63
vector(float skel, float bonenum) _skel_get_boneabs_hidden
int buff_ammo_prev_clipload
Definition: sv_buffs.qh:61
bool autocvar_g_buffs_randomize_teamplay
Definition: sv_buffs.qh:24
float autocvar_g_buffs_inferno_burntime_min_time
Definition: sv_buffs.qh:49
float autocvar_g_buffs_resistance_blockpercent
Definition: sv_buffs.qh:33
float autocvar_g_buffs_cooldown_respawn
Definition: sv_buffs.qh:32
bool buff_flight_crouchheld
Definition: sv_buffs.qh:64
#define MUTATOR_ONADD
Definition: base.qh:284
entity buff_FirstFromFlags(entity actor)
Definition: sv_buffs.qc:296
float autocvar_g_buffs_inferno_burntime_target_damage
Definition: sv_buffs.qh:50
float autocvar_g_buffs_vampire_damage_steal
Definition: sv_buffs.qh:46
entity oldbuffs
Definition: sv_buffs.qh:73
REGISTER_MUTATOR(buffs, autocvar_g_buffs)
Definition: sv_buffs.qh:11