Xonotic
|
#include "sv_buffs.qh"
#include <common/mapobjects/target/music.qh>
#include <common/mutators/mutator/powerups/_mod.qh>
#include <common/gamemodes/_mod.qh>
#include <server/items/items.qh>
Go to the source code of this file.
Variables | |
int | buff_seencount |
Definition at line 257 of file sv_buffs.qc.
References cvar(), start_items, and strcat().
Referenced by buff_Init(), buff_NewType(), and GiveItems().
Definition at line 399 of file sv_buffs.qc.
References alpha, buff_active, EF_FULLBRIGHT, effects, entity(), light_lev, pflags, PFLAGS_FULLDYNAMIC, sin(), team_forced, and time.
Referenced by buff_Init().
Definition at line 418 of file sv_buffs.qc.
References buff_waypoint, and delete_fn().
Referenced by buff_Init().
Definition at line 296 of file sv_buffs.qc.
Referenced by buff_Think(), buff_Touch(), buff_Waypoint_visible_for_player(), buffs_BuffModel_Customize(), buffs_BuffModel_Think(), MUTATOR_HOOKFUNCTION(), Obituary(), and target_init_use().
float buff_Inferno_CalculateTime | ( | float | damg, |
float | offset_x, | ||
float | offset_y, | ||
float | intersect_x, | ||
float | intersect_y, | ||
float | base | ||
) |
Definition at line 507 of file sv_buffs.qc.
References ATTN_NORM, autocvar_g_buffs_pickup_delay, BITSET, buff_ammo_prev_clipload, CH_TRIGGER, clip_load, EF_NOSHADOW, entity(), g_items, IL_EACH, IS_INDEPENDENT_PLAYER, IS_PLAYER, logn(), m_id, max(), MAX_WEAPONSLOTS, METHOD, sound, STATUSEFFECT_FLAG_ACTIVE, STATUSEFFECT_REMOVE_NORMAL, STATUSEFFECT_REMOVE_TIMEOUT, SUPER, time, vector(), VOL_BASE, weapon_load, and weaponentities.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 424 of file sv_buffs.qc.
References autocvar_g_buffs_cooldown_activate, bot_pickup, bot_pickupbasevalue, buff_active, buff_activetime, buff_Available(), buff_Customize(), buff_Delete(), BUFF_MAX, BUFF_MIN, buff_NewType(), buff_Reset(), buff_Respawn(), buff_SetCooldown(), buff_Think(), buff_Touch(), classname, color, count, cvar(), DPCONTENTS_BODY, DPCONTENTS_SOLID, dphitcontentsmask, EF_FULLBRIGHT, EF_NOSHADOW, EF_STARDUST, effects, entity(), FL_ITEM, flags, g_items, generic_pickupevalfunc(), glowmod, gravity, IL_PUSH(), max(), MOVETYPE_NONE, MOVETYPE_TOSS, nextthink, noalign, pflags, PFLAGS_FULLDYNAMIC, scale, set_movetype(), setmodel, setthink, skin, solid, SOLID_TRIGGER, spawnflags, and time.
Referenced by buff_Init_Compat(), buff_SpawnReplacement(), buffs_DelayedInit(), and STATIC_INIT().
Definition at line 474 of file sv_buffs.qc.
References buff_Init(), NUM_TEAM_1, NUM_TEAM_2, and teamplay.
Referenced by STATIC_INIT().
Definition at line 270 of file sv_buffs.qc.
References buff_Available(), entity(), FOREACH, max(), RandomSelection_AddEnt, RandomSelection_chosen_ent, and RandomSelection_Init().
Referenced by buff_Init(), buff_Reset(), and buff_Think().
Definition at line 286 of file sv_buffs.qc.
References FOREACH.
Referenced by buff_Touch(), GiveBuff(), MUTATOR_HOOKFUNCTION(), and target_init_use().
Definition at line 386 of file sv_buffs.qc.
References autocvar_g_buffs_cooldown_activate, autocvar_g_buffs_random_location, autocvar_g_buffs_randomize, autocvar_g_buffs_randomize_teamplay, buff_activetime_updated, buff_NewType(), buff_Respawn(), buff_SetCooldown(), buff_Waypoint_Reset(), NULL, owner, spawnflags, and teamplay.
Referenced by buff_Init().
Definition at line 152 of file sv_buffs.qc.
References angles, ATTEN_NONE, autocvar_g_buffs_random_lifetime, autocvar_g_buffs_random_location_attempts, buff_waypoint, CENTER_OR_VIEWOFS, CH_TRIGGER, DPCONTENTS_BODY, DPCONTENTS_CORPSE, DPCONTENTS_DONOTENTER, DPCONTENTS_LAVA, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SKY, DPCONTENTS_SLIME, DPCONTENTS_SOLID, entity(), lifetime, makevectors, maxs, mins, MOVE_NOMONSTERS, MoveToRandomMapLocation(), MOVETYPE_TOSS, origin, Q3SURFACEFLAG_SKY, randomvec(), SelectSpawnPoint(), set_movetype(), setorigin(), sound, time, trace_endpos, vector(), velocity, and VOL_BASE.
Referenced by buff_Init(), buff_Reset(), buff_Think(), and buff_Touch().
Definition at line 138 of file sv_buffs.qc.
References buff_active, buff_activetime, buff_waypoint, buff_Waypoint_Spawn(), max(), and time.
Referenced by buff_Init(), buff_Reset(), and buff_Think().
Definition at line 489 of file sv_buffs.qc.
References buff_Init(), Item_ShouldKeepPosition(), and setorigin().
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 304 of file sv_buffs.qc.
References ATTN_NORM, autocvar_g_buffs_cooldown_respawn, autocvar_g_buffs_pickup_anyway, autocvar_g_buffs_random_location, autocvar_g_buffs_randomize, autocvar_g_buffs_randomize_teamplay, autocvar_g_buffs_waypoint_distance, buff_active, buff_activetime, buff_activetime_updated, buff_FirstFromFlags(), BUFF_MAX, BUFF_MIN, buff_NewType(), buff_Respawn(), buff_SetCooldown(), buff_waypoint, buff_Waypoint_Spawn(), CENTER_OR_VIEWOFS, CH_TRIGGER, color, entity(), frametime, glowmod, IS_DEAD, lifetime, max(), nextthink, NULL, oldbuffs, owner, round_handler_IsActive, round_handler_IsRoundStarted, setmodel, skin, sound, spawnflags, team_forced, teamplay, time, and VOL_BASE.
Referenced by buff_Init().
Definition at line 187 of file sv_buffs.qc.
References ATTN_NORM, buff_active, buff_FirstFromFlags(), buff_RemoveAll(), buff_Respawn(), CENTER_OR_VIEWOFS, CH_TRIGGER, CS_CVAR, entity(), IS_INDEPENDENT_PLAYER, IS_PLAYER, ITEM_TOUCH_NEEDKILL, lifetime, M_ARGV, max(), min(), MUTATOR_CALLHOOK, owner, sound, STATUSEFFECT_REMOVE_NORMAL, team_forced, time, and VOL_BASE.
Referenced by buff_Init().
Definition at line 498 of file sv_buffs.qc.
References Damage(), dmg, DMG_NOWEP, enemy, and owner.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 379 of file sv_buffs.qc.
References buff_activetime, buff_waypoint, and buff_Waypoint_Spawn().
Referenced by buff_Reset().
Definition at line 127 of file sv_buffs.qc.
References autocvar_g_buffs_waypoint_distance, buff_waypoint, buff_Waypoint_visible_for_player(), entity(), and NULL.
Referenced by buff_SetCooldown(), buff_Think(), and buff_Waypoint_Reset().
Definition at line 113 of file sv_buffs.qc.
References buff_FirstFromFlags(), CS_CVAR, entity(), and owner.
Referenced by buff_Waypoint_Spawn().
Definition at line 8 of file sv_buffs.qc.
References alpha, buff_FirstFromFlags(), DIFF_TEAM, EF_FULLBRIGHT, EF_LOWPRECISION, effects, entity(), MUTATOR_CALLHOOK, and owner.
Referenced by buffs_BuffModel_Spawn().
Definition at line 68 of file sv_buffs.qc.
References NULL.
Referenced by buffs_RemovePlayer().
Definition at line 75 of file sv_buffs.qc.
References buff_model, buffs_BuffModel_Customize(), buffs_BuffModel_Think(), PFLAGS_FULLDYNAMIC, setmodel, setorigin(), setthink, and time.
Referenced by buffs_BuffModel_Update().
Definition at line 37 of file sv_buffs.qc.
References alpha, buff_FirstFromFlags(), color, EF_LOWPRECISION, EF_NODRAW, effects, entity(), glowmod, nextthink, NULL, owner, skin, and time.
Referenced by buffs_BuffModel_Spawn().
Definition at line 92 of file sv_buffs.qc.
References alpha, buff_model, and buffs_BuffModel_Spawn().
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 984 of file sv_buffs.qc.
References autocvar_g_buffs_spawn_count, buff_Init(), classname, entity(), find(), NULL, randomvec(), and spawn().
Referenced by buffs_Initialize().
void buffs_Initialize | ( | ) |
Definition at line 1000 of file sv_buffs.qc.
References autocvar_g_buffs_spawn_count, buffs_DelayedInit(), InitializeEntity(), and NULL.
Referenced by REGISTER_MUTATOR().
Definition at line 890 of file sv_buffs.qc.
References buffs_BuffModel_Remove().
Referenced by MUTATOR_HOOKFUNCTION().
MUTATOR_HOOKFUNCTION | ( | buffs | , |
Damage_Calculate | |||
) |
Definition at line 656 of file sv_buffs.qc.
References autocvar_g_buffs_bash_force, autocvar_g_buffs_bash_force_self, autocvar_g_buffs_disability_slowtime, autocvar_g_buffs_inferno_burntime_factor, autocvar_g_buffs_inferno_burntime_min_time, autocvar_g_buffs_inferno_burntime_target_damage, autocvar_g_buffs_inferno_burntime_target_time, autocvar_g_buffs_inferno_damagemultiplier, autocvar_g_buffs_luck_chance, autocvar_g_buffs_luck_damagemultiplier, autocvar_g_buffs_medic_survive_chance, autocvar_g_buffs_medic_survive_health, autocvar_g_buffs_resistance_blockpercent, autocvar_g_buffs_vengeance_damage_multiplier, bound(), buff_Inferno_CalculateTime(), buff_Vengeance_DelayedDamage(), entity(), Fire_AddDamage(), GetResource(), ITEM_DAMAGE_NEEDKILL, M_ARGV, max(), new_pure, random(), RES_HEALTH, setthink, time, and vector().
MUTATOR_HOOKFUNCTION | ( | buffs | , |
PlayerDamage_SplitHealthArmor | |||
) |
Definition at line 745 of file sv_buffs.qc.
References autocvar_g_buffs_vampire_damage_steal, bound(), entity(), GetResource(), GiveResource(), IS_DEAD, IS_PLAYER, M_ARGV, and RES_HEALTH.
MUTATOR_HOOKFUNCTION | ( | buffs | , |
PlayerPhysics_UpdateStats | |||
) |
Definition at line 761 of file sv_buffs.qc.
References autocvar_g_buffs_disability_speed, entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | buffs | , |
PlayerPhysics | |||
) |
Definition at line 770 of file sv_buffs.qc.
References autocvar_g_buffs_jump_height, entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | buffs | , |
MonsterMove | |||
) |
Definition at line 779 of file sv_buffs.qc.
References autocvar_g_buffs_disability_speed, entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | buffs | , |
PlayerUseKey | , | ||
CBC_ORDER_FIRST | |||
) |
Definition at line 790 of file sv_buffs.qc.
References ATTN_NORM, autocvar_g_buffs_drop, autocvar_g_buffs_pickup_delay, buff_FirstFromFlags(), buff_RemoveAll(), CH_TRIGGER, entity(), IS_INDEPENDENT_PLAYER, M_ARGV, max(), MUTATOR_RETURNVALUE, sound, STATUSEFFECT_REMOVE_NORMAL, time, and VOL_BASE.
MUTATOR_HOOKFUNCTION | ( | buffs | , |
ForbidThrowCurrentWeapon | |||
) |
Definition at line 811 of file sv_buffs.qc.
References ATTEN_NORM, autocvar_g_buffs_swapper_range, autocvar_g_maxpushtime, bot_aim_reset(), buff_RemoveAll(), CH_TRIGGER, DIFF_TEAM, Drop_Special_Items(), entity(), FOREACH_CLIENT, IS_BOT_CLIENT, IS_DEAD, IS_PLAYER, M_ARGV, MUTATOR_CALLHOOK, MUTATOR_RETURNVALUE, NULL, PHYS_INPUT_BUTTON_CHAT, setorigin(), sound, sqrt(), STATUSEFFECT_REMOVE_NORMAL, time, vector(), vlen2, and VOL_BASE.
MUTATOR_HOOKFUNCTION | ( | buffs | , |
MakePlayerObserver | |||
) |
Definition at line 896 of file sv_buffs.qc.
References buffs_RemovePlayer(), entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | buffs | , |
ClientDisconnect | |||
) |
Definition at line 897 of file sv_buffs.qc.
References buffs_RemovePlayer(), entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | buffs | , |
FilterItem | |||
) |
Definition at line 899 of file sv_buffs.qc.
References autocvar_g_buffs_replace_powerups, buff_SpawnReplacement(), entity(), M_ARGV, and spawn().
MUTATOR_HOOKFUNCTION | ( | buffs | , |
WeaponRateFactor | |||
) |
Definition at line 916 of file sv_buffs.qc.
References autocvar_g_buffs_disability_rate, entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | buffs | , |
WeaponSpeedFactor | |||
) |
Definition at line 924 of file sv_buffs.qc.
References autocvar_g_buffs_disability_weaponspeed, entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | buffs | , |
Freeze | |||
) |
Definition at line 932 of file sv_buffs.qc.
References buff_RemoveAll(), entity(), M_ARGV, and STATUSEFFECT_REMOVE_NORMAL.
MUTATOR_HOOKFUNCTION | ( | buffs | , |
PlayerPreThink | |||
) |
Definition at line 938 of file sv_buffs.qc.
References buffs_BuffModel_Update(), entity(), IS_DEAD, IS_PLAYER, M_ARGV, and PHYS_INPUT_BUTTON_CROUCH.
MUTATOR_HOOKFUNCTION | ( | buffs | , |
PlayerRegen | |||
) |
Definition at line 960 of file sv_buffs.qc.
References autocvar_g_buffs_medic_max, autocvar_g_buffs_medic_regen, autocvar_g_buffs_medic_rot, entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | buffs | , |
BuildMutatorsString | |||
) |
Definition at line 972 of file sv_buffs.qc.
References M_ARGV, and strcat().
MUTATOR_HOOKFUNCTION | ( | buffs | , |
BuildMutatorsPrettyString | |||
) |
Definition at line 978 of file sv_buffs.qc.
References M_ARGV, and strcat().
int buff_seencount |
Definition at line 268 of file sv_buffs.qc.