|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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_replace_item_with (entity this, GameItem def) |
| void | instagib_replace_item_with_random_powerup (entity item) |
| void | instagib_stop_countdown (entity e) |
| MUTATOR_HOOKFUNCTION (mutator_instagib, BuildMutatorsPrettyString) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, BuildMutatorsString) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, Damage_Calculate) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, FilterItem) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, ForbidRandomStartWeapons) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, ForbidThrowCurrentWeapon) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, ItemTouch) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, MakePlayerObserver) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, MatchEnd) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, MonsterDropItem) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, MonsterSpawn) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, PlayerDamage_SplitHealthArmor) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, PlayerDies) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, PlayerPreThink) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, PlayerRegen) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, PlayerSpawn) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, RandomItems_GetRandomItemClassName) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, SetModname) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, SetStartItems, CBC_ORDER_LAST) | |
| MUTATOR_HOOKFUNCTION (mutator_instagib, SetWeaponArena) | |
| string | RandomItems_GetRandomInstagibItemClassName (string prefix) |
| Returns a random classname of the instagib item. | |
Definition at line 70 of file sv_instagib.qc.
References autocvar_g_rm, autocvar_g_rm_laser, entity(), FL_GODMODE, flags, game_stopped, GetResource(), instagib_countdown(), instagib_needammo, instagib_nextthink, instagib_stop_countdown(), IS_DEAD, IS_PLAYER, IT_UNLIMITED_AMMO, items, Send_Notification(), and time.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 51 of file sv_instagib.qc.
References Announcer_PickNumber(), ceil(), CNT_NORMAL, Damage(), dmg, DMG_NOWEP, entity(), GetResource(), and Send_Notification().
Referenced by instagib_ammocheck().
Definition at line 275 of file sv_instagib.qc.
References autocvar_g_instagib_invisibility_time, autocvar_g_instagib_speed_time, entity(), Item_CopyFields(), spawn, and StartItem().
Referenced by instagib_replace_item_with_random_powerup(), and MUTATOR_HOOKFUNCTION().
Definition at line 295 of file sv_instagib.qc.
References entity(), floor(), INSTAGIB_POWERUP_COUNT, instagib_remaining_powerups, instagib_replace_item_with(), and random().
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 43 of file sv_instagib.qc.
References entity(), and Kill_Notification().
Referenced by instagib_ammocheck(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| BuildMutatorsPrettyString | ) |
Definition at line 420 of file sv_instagib.qc.
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| BuildMutatorsString | ) |
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| Damage_Calculate | ) |
Definition at line 167 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(), frag_damage, frag_force, frag_target, GetResource(), IS_PLAYER, M_ARGV, RES_ARMOR, SAME_TEAM, Send_Notification(), SetResource(), vector, and yoda.
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| FilterItem | ) |
Definition at line 314 of file sv_instagib.qc.
References autocvar_g_instagib_allow_jetpacks, autocvar_g_instagib_ammo_convert_bullets, autocvar_g_instagib_ammo_convert_cells, autocvar_g_instagib_ammo_convert_rockets, autocvar_g_instagib_ammo_convert_shells, autocvar_g_instagib_ammo_drop, autocvar_g_powerups, entity(), GetResource(), instagib_replace_item_with(), instagib_replace_item_with_random_powerup(), ITEM_IS_LOOT, M_ARGV, and SetResource().
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| ForbidRandomStartWeapons | ) |
Definition at line 130 of file sv_instagib.qc.
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| ForbidThrowCurrentWeapon | ) |
Definition at line 161 of file sv_instagib.qc.
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| ItemTouch | ) |
Definition at line 379 of file sv_instagib.qc.
References autocvar_g_instagib_extralives, entity(), GetResource(), GiveResource(), Inventory_pickupitem(), IS_CLIENT, M_ARGV, MUT_ITEMTOUCH_CONTINUE, MUT_ITEMTOUCH_PICKUP, MUTATOR_RETURNVALUE, RES_ARMOR, Send_Notification(), SetResource(), and toucher.
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| MakePlayerObserver | ) |
Definition at line 123 of file sv_instagib.qc.
References entity(), instagib_stop_countdown(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| MatchEnd | ) |
Definition at line 97 of file sv_instagib.qc.
References FOREACH_CLIENT, instagib_stop_countdown(), and IS_PLAYER.
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| MonsterDropItem | ) |
Definition at line 109 of file sv_instagib.qc.
References M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| MonsterSpawn | ) |
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| PlayerDamage_SplitHealthArmor | ) |
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| PlayerDies | ) |
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| PlayerPreThink | ) |
Definition at line 142 of file sv_instagib.qc.
References entity(), instagib_ammocheck(), M_ARGV, and PlayerPreThink.
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| PlayerRegen | ) |
Definition at line 149 of file sv_instagib.qc.
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| PlayerSpawn | ) |
Definition at line 135 of file sv_instagib.qc.
References EF_FULLBRIGHT, entity(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| RandomItems_GetRandomItemClassName | ) |
Definition at line 102 of file sv_instagib.qc.
References M_ARGV, RandomItems_GetRandomInstagibItemClassName(), and RandomItems_GetRandomItemClassName().
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| SetModname | ) |
Definition at line 425 of file sv_instagib.qc.
References M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| SetStartItems | , | ||
| CBC_ORDER_LAST | ) |
Definition at line 254 of file sv_instagib.qc.
References CBC_ORDER_LAST, cvar(), IT_UNLIMITED_SUPERWEAPONS, start_ammo_cells, start_ammo_nails, 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_rockets, warmup_start_ammo_shells, warmup_start_armorvalue, warmup_start_health, warmup_start_weapons, and WEPSET.
| MUTATOR_HOOKFUNCTION | ( | mutator_instagib | , |
| SetWeaponArena | ) |
Definition at line 269 of file sv_instagib.qc.
References M_ARGV.
Returns a random classname of the instagib item.
| [in] | prefix | Prefix of the cvars that hold probabilities. |
Definition at line 24 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().
| bool autocvar_g_instagib_allow_jetpacks |
Definition at line 19 of file sv_instagib.qc.
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 42 of file sv_instagib.qc.
Referenced by instagib_ammocheck().
| float instagib_nextthink |
Definition at line 41 of file sv_instagib.qc.
Referenced by instagib_ammocheck().
| const int INSTAGIB_POWERUP_COUNT = 3 |
Definition at line 291 of file sv_instagib.qc.
Referenced by instagib_replace_item_with_random_powerup().
| GameItem instagib_remaining_powerups[INSTAGIB_POWERUP_COUNT] |
Definition at line 292 of file sv_instagib.qc.
Referenced by instagib_replace_item_with_random_powerup().