|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "sv_lms.qh"#include <common/mutators/mutator/instagib/items.qh>#include <server/campaign.qh>#include <server/command/_mod.qh>#include <server/world.qh>#include <server/items/items.qh>Go to the source code of this file.
| void ClearWinners | ( | ) |
Definition at line 1534 of file world.qc.
Referenced by CheckRules_World(), WinningCondition_LMS(), WinningCondition_RanOutOfSpawns(), and WinningCondition_Scores().
Definition at line 254 of file sv_lms.qc.
References entity(), game_starttime, GameRules_scoring_add, INGAME, INGAME_STATUS_JOINED, INGAME_STATUS_JOINING, INGAME_STATUS_SET, LMS_NewPlayerLives(), Send_Notification(), time, and warmup_stage.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| void lms_Initialize | ( | ) |
Definition at line 738 of file sv_lms.qc.
References lms_lowest_lives.
Referenced by REGISTER_MUTATOR().
| int LMS_NewPlayerLives | ( | ) |
Definition at line 38 of file sv_lms.qc.
References autocvar_fraglimit, autocvar_g_lms_join_anytime, autocvar_g_lms_last_join, bound(), floor(), lms_lowest_lives, and max().
Referenced by lms_AddPlayer(), and WinningCondition_LMS().
Definition at line 341 of file sv_lms.qc.
References autocvar_g_lms_leader_lives_diff, CS(), entity(), FOREACH_CLIENT, FRAGS_PLAYER, FRAGS_PLAYER_OUT_OF_GAME, FRAGS_SPECTATOR, game_starttime, GameRules_scoring_add, GetResource(), INGAME, INGAME_STATUS_CLEAR, IS_DEAD, IS_PLAYER, killcount, last_forfeiter_armorvalue, last_forfeiter_health, last_forfeiter_lives, lms_UpdateLeaders(), min(), NULL, RES_ARMOR, Send_Notification(), start_armorvalue, start_health, time, TRANSMUTE, and warmup_stage.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 659 of file sv_lms.qc.
References entity(), Item_CopyFields(), and StartItem().
Referenced by MUTATOR_HOOKFUNCTION().
| void lms_UpdateLeaders | ( | ) |
Definition at line 171 of file sv_lms.qc.
References autocvar_g_lms_leader_lives_diff, autocvar_g_lms_leader_minpercent, FOREACH_CLIENT, FRAGS_PLAYER_OUT_OF_GAME, IS_PLAYER, and lms_leaders_lives_diff.
Referenced by lms_RemovePlayer(), and MUTATOR_HOOKFUNCTION().
Definition at line 158 of file sv_lms.qc.
References entity(), IS_SPEC, and lms_visible_leaders.
Referenced by MUTATOR_HOOKFUNCTION().
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| AddPlayerScore | ) |
Definition at line 731 of file sv_lms.qc.
References entity(), game_stopped, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| Bot_FixCount | , | ||
| CBC_ORDER_EXCLUSIVE | ) |
Definition at line 699 of file sv_lms.qc.
References CBC_ORDER_EXCLUSIVE, FOREACH_CLIENT, INGAME, IS_REAL_CLIENT, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| CalculateRespawnTime | ) |
Definition at line 565 of file sv_lms.qc.
References autocvar_g_lms_dynamic_respawn_delay, autocvar_g_lms_dynamic_respawn_delay_base, autocvar_g_lms_dynamic_respawn_delay_increase, autocvar_g_lms_dynamic_respawn_delay_max, entity(), FOREACH_CLIENT, FRAGS_PLAYER_OUT_OF_GAME, GameRules_scoring_add, IS_PLAYER, M_ARGV, max(), min(), RESPAWN_FORCE, RESPAWN_SILENT, and time.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| CheckRules_World | ) |
Definition at line 719 of file sv_lms.qc.
References CheckRules_World(), M_ARGV, and WinningCondition_LMS().
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| ClientCommand_Spectate | ) |
Definition at line 710 of file sv_lms.qc.
References entity(), FRAGS_PLAYER_OUT_OF_GAME, FRAGS_SPECTATOR, M_ARGV, MUT_SPECCMD_CONTINUE, and MUT_SPECCMD_RETURN.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| ClientConnect | ) |
Definition at line 438 of file sv_lms.qc.
References ClientConnect, entity(), FRAGS_SPECTATOR, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| ClientDisconnect | ) |
Definition at line 403 of file sv_lms.qc.
References ClientDisconnect, entity(), INGAME_STATUS_CLEAR, lms_RemovePlayer(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| Damage_Calculate | ) |
Definition at line 530 of file sv_lms.qc.
References autocvar_g_lms_dynamic_vampire, autocvar_g_lms_dynamic_vampire_factor_base, autocvar_g_lms_dynamic_vampire_factor_increase, autocvar_g_lms_dynamic_vampire_factor_max, autocvar_g_lms_dynamic_vampire_min_lives_diff, entity(), frag_damage, frag_target, GameRules_scoring_add, GetResource(), IS_DEAD, IS_PLAYER, M_ARGV, min(), SetResourceExplicit(), and start_health.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| FilterItem | ) |
Definition at line 667 of file sv_lms.qc.
References autocvar_g_lms_extra_lives, autocvar_g_lms_items, autocvar_g_pickup_items, autocvar_g_powerups, entity(), lms_replace_with_extralife(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| FilterItemDefinition | ) |
Definition at line 647 of file sv_lms.qc.
References autocvar_g_lms_extra_lives, autocvar_g_lms_items, autocvar_g_pickup_items, autocvar_g_powerups, entity(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| ForbidPlayerScore_Clear | ) |
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| ForbidSpawn | ) |
Definition at line 331 of file sv_lms.qc.
References entity(), lms_AddPlayer(), M_ARGV, and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| ForbidThrowCurrentWeapon | ) |
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| GiveFragsForKill | ) |
Definition at line 601 of file sv_lms.qc.
References entity(), FOREACH_CLIENT, frag_target, FRAGS_PLAYER, FRAGS_PLAYER_OUT_OF_GAME, game_starttime, GameRules_scoring_add, IS_PLAYER, lms_lowest_lives, M_ARGV, time, and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| ItemTouch | ) |
Definition at line 681 of file sv_lms.qc.
References autocvar_g_lms_extra_lives, entity(), GameRules_scoring_add, Inventory_pickupitem(), M_ARGV, MUT_ITEMTOUCH_CONTINUE, MUT_ITEMTOUCH_PICKUP, MUTATOR_RETURNVALUE, Send_Notification(), and toucher.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| MakePlayerObserver | ) |
Definition at line 413 of file sv_lms.qc.
References entity(), FRAGS_SPECTATOR, game_starttime, GameRules_scoring_add, INGAME_STATUS_CLEAR, IS_PLAYER, lms_RemovePlayer(), M_ARGV, time, TRANSMUTE, and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| PlayerDied | ) |
Definition at line 559 of file sv_lms.qc.
References autocvar_g_lms_leader_lives_diff, lms_UpdateLeaders(), and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| PlayerPowerups | ) |
Definition at line 515 of file sv_lms.qc.
References EF_ADDITIVE, EF_FULLBRIGHT, entity(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| PlayerPreThink | ) |
Definition at line 444 of file sv_lms.qc.
References DEAD_DYING, DEAD_RESPAWNING, entity(), lms_leaders, lms_leaders_lives_diff, M_ARGV, PlayerPreThink, and STAT.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| PlayerRegen | ) |
Definition at line 506 of file sv_lms.qc.
References autocvar_g_lms_regenerate, autocvar_g_lms_rot, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| PlayerSpawn | ) |
Definition at line 298 of file sv_lms.qc.
References entity(), FOREACH_CLIENT, game_starttime, GameRules_scoring_add, GetResource(), INGAME_JOINING, INGAME_STATUS_JOINED, INGAME_STATUS_SET, IS_DEAD, IS_PLAYER, last_forfeiter_armorvalue, last_forfeiter_health, last_forfeiter_lives, M_ARGV, max(), RES_ARMOR, SetResource(), start_armorvalue, start_health, time, and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| PutClientInServer | ) |
Definition at line 285 of file sv_lms.qc.
References CS(), entity(), GameRules_scoring_add, IS_BOT_CLIENT, jointime, lms_AddPlayer(), M_ARGV, PutClientInServer, time, TRANSMUTE, and warmup_stage.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| ReadLevelCvars | ) |
Definition at line 247 of file sv_lms.qc.
References sv_ready_restart_after_countdown.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| reset_map_global | ) |
Definition at line 217 of file sv_lms.qc.
References lms_lowest_lives.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| reset_map_players | ) |
Definition at line 222 of file sv_lms.qc.
References CS(), FOREACH_CLIENT, FRAGS_PLAYER, FRAGS_PLAYER_OUT_OF_GAME, GameRules_scoring_add, INGAME_STATUS_CLEAR, PutClientInServer, TRANSMUTE, and WaypointSprite_Kill().
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| SetStartItems | ) |
Definition at line 626 of file sv_lms.qc.
References cvar(), IT_UNLIMITED_AMMO, IT_UNLIMITED_SUPERWEAPONS, start_ammo_cells, start_ammo_fuel, start_ammo_nails, start_ammo_rockets, start_ammo_shells, start_armorvalue, start_health, start_items, warmup_start_ammo_cells, warmup_start_ammo_fuel, warmup_start_ammo_nails, warmup_start_ammo_rockets, warmup_start_ammo_shells, warmup_start_armorvalue, and warmup_start_health.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| SetWeaponArena | ) |
Definition at line 725 of file sv_lms.qc.
References autocvar_g_lms_weaponarena, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | lms | , |
| SV_StartFrame | ) |
Definition at line 456 of file sv_lms.qc.
References autocvar_g_lms_leader_wp_interval, autocvar_g_lms_leader_wp_interval_jitter, autocvar_g_lms_leader_wp_time, colormapPaletteColor, FOREACH_CLIENT, FRAGS_PLAYER_OUT_OF_GAME, intermission_running, IS_PLAYER, IS_REAL_CLIENT, lms_leaders, lms_visible_leaders, lms_visible_leaders_prev, lms_visible_leaders_time, lms_waypointsprite_visible_for_player(), random(), Send_Notification(), SPRITERULE_DEFAULT, STAT, time, vector, WaypointSprite_AttachCarrier(), WaypointSprite_Kill(), WaypointSprite_Ping(), WaypointSprite_UpdateRule(), and WaypointSprite_UpdateTeamRadar().
| int WinningCondition_LMS | ( | ) |
Definition at line 60 of file sv_lms.qc.
References autocvar_g_campaign, autocvar_g_lms_forfeit_min_match_time, campaign_bots_may_start, ClearWinners(), entity(), FOREACH_CLIENT, FRAGS_PLAYER, game_starttime, GameRules_scoring_add, IS_PLAYER, IS_REAL_CLIENT, LMS_NewPlayerLives(), LOG_TRACE, NULL, time, warmup_stage, WINNING_NEVER, WINNING_NO, WINNING_YES, WinningConditionHelper(), WinningConditionHelper_secondscore, WinningConditionHelper_topscore, and WinningConditionHelper_winner.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_lms_dynamic_respawn_delay = 1 |
Definition at line 20 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_lms_dynamic_respawn_delay_base = 2 |
Definition at line 21 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_lms_dynamic_respawn_delay_increase = 3 |
Definition at line 22 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_lms_dynamic_respawn_delay_max = 20 |
Definition at line 23 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| bool autocvar_g_lms_dynamic_vampire = 1 |
Definition at line 24 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_lms_dynamic_vampire_factor_base = 0.1 |
Definition at line 25 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_lms_dynamic_vampire_factor_increase = 0.1 |
Definition at line 26 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_lms_dynamic_vampire_factor_max = 0.5 |
Definition at line 27 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| int autocvar_g_lms_dynamic_vampire_min_lives_diff = 2 |
Definition at line 28 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| int autocvar_g_lms_extra_lives |
Definition at line 9 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| float autocvar_g_lms_forfeit_min_match_time |
Definition at line 10 of file sv_lms.qc.
Referenced by WinningCondition_LMS().
| bool autocvar_g_lms_items |
Definition at line 13 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| bool autocvar_g_lms_join_anytime |
Definition at line 11 of file sv_lms.qc.
Referenced by LMS_NewPlayerLives().
| int autocvar_g_lms_last_join |
Definition at line 12 of file sv_lms.qc.
Referenced by LMS_NewPlayerLives().
| int autocvar_g_lms_leader_lives_diff = 2 |
Definition at line 15 of file sv_lms.qc.
Referenced by lms_RemovePlayer(), lms_UpdateLeaders(), and MUTATOR_HOOKFUNCTION().
| float autocvar_g_lms_leader_minpercent = 0.5 |
Definition at line 16 of file sv_lms.qc.
Referenced by lms_UpdateLeaders().
| float autocvar_g_lms_leader_wp_interval = 25 |
Definition at line 17 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_lms_leader_wp_interval_jitter = 10 |
Definition at line 18 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_lms_leader_wp_time = 5 |
Definition at line 19 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| bool autocvar_g_lms_regenerate |
Definition at line 14 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| bool autocvar_g_lms_rot |
Definition at line 35 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float last_forfeiter_armorvalue |
Definition at line 297 of file sv_lms.qc.
Referenced by lms_RemovePlayer(), and MUTATOR_HOOKFUNCTION().
| float last_forfeiter_health |
Definition at line 296 of file sv_lms.qc.
Referenced by lms_RemovePlayer(), and MUTATOR_HOOKFUNCTION().
| int last_forfeiter_lives |
Definition at line 295 of file sv_lms.qc.
Referenced by lms_RemovePlayer(), and MUTATOR_HOOKFUNCTION().
| int lms_leaders |
Definition at line 31 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| int lms_leaders_lives_diff |
Definition at line 170 of file sv_lms.qc.
Referenced by lms_UpdateLeaders(), and MUTATOR_HOOKFUNCTION().
Definition at line 33 of file sv_lms.qc.
Referenced by lms_waypointsprite_visible_for_player(), and MUTATOR_HOOKFUNCTION().
| bool lms_visible_leaders_prev |
Definition at line 34 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float lms_visible_leaders_time |
Definition at line 32 of file sv_lms.qc.
Referenced by MUTATOR_HOOKFUNCTION().