Xonotic
|
#include "sv_instagib.qh"
#include <server/client.qh>
#include <common/items/_mod.qh>
#include <common/mutators/mutator/powerups/_mod.qh>
#include <common/mutators/mutator/status_effects/_mod.qh>
#include "../random_items/sv_random_items.qh"
Go to the source code of this file.
Functions | |
void | instagib_ammocheck (entity this) |
void | instagib_countdown (entity this) |
void | instagib_extralife (entity this) |
void | instagib_invisibility (entity this) |
void | instagib_speed (entity this) |
void | instagib_stop_countdown (entity e) |
MUTATOR_HOOKFUNCTION (mutator_instagib, MatchEnd) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, RandomItems_GetRandomItemClassName) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, MonsterDropItem) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, MonsterSpawn) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, MakePlayerObserver) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, ForbidRandomStartWeapons) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, PlayerSpawn) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, PlayerPreThink) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, PlayerRegen) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, PlayerDamage_SplitHealthArmor) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, ForbidThrowCurrentWeapon) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, Damage_Calculate) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, SetStartItems, CBC_ORDER_LAST) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, SetWeaponArena) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, FilterItem) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, PlayerDies) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, ItemTouch) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, OnEntityPreSpawn) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, BuildMutatorsString) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, BuildMutatorsPrettyString) | |
MUTATOR_HOOKFUNCTION (mutator_instagib, SetModname) | |
string | RandomItems_GetRandomInstagibItemClassName (string prefix) |
Returns a random classname of the instagib item. More... | |
void | replace_with_insta_cells (entity item) |
Definition at line 86 of file sv_instagib.qc.
References autocvar_g_rm, autocvar_g_rm_laser, FL_GODMODE, flags, GetResource(), instagib_countdown(), instagib_needammo, instagib_nextthink, instagib_stop_countdown(), IS_DEAD, IS_PLAYER, items, and time.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 67 of file sv_instagib.qc.
References ceil(), Damage(), dmg, DMG_NOWEP, entity(), GetResource(), and RES_HEALTH.
Referenced by instagib_ammocheck().
Definition at line 26 of file sv_instagib.qc.
References StartItem().
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 20 of file sv_instagib.qc.
References autocvar_g_instagib_invisibility_time, and StartItem().
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 31 of file sv_instagib.qc.
References autocvar_g_instagib_speed_time, and StartItem().
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 59 of file sv_instagib.qc.
Referenced by instagib_ammocheck(), and MUTATOR_HOOKFUNCTION().
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
MatchEnd | |||
) |
Definition at line 113 of file sv_instagib.qc.
References FOREACH_CLIENT, instagib_stop_countdown(), and IS_PLAYER.
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
RandomItems_GetRandomItemClassName | |||
) |
Definition at line 118 of file sv_instagib.qc.
References M_ARGV, and RandomItems_GetRandomInstagibItemClassName().
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
MonsterDropItem | |||
) |
Definition at line 125 of file sv_instagib.qc.
References entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
MonsterSpawn | |||
) |
Definition at line 132 of file sv_instagib.qc.
References entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
MakePlayerObserver | |||
) |
Definition at line 141 of file sv_instagib.qc.
References entity(), instagib_stop_countdown(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
ForbidRandomStartWeapons | |||
) |
Definition at line 148 of file sv_instagib.qc.
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
PlayerSpawn | |||
) |
Definition at line 153 of file sv_instagib.qc.
References EF_FULLBRIGHT, entity(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
PlayerPreThink | |||
) |
Definition at line 160 of file sv_instagib.qc.
References entity(), instagib_ammocheck(), and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
PlayerRegen | |||
) |
Definition at line 167 of file sv_instagib.qc.
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
PlayerDamage_SplitHealthArmor | |||
) |
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
ForbidThrowCurrentWeapon | |||
) |
Definition at line 179 of file sv_instagib.qc.
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
Damage_Calculate | |||
) |
Definition at line 185 of file sv_instagib.qc.
References autocvar_g_friendlyfire, autocvar_g_instagib_blaster_keepdamage, autocvar_g_instagib_blaster_keepforce, autocvar_g_instagib_damagedbycontents, autocvar_g_instagib_friendlypush, autocvar_g_instagib_mirrordamage, DEATH_ENT, DEATH_ISWEAPON, entity(), GetResource(), HITTYPE_SECONDARY, IS_PLAYER, M_ARGV, SAME_TEAM, SetResource(), vector(), and yoda.
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
SetStartItems | , | ||
CBC_ORDER_LAST | |||
) |
Definition at line 275 of file sv_instagib.qc.
References cvar(), start_ammo_cells, start_ammo_nails, start_ammo_plasma, start_ammo_rockets, start_ammo_shells, start_armorvalue, start_health, start_items, start_weapons, warmup_start_ammo_cells, warmup_start_ammo_nails, warmup_start_ammo_plasma, warmup_start_ammo_rockets, warmup_start_ammo_shells, warmup_start_armorvalue, warmup_start_health, warmup_start_weapons, and WEPSET.
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
SetWeaponArena | |||
) |
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
FilterItem | |||
) |
Definition at line 308 of file sv_instagib.qc.
References autocvar_g_instagib_ammo_convert_bullets, autocvar_g_instagib_ammo_convert_cells, autocvar_g_instagib_ammo_convert_rockets, autocvar_g_instagib_ammo_convert_shells, entity(), GetResource(), Item_IsLoot(), M_ARGV, replace_with_insta_cells(), and SetResource().
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
PlayerDies | |||
) |
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
ItemTouch | |||
) |
Definition at line 378 of file sv_instagib.qc.
References autocvar_g_instagib_extralives, entity(), GetResource(), GiveResource(), IS_CLIENT, M_ARGV, MUT_ITEMTOUCH_CONTINUE, MUT_ITEMTOUCH_PICKUP, MUTATOR_RETURNVALUE, RES_HEALTH, and SetResource().
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
OnEntityPreSpawn | |||
) |
Definition at line 413 of file sv_instagib.qc.
References autocvar_g_powerups, entity(), instagib_extralife(), instagib_invisibility(), instagib_speed(), M_ARGV, MUTATOR_RETURNVALUE, random(), setorigin(), setthink, spawn(), and time.
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
BuildMutatorsString | |||
) |
Definition at line 449 of file sv_instagib.qc.
References M_ARGV, and strcat().
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
BuildMutatorsPrettyString | |||
) |
Definition at line 454 of file sv_instagib.qc.
References M_ARGV, and strcat().
MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
SetModname | |||
) |
Returns a random classname of the instagib item.
[in] | prefix | Prefix of the cvars that hold probabilities. |
Definition at line 40 of file sv_instagib.qc.
References cvar(), CVAR_TYPEFLAG_EXISTS, g_instagib_items, IL_EACH, Item_IsDefinitionAllowed(), LOG_WARNF, RandomSelection_AddString, RandomSelection_chosen_string, and RandomSelection_Init().
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 297 of file sv_instagib.qc.
References entity(), Item_ShouldKeepPosition(), and setorigin().
Referenced by MUTATOR_HOOKFUNCTION().
bool autocvar_g_instagib_ammo_convert_bullets |
Definition at line 18 of file sv_instagib.qc.
Referenced by MUTATOR_HOOKFUNCTION().
bool autocvar_g_instagib_ammo_convert_cells |
Definition at line 15 of file sv_instagib.qc.
Referenced by MUTATOR_HOOKFUNCTION().
bool autocvar_g_instagib_ammo_convert_rockets |
Definition at line 16 of file sv_instagib.qc.
Referenced by MUTATOR_HOOKFUNCTION().
bool autocvar_g_instagib_ammo_convert_shells |
Definition at line 17 of file sv_instagib.qc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 10 of file sv_instagib.qc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 11 of file sv_instagib.qc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 9 of file sv_instagib.qc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 13 of file sv_instagib.qc.
Referenced by MUTATOR_HOOKFUNCTION().
bool autocvar_g_instagib_mirrordamage |
Definition at line 12 of file sv_instagib.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float instagib_needammo |
Definition at line 58 of file sv_instagib.qc.
Referenced by instagib_ammocheck().
float instagib_nextthink |
Definition at line 57 of file sv_instagib.qc.
Referenced by instagib_ammocheck().