Xonotic
|
#include <common/items/item/pickup.qh>
#include <common/resources/resources.qh>
#include <common/stats.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 | |
entity | GetAmmoItem (Resource ammotype) |
string | GetAmmoName (Resource ammotype) |
string | GetAmmoPicture (Resource ammotype) |
string | W_FixWeaponOrder (string order, float complete) |
string | W_FixWeaponOrder_AllowIncomplete (entity this, string order) |
string | W_FixWeaponOrder_BuildImpulseList (string o) |
string | W_FixWeaponOrder_ForceComplete (string order) |
string | W_Model (string w_mdl) |
string | W_NameWeaponOrder (string order) |
string | W_NumberWeaponOrder (string order) |
WepSet | W_RandomWeapons (entity e, WepSet remaining, int n) |
string | W_Sound (string w_snd) |
string | W_UndeprecateName (string s) |
int | weaponslot (.entity weaponentity) |
Variables | |
const int | MAX_WEAPONSLOTS = 2 |
entity | weaponentities [MAX_WEAPONSLOTS] |
string | weaponorder_byid |
const int | WEP_FLAG_BLEED = BIT(14) |
const int | WEP_FLAG_CANCLIMB = BIT(3) |
const int | WEP_FLAG_DUALWIELD = BIT(11) |
const int | WEP_FLAG_HIDDEN = BIT(5) |
const int | WEP_FLAG_MUTATORBLOCKED = BIT(8) |
const int | WEP_FLAG_NODUAL = BIT(12) |
const int | WEP_FLAG_NORMAL = BIT(4) |
const int | WEP_FLAG_NOTRUEAIM = BIT(15) |
const int | WEP_FLAG_PENETRATEWALLS = BIT(13) |
const int | WEP_FLAG_RELOADABLE = BIT(6) |
const int | WEP_FLAG_SPECIALATTACK = BIT(16) |
const int | WEP_FLAG_SUPERWEAPON = BIT(7) |
const int | WEP_TYPE_HITSCAN = BIT(2) |
const int | WEP_TYPE_MELEE_PRI = BIT(9) |
const int | WEP_TYPE_MELEE_SEC = BIT(10) |
const int | WEP_TYPE_OTHER = BIT(0) |
const int | WEP_TYPE_SPLASH = BIT(1) |
const int | WS_CLEAR = 0 |
no weapon selected More... | |
const int | WS_DROP = 2 |
deselecting frame More... | |
const int | WS_INUSE = 3 |
fire state More... | |
const int | WS_RAISE = 1 |
raise frame More... | |
const int | WS_READY = 4 |
idle frame More... | |
Definition at line 234 of file all.qc.
References LOG_WARNF, NULL, STAT_CELLS, STAT_NAILS, STAT_ROCKETS, and STAT_SHELLS.
Definition at line 220 of file all.qc.
Referenced by formatmessage().
Definition at line 206 of file all.qc.
Referenced by DrawAmmoItem(), and W_DecreaseAmmo().
Definition at line 95 of file all.qc.
References fixPriorityList(), WEP_FIRST, WEP_IMPULSE_BEGIN, and WEP_LAST.
Referenced by LocalCommand_sendcvar(), W_FixWeaponOrder_AllowIncomplete(), W_FixWeaponOrder_ForceComplete(), and XonoticWeaponsList_draw().
Definition at line 177 of file all.qc.
References W_FixWeaponOrder().
Referenced by STATIC_INIT(), and W_Model().
Definition at line 162 of file all.qc.
References ftos(), heapsort(), NULL, strcat(), string_null, substring(), W_FixWeaponOrder_BuildImpulseList_buf, W_FixWeaponOrder_BuildImpulseList_cmp(), W_FixWeaponOrder_BuildImpulseList_order, W_FixWeaponOrder_BuildImpulseList_swap(), WEP_FIRST, and WEP_LAST.
Referenced by HUD_Weapons(), and W_Model().
Definition at line 182 of file all.qc.
References cvar_defstring(), W_FixWeaponOrder(), and W_NumberWeaponOrder().
Referenced by HUD_Weapons(), and W_Model().
Definition at line 288 of file all.qc.
References alpha, angles, anim_set(), argv(), autocvar_chase_active, autocvar_r_drawviewmodel, CLIENT_COMMAND, CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, compressShotOrigin(), CS_CVAR, CSQCModel_server2csqc(), csqcplayer, decompressShotOrigin(), EF_ADDITIVE, EF_FULLBRIGHT, entity(), FOREACH, FOREACH_CLIENT, frame, gettagindex, gettaginfo, IS_REAL_CLIENT, IS_SPEC, LOG_HELP, LOG_INFOF, LOG_WARNF, M_ARGV, MASK_NORMAL, maxs, mins, model, movedir, msg_entity, MSG_ONE, MUTATOR_CALLHOOK, name, NET_HANDLE, nextthink, NULL, oldorigin, owner, player_localentnum, pointparticles, random(), ReadRegistered, realowner, REGISTER_NET_C2S, REGISTER_NET_TEMP, REGISTRY_GET, renderflags, REPLICATE(), RF_VIEWMODEL, scale, setanim, setmodel, setorigin(), setthink, shotdir, shotorg, spawn(), stov(), strcat(), strcpy, time, v, vector(), VF_CL_VIEWANGLES, view_ofs, viewmodelforclient, viewmodels, W_FixWeaponOrder_AllowIncomplete(), W_FixWeaponOrder_BuildImpulseList(), W_FixWeaponOrder_ForceComplete(), W_GunAlign(), W_Model(), Weapon_whereis(), weaponorder_byimpulse, weaponslot(), WriteByte(), WriteRegistered, WS_DROP, and WS_RAISE.
Referenced by W_Model().
Definition at line 125 of file all.qc.
References mapPriorityList(), and W_NameWeaponOrder_MapFunc().
Referenced by XonoticWeaponsList_draw().
Definition at line 136 of file all.qc.
References mapPriorityList(), and W_NumberWeaponOrder_MapFunc().
Referenced by HUD_Weapons(), LocalCommand_sendcvar(), W_FixWeaponOrder_ForceComplete(), XonoticWeaponsList_draw(), and XonoticWeaponsList_toString().
Definition at line 188 of file all.qc.
References FOREACH, RandomSelection_AddEnt, RandomSelection_chosen_ent, RandomSelection_Init(), result, and WepSet_FromWeapon.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 281 of file all.qc.
References M_ARGV, MUTATOR_CALLHOOK, and strcat().
Definition at line 110 of file all.qc.
Referenced by GiveItems(), spawnfunc(), and W_NumberWeaponOrder_MapFunc().
Definition at line 16 of file weapon.qh.
References MAX_WEAPONSLOTS, and weaponentities.
Referenced by client_hasweapon(), GrapplingHookSend(), Monster_Attack_Check(), W_Model(), W_Reload(), W_WeaponFrame(), and weapon_prepareattack_do().
const int MAX_WEAPONSLOTS = 2 |
Definition at line 13 of file weapon.qh.
Referenced by AppendItemcodes(), bot_cmd_select_weapon(), buff_Inferno_CalculateTime(), CreatureFrame_FallDamage(), CSQC_UpdateView(), Damage(), DrawReticle(), findperpendicular(), FixIntermissionClient(), Freeze(), GetCurrentFov(), GiveItems(), havocbot_ai(), havocbot_movetogoal(), HitSound(), IMPULSE(), Item_GiveTo(), Monster_Remove(), MUTATOR_HOOKFUNCTION(), NIX_GiveCurrentWeapon(), PlayerDamage(), PlayerPreThink(), PlayerThink(), PM_check_hitground(), PM_ClientMovement_UpdateStatus(), Portal_Think(), PutObserverInServer(), PutPlayerInServer(), REGISTER_MUTATOR(), RemoveGrapplingHooks(), SetSpectatee(), STATIC_INIT(), Unfreeze(), vehicles_enter(), vehicles_exit(), vehicles_spawn(), View_CheckButtonStatus(), W_DualWielding(), W_LastWeapon(), W_ResetGunAlign(), weapon_byid_handle(), weapon_group_handle(), weapon_prepareattack_do(), weaponslot(), and X().
entity weaponentities[MAX_WEAPONSLOTS] |
Definition at line 14 of file weapon.qh.
Referenced by AppendItemcodes(), bot_cmd_debug_assert_canfire(), bot_cmd_select_weapon(), buff_Inferno_CalculateTime(), CheatCommand(), CL_SpawnWeaponentity(), CreatureFrame_FallDamage(), Damage(), Drag_Update(), findperpendicular(), FixIntermissionClient(), for(), formatmessage(), Freeze(), GameCommand_animbench(), GameCommand_gettaginfo(), GiveBall(), GiveItems(), havocbot_ai(), havocbot_movetogoal(), IMPULSE(), Item_GiveTo(), Monster_Dead(), Monster_Remove(), Monster_Think(), MUTATOR_HOOKFUNCTION(), NIX_GiveCurrentWeapon(), PlayerDamage(), PlayerPreThink(), PlayerThink(), PM_check_hitground(), PM_ClientMovement_UpdateStatus(), Portal_Think(), PutObserverInServer(), PutPlayerInServer(), REGISTER_MUTATOR(), RemoveGrapplingHooks(), SetSpectatee(), TEST(), Turret::Turret ::tr_precache(), Unfreeze(), vehicles_enter(), vehicles_exit(), vehicles_spawn(), W_DualWielding(), W_LastWeapon(), W_ResetGunAlign(), W_WeaponFrame(), weapon_byid_handle(), weapon_group_handle(), weapon_prepareattack_do(), weaponslot(), and X().
string weaponorder_byid |
Definition at line 214 of file weapon.qh.
Referenced by STATIC_INIT(), W_NextWeapon(), and W_PreviousWeapon().
Definition at line 198 of file weapon.qh.
Referenced by PlayerDamage().
Definition at line 206 of file weapon.qh.
Referenced by client_hasweapon(), and W_WeaponFrame().
Definition at line 200 of file weapon.qh.
Referenced by HUD_Weapons(), Scoreboard_AccuracyStats_Draw(), want_weapon(), and weapons_most().
Definition at line 203 of file weapon.qh.
Referenced by Dump_Weapon_Settings(), GiveItems(), HUD_Weapons(), NIX_CanChooseWeapon(), RandomItems_GetRandomVanillaItemClassName(), REGISTER_MUTATOR(), Scoreboard_AccuracyStats_Draw(), W_GetCycleWeapon(), want_weapon(), weapon_defaultspawnfunc(), weapons_all(), weapons_most(), and XonoticWeaponsList_drawListBoxItem().
Definition at line 199 of file weapon.qh.
Referenced by NIX_CanChooseWeapon(), want_weapon(), and weapons_most().
Definition at line 210 of file weapon.qh.
Referenced by TrueAimCheck().
Definition at line 208 of file weapon.qh.
Referenced by W_SetupShot_Dir_ProjectileSize_Range().
Definition at line 201 of file weapon.qh.
Referenced by havocbot_ai(), NIX_GiveCurrentWeapon(), PutPlayerInServer(), W_Reload(), and W_WeaponFrame().
Definition at line 211 of file weapon.qh.
Referenced by Dump_Weapon_Settings(), fixPriorityList(), GiveItems(), HUD_Weapons(), Scoreboard_AccuracyStats_Draw(), want_weapon(), weapons_all(), and weapons_most().
Definition at line 202 of file weapon.qh.
Referenced by STATIC_INIT(), and weapon_defaultspawnfunc().
Definition at line 204 of file weapon.qh.
Referenced by weapon_thinkf().
Definition at line 205 of file weapon.qh.
Referenced by weapon_thinkf().
Definition at line 195 of file weapon.qh.
Referenced by Scoreboard_AccuracyStats_Draw().
const int WS_CLEAR = 0 |
no weapon selected
Definition at line 30 of file weapon.qh.
Referenced by viewmodel_draw(), w_clear(), and W_WeaponFrame().
const int WS_DROP = 2 |
deselecting frame
Definition at line 34 of file weapon.qh.
Referenced by viewmodel_draw(), W_Model(), and W_WeaponFrame().
const int WS_INUSE = 3 |
fire state
Definition at line 36 of file weapon.qh.
Referenced by W_WeaponFrame(), and weapon_prepareattack_do().
const int WS_RAISE = 1 |
raise frame
Definition at line 32 of file weapon.qh.
Referenced by viewmodel_draw(), W_Model(), W_WeaponFrame(), and weapon_thinkf().
const int WS_READY = 4 |
idle frame
Definition at line 38 of file weapon.qh.
Referenced by bot_cmd_debug_assert_canfire(), DropBall(), GiveBall(), w_ready(), W_Reload(), W_ThrowWeapon(), W_WeaponFrame(), and weapon_prepareattack_check().