|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "sv_nades.qh"#include <common/gametypes/_mod.qh>#include <common/weapons/all.qh>#include <common/mutators/mutator/overkill/okmachinegun.qh>#include <common/mutators/mutator/overkill/okshotgun.qh>#include <server/command/common.qh>Go to the source code of this file.
Classes | |
| class | NadeOffhand |
Macros | |
| #define | NADE_TYPE_CHECK(nade_ent, nade_cvar) |
| #define | SET_NADE_EFFECT(nade_type, exp_effect, exp_color_min, exp_color_max) |
| #define | SPREE_ITEM(counta, countb, center, normal, gentle) |
Variables | |
| bool | nade_altbutton |
| entity | nade_spawnloc |
| float | nade_time_primed |
| NadeOffhand | OFFHAND_NADE |
| #define NADE_TYPE_CHECK | ( | nade_ent, | |
| nade_cvar ) |
Referenced by nades_CheckTypes().
| #define SET_NADE_EFFECT | ( | nade_type, | |
| exp_effect, | |||
| exp_color_min, | |||
| exp_color_max ) |
Referenced by nade_boom().
| #define SPREE_ITEM | ( | counta, | |
| countb, | |||
| center, | |||
| normal, | |||
| gentle ) |
Definition at line 610 of file sv_nades.qc.
References autocvar_g_nades, entity(), IS_DEAD, IS_PLAYER, vehicle, and weaponLocked().
Referenced by nade_touch(), nades_CheckThrow(), and NadeOffhand::offhand_think().
| MUTATOR_HOOKFUNCTION | ( | nades | , |
| BuildMutatorsPrettyString | ) |
Definition at line 913 of file sv_nades.qc.
| MUTATOR_HOOKFUNCTION | ( | nades | , |
| BuildMutatorsString | ) |
| MUTATOR_HOOKFUNCTION | ( | nades | , |
| ClientDisconnect | ) |
Definition at line 892 of file sv_nades.qc.
References ClientDisconnect, entity(), M_ARGV, and nades_RemovePlayer().
| MUTATOR_HOOKFUNCTION | ( | nades | , |
| Damage_Calculate | ) |
Definition at line 846 of file sv_nades.qc.
References autocvar_g_freezetag_revive_nade, autocvar_g_freezetag_revive_nade_health, entity(), frag_target, freezetag_Unfreeze(), M_ARGV, NULL, Send_Effect(), Send_Notification(), SetResource(), STAT, time, and vector.
| MUTATOR_HOOKFUNCTION | ( | nades | , |
| DropSpecialItems | ) |
Definition at line 877 of file sv_nades.qc.
References entity(), frag_target, M_ARGV, time, and toss_nade().
| MUTATOR_HOOKFUNCTION | ( | nades | , |
| ForbidThrowCurrentWeapon | , | ||
| CBC_ORDER_LAST | ) |
Definition at line 701 of file sv_nades.qc.
References autocvar_g_nades_override_dropweapon, CBC_ORDER_LAST, entity(), M_ARGV, nades_CheckThrow(), OFFHAND_NADE, STAT, and WEPSET.
| MUTATOR_HOOKFUNCTION | ( | nades | , |
| MakePlayerObserver | ) |
| MUTATOR_HOOKFUNCTION | ( | nades | , |
| MonsterDies | ) |
Definition at line 866 of file sv_nades.qc.
References autocvar_g_nades_bonus_score_minor, DIFF_TEAM, entity(), frag_target, IS_PLAYER, M_ARGV, MONSTERFLAG_SPAWNED, and nades_GiveBonus().
| MUTATOR_HOOKFUNCTION | ( | nades | , |
| PlayerDies | , | ||
| CBC_ORDER_LAST | ) |
Definition at line 811 of file sv_nades.qc.
References autocvar_g_freezetag_revive_nade, autocvar_g_nades_bonus_score_medium, autocvar_g_nades_bonus_score_minor, autocvar_g_nades_bonus_score_spree, bound(), CBC_ORDER_LAST, CS(), entity(), frag_target, GameRules_scoring_is_vip, IS_PLAYER, KILL_SPREE_LIST, killcount, M_ARGV, max(), nades_GiveBonus(), nades_RemoveBonus(), SAME_TEAM, STAT, time, and toss_nade().
| MUTATOR_HOOKFUNCTION | ( | nades | , |
| PlayerPreThink | ) |
Definition at line 711 of file sv_nades.qc.
References autocvar_g_nades, autocvar_g_nades_bonus, autocvar_g_nades_bonus_client_select, autocvar_g_nades_bonus_score_max, autocvar_g_nades_bonus_score_time, autocvar_g_nades_bonus_score_time_flagcarrier, autocvar_g_nades_bonus_type, autocvar_g_nades_pokenade_monster_type, bound(), CS_CVAR, cvar_cl_nade_type, entity(), FOR_EACH_KH_KEY, GameRules_scoring_is_vip, IS_PLAYER, M_ARGV, Nade::m_id, makevectors, nade_veil_Apply(), nades_CheckTypes(), Nades_FromString(), nades_GiveBonus(), OFFHAND_NADE, PlayerPreThink, Send_Notification(), STAT, time, toss_nade(), v_forward, v_right, v_up, and WEPSET.
| MUTATOR_HOOKFUNCTION | ( | nades | , |
| PlayerSpawn | ) |
Definition at line 777 of file sv_nades.qc.
References autocvar_g_nades_bonus_client_select, autocvar_g_nades_nade_refire, autocvar_g_nades_onspawn, CS_CVAR, cvar_cl_nade_type, entity(), M_ARGV, Nade::m_id, nade_spawn_SetSpawnHealth(), Nades_FromString(), NULL, OFFHAND_NADE, STAT, StatusEffects_active(), StatusEffects_gettime(), and time.
| MUTATOR_HOOKFUNCTION | ( | nades | , |
| PutClientInServer | ) |
Definition at line 462 of file sv_nades.qc.
References entity(), M_ARGV, nades_RemoveBonus(), and PutClientInServer.
| MUTATOR_HOOKFUNCTION | ( | nades | , |
| reset_map_global | ) |
Definition at line 893 of file sv_nades.qc.
References FOREACH_CLIENT, IS_PLAYER, and nades_RemovePlayer().
| MUTATOR_HOOKFUNCTION | ( | nades | , |
| SpectateCopy | ) |
Definition at line 901 of file sv_nades.qc.
References entity(), M_ARGV, SpectateCopy(), and STAT.
| MUTATOR_HOOKFUNCTION | ( | nades | , |
| VehicleEnter | ) |
Definition at line 237 of file sv_nades.qc.
References ATTEN_LARGE, ATTEN_MAX, CH_SHOTS_SINGLE, entity(), max(), nade_boom(), nextthink, setthink, sound, time, VOL_BASE, and wait.
Referenced by nade_damage(), and spawn_held_nade().
Definition at line 107 of file sv_nades.qc.
References ATTEN_NORM, CH_SHOTS, CH_SHOTS_SINGLE, entity(), findbetterlocation(), func_null(), g_projectiles, IL_EACH, nade_ammo_boom(), nade_darkness_boom(), nade_entrap_boom(), nade_heal_boom(), nade_ice_boom(), nade_monster_boom(), nade_napalm_boom(), nade_normal_boom(), nade_spawn_boom(), nade_translocate_boom(), nade_veil_boom(), nades_PlayerColor(), NULL, origin, realowner, REGISTRY_GET, Send_Effect_Except(), SET_NADE_EFFECT, sound, STAT, takedamage, vector, and VOL_BASE.
Referenced by nade_beep(), nade_damage(), nade_touch(), nade_translocate_DestroyDamage(), and toss_nade().
Definition at line 31 of file sv_nades.qc.
References CSQCProjectile(), entity(), REGISTRY_GET, and STAT.
Referenced by nade_damage().
| int nade_choose_random | ( | ) |
Definition at line 494 of file sv_nades.qc.
References FOREACH, nades_CheckTypes(), RandomSelection_AddEnt, RandomSelection_chosen_ent, and RandomSelection_Init().
Referenced by Nades_GetType().
Definition at line 469 of file sv_nades.qc.
References alpha, entity(), exteriormodeltoclient, IS_SPEC, nade, Nade_TrailEffect(), REGISTRY_GET, STAT, and traileffectnum.
Referenced by spawn_held_nade().
| void nade_damage | ( | entity | this, |
| entity | inflictor, | ||
| entity | attacker, | ||
| float | damage, | ||
| int | deathtype, | ||
| .entity | weaponentity, | ||
| vector | hitloc, | ||
| vector | force ) |
Definition at line 244 of file sv_nades.qc.
References ATTEN_LARGE, ATTEN_MAX, CH_SHOTS_SINGLE, DAMAGE_NO, DEATH_ISWEAPON, DEATH_WEAPONOF, entity(), GetResource(), HITTYPE_SECONDARY, IS_ONGROUND, IS_PLAYER, ITEM_DAMAGE_NEEDKILL, max(), max_health, MUTATOR_CALLHOOK, nade_beep(), nade_boom(), nade_burn_spawn(), nade_lifetime, nade_spawn_DestroyDamage(), nade_translocate_DestroyDamage(), nextthink, realowner, SetResource(), setthink, sound, STAT, takedamage, time, UpdateCSQCProjectile(), vector, velocity, VOL_BASE, W_PrepareExplosionByDamage(), WEP_TYPE_MELEE_PRI, and WEP_TYPE_MELEE_SEC.
Referenced by toss_nade().
Definition at line 176 of file sv_nades.qc.
References autocvar_g_nades_nade_refire, autocvar_g_nades_pickup_time, entity(), nade, nade_refire, netname, REGISTRY_GET, spawn_held_nade(), STAT, and time.
Referenced by nade_touch().
Definition at line 568 of file sv_nades.qc.
References autocvar_g_nades_bonus_only, autocvar_g_nades_bonus_onstrength, autocvar_g_nades_client_select, autocvar_g_nades_nade_lifetime, autocvar_g_nades_nade_type, autocvar_g_nades_pokenade_monster_type, CS_CVAR, cvar_cl_nade_type, entity(), fake_nade, nade, nades_CheckTypes(), Nades_FromString(), Nade::netname, NULL, pokenade_type, REGISTRY_GET, spawn_held_nade(), STAT, and StatusEffects_active().
Referenced by nades_CheckThrow(), and NadeOffhand::offhand_think().
Definition at line 36 of file sv_nades.qc.
References CSQCProjectile(), EF_LOWPRECISION, entity(), nade_timer_think(), REGISTRY_GET, setmodel, setthink, STAT, time, and timer.
Referenced by toss_nade().
Definition at line 23 of file sv_nades.qc.
References entity(), nade_lifetime, nextthink, owner, skin, time, and wait.
Referenced by nade_darkness_boom(), nade_ice_boom(), and nade_spawn().
Definition at line 189 of file sv_nades.qc.
References ATTEN_LARGE, ATTEN_MAX, ATTEN_NORM, autocvar_g_nades_pickup, CanThrowNade(), CH_SHOTS, CH_SHOTS_SINGLE, enemy, entity(), g_projectiles, GetResource(), IL_EACH, IS_REAL_CLIENT, ITEM_TOUCH_NEEDKILL, max_health, nade_boom(), nade_pickup(), PROJECTILE_TOUCH, realowner, SND_GRENADE_BOUNCE_RANDOM(), sound, spamsound(), spawnshieldtime, time, toucher, UpdateCSQCProjectile(), and VOL_BASE.
Referenced by toss_nade().
Definition at line 617 of file sv_nades.qc.
References autocvar_g_nades_nade_lifetime, autocvar_g_nades_nade_maxforce, autocvar_g_nades_nade_minforce, autocvar_g_nades_nade_refire, autocvar_g_nades_spread, autocvar_g_projectiles_spread_style, CanThrowNade(), dir, entity(), makevectors, nade, nade_altbutton, nade_prime(), nade_refire, time, toss_nade(), v_angle, v_forward, v_right, v_up, vector, and W_CalculateSpread().
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 408 of file sv_nades.qc.
References autocvar_g_monsters, autocvar_g_nades_ammo, autocvar_g_nades_darkness, autocvar_g_nades_entrap, autocvar_g_nades_heal, autocvar_g_nades_ice, autocvar_g_nades_napalm, autocvar_g_nades_pokenade, autocvar_g_nades_spawn, autocvar_g_nades_translocate, autocvar_g_nades_veil, Nade::m_id, and NADE_TYPE_CHECK.
Referenced by MUTATOR_HOOKFUNCTION(), nade_choose_random(), and nade_prime().
Definition at line 647 of file sv_nades.qc.
References entity(), NULL, and STAT.
Referenced by nades_RemovePlayer().
Definition at line 504 of file sv_nades.qc.
References FOREACH, and ftos().
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), nade_prime(), and Nades_GetType().
Definition at line 513 of file sv_nades.qc.
References nade_choose_random(), Nades_FromString(), and REGISTRY_GET.
Referenced by spawn_held_nade().
Definition at line 434 of file sv_nades.qc.
References autocvar_g_nades, autocvar_g_nades_bonus, autocvar_g_nades_bonus_max, autocvar_g_nades_bonus_score_max, entity(), IS_DEAD, IS_PLAYER, IS_REAL_CLIENT, play2(), Send_Notification(), SND, and STAT.
Referenced by ctf_Handle_Capture(), ctf_Handle_Pickup(), ctf_Handle_Return(), kh_WinnerTeam(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 56 of file sv_nades.qc.
References entity(), ltime, nade_show_particles, nade_special_time, nextthink, and time.
Referenced by nades_spawn_orb().
Definition at line 13 of file sv_nades.qc.
References clientcolors, colormap, colormapPaletteColor, entity(), floor(), team, Team_ColorRGB(), teamplay, and vector.
Referenced by nade_boom(), nade_darkness_think(), and nade_ice_think().
Remove all bonus nades from a player.
Definition at line 457 of file sv_nades.qc.
References entity(), and STAT.
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and nades_RemovePlayer().
Definition at line 885 of file sv_nades.qc.
References entity(), nades_Clear(), and nades_RemoveBonus().
Referenced by CA_CheckWinner(), freezetag_CheckWinner(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), Onslaught_CheckWinner(), and Surv_CheckWinner().
Definition at line 75 of file sv_nades.qc.
References entity(), nades_orb_think(), nades_spawn_orb(), Net_LinkEntity(), orb_send(), org, setmodel, setthink, size, SOLID_TRIGGER, time, and vector.
Referenced by nade_ammo_boom(), nade_entrap_boom(), nade_heal_boom(), nade_veil_boom(), and nades_spawn_orb().
| REGISTER_MUTATOR | ( | nades | , |
| autocvar_g_nades | ) |
Definition at line 692 of file sv_nades.qc.
References autocvar_g_nades, MUTATOR_ONADD, NEW, OFFHAND_NADE, and REGISTER_MUTATOR.
Definition at line 522 of file sv_nades.qc.
References entity(), fake_nade, Nade::m_alpha, Nade::m_color, Nade::m_id, Nade::m_projectile, max(), nade, nade_beep(), nade_customize(), Nade_TrailEffect(), Nades_GetType(), setcefc, setmodel, setthink, STAT, SUB_Remove(), time, and weaponentities.
Referenced by nade_pickup(), and nade_prime().
Definition at line 317 of file sv_nades.qc.
References autocvar_g_nades_nade_health, autocvar_g_nades_nade_newton_style, autocvar_g_nades_nade_refire, autocvar_g_nades_throw_offset, CH_WEAPON_A, DAMAGE_AIM, DPCONTENTS_BODY, DPCONTENTS_BOTCLIP, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SOLID, entity(), FL_PROJECTILE, func_null(), g_bot_dodge, g_damagedbycontents, g_projectiles, GetResource(), IL_PUSH(), Kill_Notification(), makevectors, MIF_ARC, MIF_SPLASH, MOVE_NOMONSTERS, MOVETYPE_BOUNCE, nade_boom(), nade_damage(), nade_spawn(), nade_touch(), NULL, PHYS_INPUT_BUTTON_CROUCH, PROJECTILE_MAKETRIGGER, set_movetype(), setcefc, SetResource(), setthink, settouch, SOLID_CORPSE, STAT, time, trace_startsolid, v_forward, v_right, v_up, vectoangles(), vector, W_CalculateProjectileVelocity(), W_SetupShot, and w_shotorg.
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and nades_CheckThrow().
| bool nade_altbutton |
Definition at line 615 of file sv_nades.qc.
Referenced by nades_CheckThrow().
| entity nade_spawnloc |
Definition at line 11 of file sv_nades.qc.
| float nade_time_primed |
Definition at line 9 of file sv_nades.qc.
| NadeOffhand OFFHAND_NADE |
Definition at line 691 of file sv_nades.qc.
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and REGISTER_MUTATOR().