|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include <common/items/item/pickup.qh>#include <common/resources/resources.qh>#include <common/stats.qh>#include <common/effects/qc/_mod.qh>#include <common/items/_mod.qh>Go to the source code of this file.
Classes | |
| class | OffhandWeapon |
| class | Weapon |
| fields which are explicitly/manually set are marked with "M", fields set automatically are marked with "A" More... | |
| class | WeaponPickup |
Macros | |
| #define | SPAWNFUNC_WEAPON(name, weapon) |
Typedefs | |
| using | WepSet = vector |
Functions | |
| void | weapon_defaultspawnfunc (entity this, Weapon e) |
| int | weaponslot (.entity weaponentity) |
Definition at line 150 of file weapon.qh.
Referenced by REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), and REGISTER_WEAPON().
Definition at line 30 of file spawning.qc.
References Weapon::ammo_type, argv(), autocvar_g_balance_superweapons_time, autocvar_g_pickup_respawntime_superweapon, autocvar_g_pickup_respawntime_weapon, autocvar_g_pickup_respawntimejitter_superweapon, autocvar_g_pickup_respawntimejitter_weapon, autocvar_g_pickup_weapons_anyway, classname, colormapPaletteColor, count, cvar(), entity(), GetAmmoConsumption(), GetResource(), glowmod, internalteam, Item_CopyFields(), ITEM_IS_LOOT, Item_IsDefinitionAllowed(), M_ARGV, Weapon::m_color, m_isreplaced, Weapon::m_spawnfunc_hookreplace(), modelindex, MUTATOR_CALLHOOK, Weapon::netname, owner, pickup_anyway, respawntime, respawntimejitter, rint(), SetResource(), spawn, Weapon::spawnflags, StartItem(), startitem_failed, strcat(), superweapons_finished, team, tokenize_console, W_Apply_Weaponreplace(), weapon_defaultspawnfunc(), Weapon_from_name(), weaponsInMapAll, WEP_CVAR, WEP_FLAG_MUTATORBLOCKED, WEP_FLAG_SUPERWEAPON, WepSet_FromWeapon, and Weapon::wr_init().
Referenced by Item_Initialise(), W_ThrowNewWeapon(), and weapon_defaultspawnfunc().
Definition at line 19 of file weapon.qh.
References entity(), MAX_WEAPONSLOTS, and weaponentities.
Referenced by _wepent_send(), client_hasweapon(), GrapplingHookSend(), Monster_Attack_Check(), W_Arc_Beam_Send(), W_MuzzleFlash(), W_Reload(), W_WeaponFrame(), weapon_prepareattack_do(), and wframe_send().
| int autocvar_cl_tracers_teamcolor |
Definition at line 207 of file weapon.qh.
Referenced by NET_HANDLE().
| int max_shot_distance = 32768 |
Definition at line 203 of file weapon.qh.
Referenced by bumblebee_gunner_frame(), CheatCommand(), crosshair_trace(), CursorToWorldCoord(), Draw_ShowNames(), fireBullet_falloff(), HUD_Crosshair(), InitGameplayMode(), spiderbot_frame(), spiderbot_rocket_do(), TrueAimCheck(), turret_initparams(), W_HitPlotAnalysis(), W_OverkillNex_Attack(), W_Vaporizer_Attack(), W_Vortex_Attack(), and WarpZone_crosshair_trace().
| const int MAX_WEAPONSLOTS = 2 |
Definition at line 16 of file weapon.qh.
Referenced by AppendItemcodes(), bot_cmd_select_weapon(), bumblebee_gunner_enter(), bumblebee_gunner_exit(), CreatureFrame_FallDamage(), CSQC_UpdateView(), Damage(), DrawReticle(), FixIntermissionClient(), for(), freezetag_Freeze(), freezetag_Unfreeze(), GiveItems(), havocbot_ai(), havocbot_movetogoal(), HitSound(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IsZooming(), Item_GiveTo(), Monster_Remove(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), nade_ammo_touch(), NIX_GiveCurrentWeapon(), PlayerDamage(), PlayerPreThink(), PlayerThink(), PM_check_hitground(), PM_ClientMovement_UpdateStatus(), Portal_Think(), Porto_Draw(), PutObserverInServer(), PutPlayerInServer(), REGISTER_MUTATOR(), Remove_GrapplingHook(), RemoveGrapplingHooks(), REPLICATE_APPLYCHANGE(), Reset_ArcBeam(), SetSpectatee(), spiderbot_frame(), STATIC_INIT(), trigger_magicear_processmessage(), vehicles_enter(), vehicles_exit(), vehicles_spawn(), View_CheckButtonStatus(), W_Devastator_Unregister(), W_DualWielding(), W_GunAlign(), W_ResetGunAlign(), weapon_byid_handle(), weapon_group_handle(), weapon_prepareattack_do(), weaponslot(), and X().
| OffhandWeapon offhand |
Definition at line 199 of file weapon.qh.
Referenced by client_hasweapon().
| entity weaponentities[MAX_WEAPONSLOTS] |
Definition at line 17 of file weapon.qh.
Referenced by AppendItemcodes(), bot_cmd_debug_assert_canfire(), bot_cmd_select_weapon(), bumblebee_gunner_enter(), bumblebee_gunner_exit(), CheatCommand(), CL_SpawnWeaponentity(), CreatureFrame_FallDamage(), Damage(), Drag_Update(), FixIntermissionClient(), for(), formatmessage(), freezetag_Freeze(), freezetag_Unfreeze(), GameCommand_animbench(), GameCommand_gettaginfo(), GiveBall(), GiveItems(), havocbot_ai(), havocbot_movetogoal(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), Item_GiveTo(), M_Wyvern_Attack_Fireball(), Monster_Remove(), Monster_Think(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), nade_ammo_touch(), NIX_GiveCurrentWeapon(), ObserverOrSpectatorThink(), OffhandHook::offhand_think(), PlayerDamage(), PlayerPreThink(), PlayerThink(), PM_check_hitground(), PM_ClientMovement_UpdateStatus(), Portal_Think(), PutObserverInServer(), PutPlayerInServer(), racer_frame(), raptor_frame(), REGISTER_MUTATOR(), RemoveGrapplingHooks(), REPLICATE_APPLYCHANGE(), Reset_ArcBeam(), reset_map(), SetSpectatee(), spawn_held_nade(), spiderbot_frame(), TEST(), Turret::tr_attack(), trigger_magicear_processmessage(), turret_initialize(), vehicles_enter(), vehicles_exit(), vehicles_spawn(), W_Devastator_Unregister(), W_DualWielding(), W_GunAlign(), W_ResetGunAlign(), W_WeaponFrame(), weapon_byid_handle(), weapon_group_handle(), weapon_prepareattack_do(), weaponslot(), and X().
| string weaponorder_byid |
Definition at line 230 of file weapon.qh.
Referenced by STATIC_INIT(), W_NextWeapon(), and W_PreviousWeapon().
Definition at line 225 of file weapon.qh.
Referenced by DamageEffect().
Definition at line 214 of file weapon.qh.
Referenced by PlayerDamage().
Definition at line 222 of file weapon.qh.
Referenced by client_hasweapon(), and W_WeaponFrame().
Definition at line 216 of file weapon.qh.
Referenced by GiveItems(), Scoreboard_AccuracyStats_Draw(), STATIC_INIT(), STATIC_INIT(), want_weapon(), weapons_all(), Weapons_Draw(), weapons_most(), and XonoticMutatorsDialog_fill().
Definition at line 219 of file weapon.qh.
Referenced by Dump_Weapon_Settings(), GiveItems(), HUD_Weapons(), Item_RandomFromList(), NIX_CanChooseWeapon(), RandomItems_GetRandomVanillaItemClassName(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), Scoreboard_AccuracyStats_Draw(), STATIC_INIT(), want_weapon(), weapon_defaultspawnfunc(), weapons_all(), Weapons_Draw(), weapons_most(), and XonoticWeaponsList_drawListBoxItem().
Definition at line 215 of file weapon.qh.
Referenced by NIX_CanChooseWeapon(), want_weapon(), and weapons_most().
Definition at line 226 of file weapon.qh.
Referenced by TrueAimCheck().
Definition at line 224 of file weapon.qh.
Referenced by W_SetupShot_Dir_ProjectileSize_Range().
Definition at line 217 of file weapon.qh.
Referenced by havocbot_ai(), NIX_GiveCurrentWeapon(), PutPlayerInServer(), W_Reload(), and W_WeaponFrame().
Definition at line 227 of file weapon.qh.
Referenced by Dump_Weapon_Settings(), fixPriorityList(), STATIC_INIT(), and STATIC_INIT().
Definition at line 218 of file weapon.qh.
Referenced by spritelookupblinkvalue(), startsWith(), STATIC_INIT(), and weapon_defaultspawnfunc().
Definition at line 220 of file weapon.qh.
Referenced by nade_damage(), and weapon_thinkf().
Definition at line 221 of file weapon.qh.
Referenced by nade_damage(), and weapon_thinkf().
Definition at line 211 of file weapon.qh.
Referenced by Scoreboard_AccuracyStats_Draw(), and STATIC_INIT().
| const int WS_CLEAR = 0 |
no weapon selected
Definition at line 33 of file weapon.qh.
Referenced by viewmodel_draw(), w_clear(), and W_WeaponFrame().
| const int WS_DROP = 2 |
deselecting frame
Definition at line 37 of file weapon.qh.
Referenced by NET_HANDLE(), viewmodel_draw(), and W_WeaponFrame().
| const int WS_INUSE = 3 |
fire state
Definition at line 39 of file weapon.qh.
Referenced by W_Hagar_Attack2_Load(), W_WeaponFrame(), and weapon_prepareattack_do().
| const int WS_RAISE = 1 |
raise frame
Definition at line 35 of file weapon.qh.
Referenced by NET_HANDLE(), viewmodel_draw(), W_WeaponFrame(), and weapon_thinkf().
| const int WS_READY = 4 |
idle frame
Definition at line 41 of file weapon.qh.
Referenced by bot_cmd_debug_assert_canfire(), DropBall(), GiveBall(), W_Hagar_Attack2_Load(), w_ready(), W_Reload(), W_ThrowWeapon(), W_WeaponFrame(), and weapon_prepareattack_check().