Xonotic
|
Go to the source code of this file.
Functions | |
MUTATOR_HOOKFUNCTION (nix, ForbidThrowCurrentWeapon) | |
MUTATOR_HOOKFUNCTION (nix, BuildMutatorsString) | |
MUTATOR_HOOKFUNCTION (nix, BuildMutatorsPrettyString) | |
MUTATOR_HOOKFUNCTION (nix, FilterItemDefinition) | |
MUTATOR_HOOKFUNCTION (nix, OnEntityPreSpawn) | |
MUTATOR_HOOKFUNCTION (nix, PlayerPreThink) | |
MUTATOR_HOOKFUNCTION (nix, ForbidRandomStartWeapons) | |
MUTATOR_HOOKFUNCTION (nix, PlayerSpawn) | |
MUTATOR_HOOKFUNCTION (nix, SetModname, CBC_ORDER_LAST) | |
bool | NIX_CanChooseWeapon (int wpn) |
void | NIX_ChooseNextWeapon () |
void | NIX_GiveCurrentWeapon (entity this) |
REGISTER_MUTATOR (nix, expr_evaluate(cvar_string("g_nix")) &&!MUTATOR_IS_ENABLED(mutator_instagib) &&!MUTATOR_IS_ENABLED(ok) &&!MapInfo_LoadedGametype.m_weaponarena) | |
MUTATOR_HOOKFUNCTION | ( | nix | , |
ForbidThrowCurrentWeapon | |||
) |
MUTATOR_HOOKFUNCTION | ( | nix | , |
BuildMutatorsString | |||
) |
MUTATOR_HOOKFUNCTION | ( | nix | , |
BuildMutatorsPrettyString | |||
) |
MUTATOR_HOOKFUNCTION | ( | nix | , |
FilterItemDefinition | |||
) |
Definition at line 250 of file sv_nix.qc.
References autocvar_g_nix_with_healtharmor, autocvar_g_nix_with_powerups, entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | nix | , |
OnEntityPreSpawn | |||
) |
MUTATOR_HOOKFUNCTION | ( | nix | , |
PlayerPreThink | |||
) |
MUTATOR_HOOKFUNCTION | ( | nix | , |
ForbidRandomStartWeapons | |||
) |
MUTATOR_HOOKFUNCTION | ( | nix | , |
PlayerSpawn | |||
) |
Definition at line 289 of file sv_nix.qc.
References entity(), M_ARGV, and NIX_GiveCurrentWeapon().
MUTATOR_HOOKFUNCTION | ( | nix | , |
SetModname | , | ||
CBC_ORDER_LAST | |||
) |
Definition at line 84 of file sv_nix.qc.
References entity(), g_nix_with_blaster, g_weaponarena, g_weaponarena_weapons, REGISTRY_GET, WEP_FLAG_MUTATORBLOCKED, and WEP_FLAG_NORMAL.
Referenced by NIX_ChooseNextWeapon(), and REGISTER_MUTATOR().
void NIX_ChooseNextWeapon | ( | ) |
Definition at line 104 of file sv_nix.qc.
References FOREACH, NIX_CanChooseWeapon(), nix_nextweapon, nix_weapon, RandomSelection_AddFloat, RandomSelection_chosen_float, and RandomSelection_Init().
Referenced by NIX_GiveCurrentWeapon().
Definition at line 114 of file sv_nix.qc.
References autocvar_g_balance_nix_ammo_cells, autocvar_g_balance_nix_ammo_fuel, autocvar_g_balance_nix_ammo_nails, autocvar_g_balance_nix_ammo_plasma, autocvar_g_balance_nix_ammo_rockets, autocvar_g_balance_nix_ammo_shells, autocvar_g_balance_nix_ammoincr_cells, autocvar_g_balance_nix_ammoincr_fuel, autocvar_g_balance_nix_ammoincr_nails, autocvar_g_balance_nix_ammoincr_plasma, autocvar_g_balance_nix_ammoincr_rockets, autocvar_g_balance_nix_ammoincr_shells, autocvar_g_balance_nix_incrtime, autocvar_g_balance_nix_roundtime, autocvar_g_pickup_cells_max, autocvar_g_pickup_fuel_max, autocvar_g_pickup_nails_max, autocvar_g_pickup_plasma_max, autocvar_g_pickup_rockets_max, autocvar_g_pickup_shells_max, ceil(), client_hasweapon(), entity(), g_nix_with_blaster, GiveResource(), items, MAX_WEAPONSLOTS, NIX_ChooseNextWeapon(), nix_lastchange_id, nix_lastinfotime, nix_nextchange, nix_nextincr, nix_nextweapon, nix_weapon, REGISTRY_GET, SetResource(), time, W_SwitchWeapon(), weapon_load, weaponentities, WEP_FLAG_RELOADABLE, and WEPSET.
Referenced by MUTATOR_HOOKFUNCTION().
REGISTER_MUTATOR | ( | nix | , |
expr_evaluate(cvar_string("g_nix")) &&!MUTATOR_IS_ENABLED(mutator_instagib) &&!MUTATOR_IS_ENABLED(ok) &&!MapInfo_LoadedGametype. | m_weaponarena | ||
) |
Definition at line 42 of file sv_nix.qc.
References autocvar_g_nix_with_blaster, client_hasweapon(), FOREACH, FOREACH_CLIENT, g_nix_with_blaster, IS_DEAD, IS_PLAYER, MAX_WEAPONSLOTS, MUTATOR_ONADD, MUTATOR_ONREMOVE, MUTATOR_ONROLLBACK_OR_REMOVE, NIX_CanChooseWeapon(), nix_nextchange, nix_nextweapon, SetResource(), start_ammo_cells, start_ammo_fuel, start_ammo_nails, start_ammo_plasma, start_ammo_rockets, start_ammo_shells, start_weapons, w_getbestweapon, and weaponentities.
int autocvar_g_balance_nix_ammo_cells |
Definition at line 7 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
int autocvar_g_balance_nix_ammo_fuel |
Definition at line 9 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
int autocvar_g_balance_nix_ammo_nails |
Definition at line 10 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
int autocvar_g_balance_nix_ammo_plasma |
Definition at line 8 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
int autocvar_g_balance_nix_ammo_rockets |
Definition at line 11 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
int autocvar_g_balance_nix_ammo_shells |
Definition at line 12 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
int autocvar_g_balance_nix_ammoincr_cells |
Definition at line 13 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
int autocvar_g_balance_nix_ammoincr_fuel |
Definition at line 15 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
int autocvar_g_balance_nix_ammoincr_nails |
Definition at line 16 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
int autocvar_g_balance_nix_ammoincr_plasma |
Definition at line 14 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
int autocvar_g_balance_nix_ammoincr_rockets |
Definition at line 17 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
int autocvar_g_balance_nix_ammoincr_shells |
Definition at line 18 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
float autocvar_g_balance_nix_incrtime |
Definition at line 19 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
float autocvar_g_balance_nix_roundtime |
Definition at line 20 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
bool autocvar_g_nix_with_blaster |
Definition at line 22 of file sv_nix.qc.
Referenced by REGISTER_MUTATOR().
bool autocvar_g_nix_with_healtharmor |
Definition at line 21 of file sv_nix.qc.
Referenced by MUTATOR_HOOKFUNCTION().
bool autocvar_g_nix_with_powerups |
Definition at line 23 of file sv_nix.qc.
Referenced by MUTATOR_HOOKFUNCTION().
int autocvar_g_pickup_cells_max |
Definition at line 24 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
int autocvar_g_pickup_fuel_max |
Definition at line 26 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
int autocvar_g_pickup_nails_max |
Definition at line 27 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
int autocvar_g_pickup_plasma_max |
Definition at line 25 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
int autocvar_g_pickup_rockets_max |
Definition at line 28 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
int autocvar_g_pickup_shells_max |
Definition at line 29 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
float g_nix_with_blaster |
Definition at line 31 of file sv_nix.qc.
Referenced by NIX_CanChooseWeapon(), NIX_GiveCurrentWeapon(), and REGISTER_MUTATOR().
float nix_lastchange_id |
Definition at line 36 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
float nix_lastinfotime |
Definition at line 37 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
float nix_nextchange |
Definition at line 34 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon(), and REGISTER_MUTATOR().
float nix_nextincr |
Definition at line 38 of file sv_nix.qc.
Referenced by NIX_GiveCurrentWeapon().
float nix_nextweapon |
Definition at line 35 of file sv_nix.qc.
Referenced by NIX_ChooseNextWeapon(), NIX_GiveCurrentWeapon(), and REGISTER_MUTATOR().
int nix_weapon |
Definition at line 33 of file sv_nix.qc.
Referenced by NIX_ChooseNextWeapon(), and NIX_GiveCurrentWeapon().