|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "sv_buffs.qh"#include <common/mapobjects/target/music.qh>#include <common/mutators/mutator/status_effects/_mod.qh>#include <common/gametypes/_mod.qh>#include <server/items/items.qh>#include "buff/_mod.qh"Go to the source code of this file.
Variables | |
| int | buff_seencount |
Definition at line 256 of file sv_buffs.qc.
References cvar(), entity(), IT_UNLIMITED_AMMO, start_items, and strcat().
Referenced by buff_Init(), buff_NewType(), and GiveItems().
Definition at line 400 of file sv_buffs.qc.
References alpha, buff_active, buffdef, EF_FULLBRIGHT, effects, entity(), light_lev, pflags, PFLAGS_FULLDYNAMIC, sin(), team_forced, time, and WaypointSprite_getviewentity().
Referenced by buff_Init().
Definition at line 421 of file sv_buffs.qc.
References buff_waypoint, delete_fn(), entity(), and WaypointSprite_Kill().
Referenced by buff_Init().
Definition at line 103 of file sv_buffs.qc.
References autocvar_g_buffs_effects, entity(), Send_Effect_(), and time.
Definition at line 293 of file sv_buffs.qc.
References entity(), FOREACH, and NULL.
Referenced by buff_Think(), buff_Touch(), buff_Waypoint_visible_for_player(), buffs_BuffModel_Customize(), buffs_BuffModel_Think(), MUTATOR_HOOKFUNCTION(), Obituary(), and target_init_use().
Definition at line 427 of file sv_buffs.qc.
References autocvar_g_buffs_cooldown_activate, autocvar_g_buffs_random_location, autocvar_g_buffs_replace_available, bot_pickup, bot_pickupbasevalue, buff_active, buff_activetime, buff_Available(), buff_Customize(), buff_Delete(), buff_NewType(), buff_Reset(), buff_Respawn(), buff_SetCooldown(), buff_Think(), buff_Touch(), buffdef, buffs_finished, classname, color, count, DPCONTENTS_BODY, DPCONTENTS_SOLID, dphitcontentsmask, EF_FULLBRIGHT, EF_NOSHADOW, EF_STARDUST, effects, entity(), FL_ITEM, flags, g_items, game_starttime, generic_pickupevalfunc(), glowmod, gravity, IL_PUSH(), ITEM_D_MINS, ITEM_L_MAXS, max(), MOVETYPE_NONE, MOVETYPE_TOSS, nextthink, noalign, pflags, PFLAGS_FULLDYNAMIC, scale, set_movetype(), setcefc, setmodel, setthink, settouch, skin, solid, SOLID_TRIGGER, spawnflags, and time.
Referenced by buff_Init_Compat(), buff_SpawnReplacement(), and buffs_DelayedInit().
Definition at line 492 of file sv_buffs.qc.
References buff_Init(), entity(), NUM_TEAM_1, NUM_TEAM_2, and teamplay.
Definition at line 269 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 284 of file sv_buffs.qc.
References entity(), and FOREACH.
Referenced by buff_Touch(), GiveBuff(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and target_init_use().
Definition at line 387 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(), entity(), NULL, owner, spawnflags, and teamplay.
Referenced by buff_Init().
Definition at line 153 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(), game_stopped, lifetime, makevectors, maxs, mins, MOVE_NOMONSTERS, MoveToRandomMapLocation(), MOVETYPE_TOSS, origin, Q3SURFACEFLAG_SKY, randomvec(), SelectSpawnPoint(), Send_Effect(), set_movetype(), sound, time, trace_endpos, vector, velocity, VOL_BASE, and WaypointSprite_Ping().
Referenced by buff_Init(), buff_Reset(), buff_Think(), and buff_Touch().
Definition at line 140 of file sv_buffs.qc.
References buff_active, buff_activetime, buff_waypoint, buff_Waypoint_Spawn(), entity(), max(), time, and WaypointSprite_UpdateBuildFinished().
Referenced by buff_Init(), buff_Reset(), and buff_Think().
Definition at line 507 of file sv_buffs.qc.
References buff_Init(), entity(), and ITEM_SHOULD_KEEP_POSITION.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 303 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_NewType(), buff_Respawn(), buff_SetCooldown(), buff_waypoint, buff_Waypoint_Spawn(), buffdef, CENTER_OR_VIEWOFS, CH_TRIGGER, color, entity(), frametime, game_starttime, game_stopped, glowmod, IS_DEAD, ITEM_D_MINS, ITEM_L_MAXS, lifetime, max(), nextthink, NULL, oldbuffs, owner, round_handler_IsActive, round_handler_IsRoundStarted, Send_Effect(), setmodel, skin, sound, spawnflags, STAT, team_forced, teamplay, time, VOL_BASE, WaypointSprite_Kill(), and WaypointSprite_UpdateBuildFinished().
Referenced by buff_Init().
Definition at line 189 of file sv_buffs.qc.
References ATTN_NORM, buff_active, buff_FirstFromFlags(), buff_RemoveAll(), buff_Respawn(), buffdef, buffs_finished, CENTER_OR_VIEWOFS, CH_TRIGGER, CS_CVAR, entity(), game_stopped, IS_INDEPENDENT_PLAYER, IS_PLAYER, ITEM_TOUCH_NEEDKILL, lifetime, M_ARGV, MUTATOR_CALLHOOK, owner, Send_Effect(), Send_Notification(), sound, STAT, STATUSEFFECT_REMOVE_NORMAL, StatusEffects_apply(), team_forced, time, toucher, and VOL_BASE.
Referenced by buff_Init().
Definition at line 379 of file sv_buffs.qc.
References buff_activetime, buff_waypoint, buff_Waypoint_Spawn(), entity(), and WaypointSprite_Kill().
Referenced by buff_Reset().
Definition at line 128 of file sv_buffs.qc.
References autocvar_g_buffs_waypoint_distance, buff_waypoint, buff_Waypoint_visible_for_player(), entity(), NULL, WaypointSprite_Spawn(), and WaypointSprite_UpdateTeamRadar().
Referenced by buff_SetCooldown(), buff_Think(), and buff_Waypoint_Reset().
Definition at line 116 of file sv_buffs.qc.
References buff_FirstFromFlags(), CS_CVAR, entity(), owner, and WaypointSprite_visible_for_player().
Referenced by buff_Waypoint_Spawn().
Definition at line 10 of file sv_buffs.qc.
References alpha, buff_FirstFromFlags(), DIFF_TEAM, EF_FULLBRIGHT, EF_LOWPRECISION, effects, entity(), MUTATOR_CALLHOOK, owner, and WaypointSprite_getviewentity().
Referenced by buffs_BuffModel_Spawn().
Definition at line 70 of file sv_buffs.qc.
References entity(), and NULL.
Referenced by buffs_RemovePlayer().
Definition at line 77 of file sv_buffs.qc.
References buff_model, buffs_BuffModel_Customize(), buffs_BuffModel_Think(), entity(), PFLAGS_FULLDYNAMIC, setcefc, setmodel, setthink, and time.
Referenced by buffs_BuffModel_Update().
Definition at line 39 of file sv_buffs.qc.
References alpha, buff_FirstFromFlags(), color, EF_LOWPRECISION, EF_NODRAW, effects, EFMASK_CHEAP, entity(), glowmod, nextthink, NULL, owner, skin, and time.
Referenced by buffs_BuffModel_Spawn().
Definition at line 94 of file sv_buffs.qc.
References alpha, buff_model, buffs_BuffModel_Spawn(), and entity().
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 703 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 716 of file sv_buffs.qc.
References autocvar_g_buffs_spawn_count, buffs_DelayedInit(), InitializeEntity(), INITPRIO_FINDTARGET, and NULL.
Referenced by REGISTER_MUTATOR().
Definition at line 635 of file sv_buffs.qc.
References buffs_BuffModel_Remove(), and entity().
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| MUTATOR_HOOKFUNCTION | ( | buffs | , |
| BuildMutatorsPrettyString | ) |
| MUTATOR_HOOKFUNCTION | ( | buffs | , |
| BuildMutatorsString | ) |
| MUTATOR_HOOKFUNCTION | ( | buffs | , |
| ClientDisconnect | ) |
Definition at line 645 of file sv_buffs.qc.
References buffs_RemovePlayer(), ClientDisconnect, entity(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | buffs | , |
| Damage_Calculate | ) |
Definition at line 544 of file sv_buffs.qc.
References buff_Bash_AttackerCalculateForce(), buff_Bash_TargetCalculateForce(), buff_Disability_ApplyStunned(), buff_Inferno_CalculateDamage(), buff_Inferno_CalculateTime(), buff_Jump_ChangeDamage(), buff_Luck_CalculateDamage(), buff_Medic_CalculateSurviveDamage(), buff_Resistance_CalculateDamage(), buff_Vengeance_CalculateDamage(), buff_Vengeance_DelayedDamage(), entity(), Fire_AddDamage(), frag_damage, frag_force, frag_target, GetResource(), ITEM_DAMAGE_NEEDKILL, M_ARGV, new_pure, setthink, StatusEffects_active(), time, and vector.
| MUTATOR_HOOKFUNCTION | ( | buffs | , |
| FilterItem | ) |
Definition at line 651 of file sv_buffs.qc.
References autocvar_g_buffs_replace_powerups, buff_SpawnReplacement(), entity(), M_ARGV, and spawn.
| MUTATOR_HOOKFUNCTION | ( | buffs | , |
| MakePlayerObserver | ) |
Definition at line 640 of file sv_buffs.qc.
References buffs_RemovePlayer(), entity(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | buffs | , |
| PlayerPreThink | ) |
Definition at line 668 of file sv_buffs.qc.
References buffs_BuffModel_Update(), entity(), game_stopped, IS_DEAD, IS_PLAYER, M_ARGV, PHYS_INPUT_BUTTON_CROUCH, PlayerPreThink, and StatusEffects_active().
| MUTATOR_HOOKFUNCTION | ( | buffs | , |
| PlayerUseKey | , | ||
| CBC_ORDER_FIRST | ) |
Definition at line 613 of file sv_buffs.qc.
References ATTN_NORM, autocvar_g_buffs_drop, autocvar_g_buffs_pickup_delay, buff_FirstFromFlags(), buff_RemoveAll(), CBC_ORDER_FIRST, CH_TRIGGER, entity(), game_stopped, IS_INDEPENDENT_PLAYER, M_ARGV, max(), MUTATOR_RETURNVALUE, PlayerUseKey(), Send_Notification(), sound, STATUSEFFECT_REMOVE_NORMAL, time, and VOL_BASE.
| int buff_seencount |
Definition at line 267 of file sv_buffs.qc.