Xonotic
|
#include "sv_new_toys.qh"
#include "../random_items/sv_random_items.qh"
#include <server/weapons/spawning.qh>
Go to the source code of this file.
Functions | |
MUTATOR_HOOKFUNCTION (nt, SetStartItems) | |
MUTATOR_HOOKFUNCTION (nt, SetWeaponreplace) | |
MUTATOR_HOOKFUNCTION (nt, FilterItem) | |
string | nt_GetFullReplacement (string w) |
string | nt_GetReplacement (string w, float m) |
bool | nt_IsNewToy (int w) |
REGISTER_MUTATOR (nt, expr_evaluate(cvar_string("g_new_toys")) &&!MUTATOR_IS_ENABLED(mutator_instagib) &&!MUTATOR_IS_ENABLED(ok)) | |
Variables | |
float | autocvar_g_new_toys_autoreplace |
bool | autocvar_g_new_toys_use_pickupsound = false |
string | new_toys |
const float | NT_AUTOREPLACE_ALWAYS = 1 |
const float | NT_AUTOREPLACE_NEVER = 0 |
const float | NT_AUTOREPLACE_RANDOM = 2 |
MUTATOR_HOOKFUNCTION | ( | nt | , |
SetStartItems | |||
) |
Definition at line 157 of file sv_new_toys.qc.
References argv(), FOREACH, nt_GetReplacement(), start_weapons, start_weapons_defaultmask, tokenize_console, warmup_start_weapons, and warmup_start_weapons_defaultmask.
MUTATOR_HOOKFUNCTION | ( | nt | , |
SetWeaponreplace | |||
) |
Definition at line 197 of file sv_new_toys.qc.
References entity(), M_ARGV, MUTATOR_IS_ENABLED, nt_GetReplacement(), and W_Apply_Weaponreplace().
MUTATOR_HOOKFUNCTION | ( | nt | , |
FilterItem | |||
) |
Definition at line 226 of file sv_new_toys.qc.
References entity(), M_ARGV, nt_IsNewToy(), and string_null.
Definition at line 132 of file sv_new_toys.qc.
References string_null.
Referenced by nt_GetReplacement().
Definition at line 145 of file sv_new_toys.qc.
References nt_GetFullReplacement(), and strcat().
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 117 of file sv_new_toys.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and REGISTER_MUTATOR().
REGISTER_MUTATOR | ( | nt | , |
expr_evaluate(cvar_string("g_new_toys")) &&!MUTATOR_IS_ENABLED(mutator_instagib) &&!MUTATOR_IS_ENABLED(ok) | |||
) |
Definition at line 78 of file sv_new_toys.qc.
References error(), FOREACH, LOG_INFO, MUTATOR_ONADD, MUTATOR_ONREMOVE, MUTATOR_ONROLLBACK_OR_REMOVE, nt_IsNewToy(), time, and WEP_FLAG_MUTATORBLOCKED.
float autocvar_g_new_toys_autoreplace |
Definition at line 111 of file sv_new_toys.qc.
Definition at line 112 of file sv_new_toys.qc.
string new_toys |
Definition at line 109 of file sv_new_toys.qc.
const float NT_AUTOREPLACE_ALWAYS = 1 |
Definition at line 114 of file sv_new_toys.qc.
const float NT_AUTOREPLACE_NEVER = 0 |
Definition at line 113 of file sv_new_toys.qc.
const float NT_AUTOREPLACE_RANDOM = 2 |
Definition at line 115 of file sv_new_toys.qc.