|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "sv_mayhem.qh"#include <common/scores.qh>#include "common/gametypes/gametype/tmayhem/sv_tmayhem.qh"Go to the source code of this file.
Functions | |
| void | mayhem_Initialize () |
| void | MayhemCalculatePlayerScore (entity scorer) |
| MUTATOR_HOOKFUNCTION (mayhem, Damage_Calculate) | |
| MUTATOR_HOOKFUNCTION (mayhem, FilterItem) | |
| MUTATOR_HOOKFUNCTION (mayhem, ForbidThrowCurrentWeapon) | |
| MUTATOR_HOOKFUNCTION (mayhem, GiveFragsForKill, CBC_ORDER_FIRST) | |
| MUTATOR_HOOKFUNCTION (mayhem, PlayerDamage_SplitHealthArmor) | |
| MUTATOR_HOOKFUNCTION (mayhem, PlayerRegen) | |
| MUTATOR_HOOKFUNCTION (mayhem, reset_map_players) | |
| MUTATOR_HOOKFUNCTION (mayhem, SetStartItems) | |
| MUTATOR_HOOKFUNCTION (mayhem, SetWeaponArena) | |
| void mayhem_Initialize | ( | ) |
Definition at line 41 of file sv_mayhem.qc.
References autocvar_g_mayhem_point_leadlimit, autocvar_g_mayhem_point_limit, GameRules_limit_lead(), and GameRules_limit_score().
Referenced by REGISTER_MUTATOR().
Definition at line 145 of file sv_mayhem.qc.
References autocvar_g_mayhem_scoring_damage_weight, autocvar_g_mayhem_scoring_disable_selfdamage2score, autocvar_g_mayhem_scoring_kill_weight, autocvar_g_mayhem_scoring_upscaler, autocvar_g_tmayhem_scoring_damage_weight, autocvar_g_tmayhem_scoring_disable_selfdamage2score, autocvar_g_tmayhem_scoring_kill_weight, autocvar_g_tmayhem_scoring_upscaler, entity(), floor(), GameRules_scoring_add_team, IS_BOT_CLIENT, killcount, PlayerScore_Get, print(), rint(), start_armorvalue, start_health, and teamplay.
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| MUTATOR_HOOKFUNCTION | ( | mayhem | , |
| Damage_Calculate | ) |
Definition at line 130 of file sv_mayhem.qc.
References autocvar_g_mayhem_selfdamage, entity(), frag_damage, frag_target, IS_DEAD, IS_PLAYER, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | mayhem | , |
| FilterItem | ) |
Definition at line 97 of file sv_mayhem.qc.
References autocvar_g_mayhem_pickup_items, autocvar_g_mayhem_pickup_items_remove_weapons_and_ammo, autocvar_g_mayhem_powerups, autocvar_g_pickup_items, autocvar_g_powerups, entity(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | mayhem | , |
| ForbidThrowCurrentWeapon | ) |
Definition at line 86 of file sv_mayhem.qc.
| MUTATOR_HOOKFUNCTION | ( | mayhem | , |
| GiveFragsForKill | , | ||
| CBC_ORDER_FIRST | ) |
Definition at line 349 of file sv_mayhem.qc.
References CBC_ORDER_FIRST, entity(), IS_PLAYER, M_ARGV, and MayhemCalculatePlayerScore().
| MUTATOR_HOOKFUNCTION | ( | mayhem | , |
| PlayerDamage_SplitHealthArmor | ) |
Definition at line 281 of file sv_mayhem.qc.
References autocvar_g_mayhem_scoring_damage_weight, autocvar_g_mayhem_scoring_disable_selfdamage2score, autocvar_g_spawnshield_blockdamage, bound(), entity(), frag_damage, frag_target, GetResource(), IS_BOT_CLIENT, IS_PLAYER, M_ARGV, max(), MayhemCalculatePlayerScore(), NULL, print(), RES_ARMOR, and StatusEffects_active().
| MUTATOR_HOOKFUNCTION | ( | mayhem | , |
| PlayerRegen | ) |
Definition at line 77 of file sv_mayhem.qc.
References autocvar_g_mayhem_regenerate, autocvar_g_mayhem_rot, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | mayhem | , |
| reset_map_players | ) |
Definition at line 359 of file sv_mayhem.qc.
References FOREACH_CLIENT.
| MUTATOR_HOOKFUNCTION | ( | mayhem | , |
| SetStartItems | ) |
Definition at line 62 of file sv_mayhem.qc.
References autocvar_g_mayhem_start_ammo_cells, autocvar_g_mayhem_start_ammo_fuel, autocvar_g_mayhem_start_ammo_nails, autocvar_g_mayhem_start_ammo_rockets, autocvar_g_mayhem_start_ammo_shells, autocvar_g_mayhem_start_armor, autocvar_g_mayhem_start_health, autocvar_g_mayhem_unlimited_ammo, 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 | ( | mayhem | , |
| SetWeaponArena | ) |
Definition at line 91 of file sv_mayhem.qc.
References autocvar_g_mayhem_weaponarena, and M_ARGV.
| bool autocvar_g_mayhem_pickup_items |
Definition at line 19 of file sv_mayhem.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| bool autocvar_g_mayhem_pickup_items_remove_weapons_and_ammo |
Definition at line 20 of file sv_mayhem.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_mayhem_point_leadlimit |
Definition at line 8 of file sv_mayhem.qc.
Referenced by mayhem_Initialize().
| float autocvar_g_mayhem_point_limit |
Definition at line 7 of file sv_mayhem.qc.
Referenced by mayhem_Initialize().
| bool autocvar_g_mayhem_powerups |
Definition at line 13 of file sv_mayhem.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| bool autocvar_g_mayhem_regenerate |
Definition at line 10 of file sv_mayhem.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| bool autocvar_g_mayhem_rot |
Definition at line 11 of file sv_mayhem.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_mayhem_scoring_damage_weight |
Definition at line 16 of file sv_mayhem.qc.
Referenced by MayhemCalculatePlayerScore(), and MUTATOR_HOOKFUNCTION().
| bool autocvar_g_mayhem_scoring_disable_selfdamage2score |
Definition at line 18 of file sv_mayhem.qc.
Referenced by MayhemCalculatePlayerScore(), and MUTATOR_HOOKFUNCTION().
| float autocvar_g_mayhem_scoring_kill_weight |
Definition at line 17 of file sv_mayhem.qc.
Referenced by MayhemCalculatePlayerScore().
| float autocvar_g_mayhem_scoring_upscaler |
Definition at line 15 of file sv_mayhem.qc.
Referenced by MayhemCalculatePlayerScore().
| bool autocvar_g_mayhem_selfdamage |
Definition at line 14 of file sv_mayhem.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_mayhem_start_ammo_cells = 180 |
Definition at line 28 of file sv_mayhem.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_mayhem_start_ammo_fuel = 0 |
Definition at line 29 of file sv_mayhem.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_mayhem_start_ammo_nails = 320 |
Definition at line 26 of file sv_mayhem.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_mayhem_start_ammo_rockets = 160 |
Definition at line 27 of file sv_mayhem.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_mayhem_start_ammo_shells = 60 |
Definition at line 25 of file sv_mayhem.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_mayhem_start_armor = 200 |
Definition at line 24 of file sv_mayhem.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float autocvar_g_mayhem_start_health = 200 |
Definition at line 23 of file sv_mayhem.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| bool autocvar_g_mayhem_unlimited_ammo |
Definition at line 21 of file sv_mayhem.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| string autocvar_g_mayhem_weaponarena |
Definition at line 12 of file sv_mayhem.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float total_damage_dealt |
Definition at line 31 of file sv_mayhem.qc.