|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include <common/command/_mod.qh>#include <common/stats.qh>#include "config.qh"#include "weapon.qh"#include "calculations.qh"#include "projectiles.qh"#include <common/models/all.qh>#include <common/effects/all.qh>#include <common/util.qh>#include <server/bot/api.qh>#include "all.inc"Go to the source code of this file.
Classes | |
| class | NullWeapon |
Macros | |
| #define | _W_CONFIG(class, fld, T, wepname) |
| #define | _W_NET(class, fld, T, wepname) |
| #define | _W_PROP(class, fld, T, wepname) |
| #define | _W_PROP_CVAR(wepname, fld) |
| #define | _W_UPDATE(class, fld, T, wepname) |
| #define | DEFAULT_FILENAME "weapons_dump.cfg" |
| #define | G_SHOOTFROMFIXEDORIGIN autocvar_g_shootfromfixedorigin |
| #define | REGISTER_WEAPON(id, inst) |
| #define | W_CONFIG(class, wepname, fld, T, m) |
| #define | W_CONFIG_BEGIN(class) |
| #define | W_CONFIG_BOTH(class, fld, T, wepname) |
| #define | W_CONFIG_END() |
| #define | W_CONFIG_NONE(class, fld, T, wepname) |
| #define | W_CONFIG_PRI(class, fld, T, wepname) |
| #define | W_CONFIG_SEC(class, fld, T, wepname) |
| #define | W_NET(class, wepname, fld, T, m) |
| #define | W_NET_BEGIN(class) |
| #define | W_NET_BOTH(class, fld, T, wepname) |
| #define | W_NET_END() |
| #define | W_NET_NONE(class, fld, T, wepname) |
| #define | W_NET_PRI(class, fld, T, wepname) |
| #define | W_NET_SEC(class, fld, T, wepname) |
| #define | W_PROP(class, wepname, fld, T, m) |
| #define | W_PROP_BEGIN(class) |
| #define | W_PROP_BOTH(class, fld, T, wepname) |
| #define | W_PROP_END() |
| #define | W_PROP_NONE(class, fld, T, wepname) |
| #define | W_PROP_PRI(class, fld, T, wepname) |
| #define | W_PROP_SEC(class, fld, T, wepname) |
| #define | W_PROPS(L, class, prefix) |
| #define | W_UPDATE(class, wepname, fld, T, m) |
| #define | W_UPDATE_BEGIN(class) |
| #define | W_UPDATE_BOTH(class, fld, T, wepname) |
| #define | W_UPDATE_END() |
| #define | W_UPDATE_NONE(class, fld, T, wepname) |
| #define | W_UPDATE_PRI(class, fld, T, wepname) |
| #define | W_UPDATE_SEC(class, fld, T, wepname) |
| #define | WEP_CVAR(wep, name) |
| #define | WEP_CVAR_BOTH(wep, isprimary, name) |
| #define | WEP_CVAR_PRI(wep, name) |
| #define | WEP_CVAR_SEC(wep, name) |
| #define | WEP_IMPULSE_BEGIN 230 |
| #define | WEP_IMPULSE_END bound(WEP_IMPULSE_BEGIN, WEP_IMPULSE_BEGIN + (REGISTRY_COUNT(Weapons) - 1) - 1, 253) |
| #define | WEP_LAST (REGISTRY_COUNT(Weapons) - 1) |
| #define | WEPSET(id) |
| #define | WepSet_FromWeapon(it) |
| #define | X(fld, T) |
| #define _W_CONFIG | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
| #define _W_NET | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
| #define _W_PROP | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
Definition at line 196 of file all.qh.
| #define _W_PROP_CVAR | ( | wepname, | |
| fld ) |
| #define _W_UPDATE | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
Definition at line 246 of file all.qh.
| #define G_SHOOTFROMFIXEDORIGIN autocvar_g_shootfromfixedorigin |
Definition at line 418 of file all.qh.
Referenced by shotorg_adjust().
| #define REGISTER_WEAPON | ( | id, | |
| inst ) |
Definition at line 136 of file all.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(), 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(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), REGISTER_WEAPON(), and REGISTER_WEAPON().
| #define W_CONFIG | ( | class, | |
| wepname, | |||
| fld, | |||
| T, | |||
| m ) |
| #define W_CONFIG_BEGIN | ( | class | ) |
| #define W_CONFIG_BOTH | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
Definition at line 213 of file all.qh.
| #define W_CONFIG_NONE | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
| #define W_CONFIG_PRI | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
| #define W_CONFIG_SEC | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
| #define W_NET | ( | class, | |
| wepname, | |||
| fld, | |||
| T, | |||
| m ) |
| #define W_NET_BEGIN | ( | class | ) |
| #define W_NET_BOTH | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
| #define W_NET_NONE | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
| #define W_NET_PRI | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
| #define W_NET_SEC | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
| #define W_PROP | ( | class, | |
| wepname, | |||
| fld, | |||
| T, | |||
| m ) |
| #define W_PROP_BOTH | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
Definition at line 191 of file all.qh.
| #define W_PROP_NONE | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
| #define W_PROP_PRI | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
| #define W_PROP_SEC | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
| #define W_PROPS | ( | L, | |
| class, | |||
| prefix ) |
Definition at line 179 of file all.qh.
| #define W_UPDATE | ( | class, | |
| wepname, | |||
| fld, | |||
| T, | |||
| m ) |
| #define W_UPDATE_BEGIN | ( | class | ) |
Definition at line 236 of file all.qh.
| #define W_UPDATE_BOTH | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
Definition at line 231 of file all.qh.
| #define W_UPDATE_NONE | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
| #define W_UPDATE_PRI | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
| #define W_UPDATE_SEC | ( | class, | |
| fld, | |||
| T, | |||
| wepname ) |
| #define WEP_CVAR | ( | wep, | |
| name ) |
Definition at line 321 of file all.qh.
Referenced by Arc_GetHeat_Percent(), Arc_Smoke(), Draw_ArcBeam(), electro_orb_draw(), GetAmmoConsumption(), havocbot_movetogoal(), HUD_Crosshair(), MachineGun_Heat(), MachineGun_Update_Spread(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), NET_HANDLE(), PlayerThink(), Porto_Draw(), vortex_glowcolor(), W_Arc_Attack(), W_Arc_Attack_Bolt(), W_Arc_Beam(), W_Arc_Beam_Think(), W_Arc_Bolt_Explode(), W_Arc_Bolt_Touch(), W_Devastator_Attack(), W_Devastator_DoRemoteExplode(), W_Devastator_Explode(), W_Devastator_RemoteExplode(), W_Devastator_Think(), W_Electro_ExplodeCombo(), W_Electro_ExplodeComboThink(), W_Electro_Orb_Damage(), W_Electro_Orb_ExplodeOverTime(), W_Electro_TriggerCombo(), W_MachineGun_Attack(), W_MachineGun_Attack_Auto(), W_MachineGun_Attack_Burst(), W_MachineGun_Attack_Frame(), W_MineLayer_Attack(), W_MineLayer_Damage(), W_MineLayer_DoRemoteExplode(), W_MineLayer_Explode(), W_MineLayer_ProximityExplode(), W_MineLayer_RemoteExplode(), W_MineLayer_Think(), W_Mortar_Attack(), W_Mortar_Attack2(), W_OverkillMachineGun_Attack_Auto(), W_OverkillNex_Attack(), W_OverkillRocketPropelledChainsaw_Explode(), W_Seeker_Fire_Flac(), W_Seeker_Fire_Missile(), W_Seeker_Fire_Tag(), W_Seeker_Flac_Explode(), W_Seeker_Missile_Explode(), W_Seeker_Missile_Think(), W_Seeker_Tag_Touch(), W_Seeker_Tracker_Think(), W_Seeker_Vollycontroller_Think(), W_Tuba_NoteOn(), W_Tuba_NoteThink(), W_Vortex_Attack(), W_Vortex_Charge(), weapon_defaultspawnfunc(), and weapon_prepareattack_checkammo().
| #define WEP_CVAR_BOTH | ( | wep, | |
| isprimary, | |||
| name ) |
Definition at line 324 of file all.qh.
Referenced by W_Crylink_LinkExplode(), W_Crylink_LinkJoinEffect_Think(), W_Crylink_Touch(), W_HLAC_Touch(), W_OverkillNex_Attack(), W_Porto_Attack(), W_Rifle_FireBullet(), and W_Vortex_Attack().
| #define WEP_CVAR_PRI | ( | wep, | |
| name ) |
Definition at line 322 of file all.qh.
Referenced by GetAmmoConsumption(), W_Blaster_Attack(), W_Blaster_Think(), W_Blaster_Touch(), W_Crylink_Attack(), W_Electro_Attack_Bolt(), W_Electro_Bolt_Think(), W_Electro_Explode(), W_Fireball_Attack1(), W_Fireball_Attack1_Frame0(), W_Fireball_Attack1_Frame1(), W_Fireball_Attack1_Frame2(), W_Fireball_Attack1_Frame3(), W_Fireball_Attack1_Frame4(), W_Fireball_Explode(), W_Fireball_Think(), W_Hagar_Attack(), W_Hagar_Attack_Auto(), W_Hagar_Explode(), W_HLAC_Attack(), W_HLAC_Attack_Frame(), W_Mortar_Attack(), W_Mortar_Grenade_Explode(), W_Mortar_Grenade_Think1(), W_Mortar_Grenade_Touch1(), W_OverkillHeavyMachineGun_Attack_Auto(), W_OverkillMachineGun_Attack_Auto(), W_OverkillRocketPropelledChainsaw_Attack(), W_OverkillRocketPropelledChainsaw_Explode(), W_OverkillRocketPropelledChainsaw_Think(), W_Shotgun_Attack3_Frame1(), W_Shotgun_Attack3_Frame2(), and W_Vaporizer_Attack().
| #define WEP_CVAR_SEC | ( | wep, | |
| name ) |
Definition at line 323 of file all.qh.
Referenced by HUD_Crosshair(), NET_HANDLE(), W_Crylink_Attack2(), W_Electro_Attack_Orb(), W_Electro_CheckAttack(), W_Electro_Explode(), W_Electro_Orb_Stick(), W_Electro_Orb_Touch(), W_Fireball_Attack2(), W_Fireball_Firemine_Think(), W_Fireball_Firemine_Touch(), W_Hagar_Attack2(), W_Hagar_Attack2_Load(), W_Hagar_Attack2_Load_Release(), W_Hagar_Damage(), W_Hagar_Explode2(), W_HLAC_Attack2(), W_Hook_Attack2(), W_Hook_Explode2(), W_Mortar_Attack2(), W_Mortar_Grenade_Explode2(), W_Mortar_Grenade_Touch2(), W_Shotgun_Attack2(), W_Shotgun_Attack3_Frame1(), W_Shotgun_Attack3_Frame2(), and W_Shotgun_Melee_Think().
| #define WEP_IMPULSE_BEGIN 230 |
Definition at line 334 of file all.qh.
Referenced by STATIC_INIT(), and W_FixWeaponOrder().
| #define WEP_IMPULSE_END bound(WEP_IMPULSE_BEGIN, WEP_IMPULSE_BEGIN + (REGISTRY_COUNT(Weapons) - 1) - 1, 253) |
Definition at line 335 of file all.qh.
Referenced by STATIC_INIT().
| #define WEP_LAST (REGISTRY_COUNT(Weapons) - 1) |
Definition at line 327 of file all.qh.
Referenced by accuracy_send(), bot_cmd_select_weapon(), CSQC_Init(), HUD_Notify(), NET_HANDLE(), W_FixWeaponOrder(), W_FixWeaponOrder_BuildImpulseList(), Weapons_Draw(), WeaponStats_LogItem(), WeaponStats_ready(), and XonoticMutatorsDialog_fill().
| #define WEPSET | ( | id | ) |
Definition at line 45 of file all.qh.
Referenced by ClientConnect(), GiveBall(), havocbot_chooseweapon(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), NIX_GiveCurrentWeapon(), target_init_use(), W_Porto_Fail(), and W_WeaponFrame().
| #define WepSet_FromWeapon | ( | it | ) |
Definition at line 46 of file all.qh.
Referenced by client_hasweapon(), GiveItems(), GiveWeapon(), Item_GiveTo(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), SpawnThrownWeapon(), StartItem(), W_GiveWeapon(), W_RandomWeapons(), W_SwitchToOtherWeapon(), W_ThrowNewWeapon(), W_ThrowWeapon(), W_WeaponFrame(), weapon_defaultspawnfunc(), and Weapons_Draw().
Definition at line 53 of file all.qc.
References BIT, REGISTRY_MAX, Weapons, and WEP_FIRST.
Referenced by STATIC_INIT().
supported formats:
writes: this.origin, this.angles this.weaponchild this.movedir, this.view_ofs, this.movedir_aligned this.spawnorigin (SVQC only) attachment stuff anim stuff to free: call again with "" remove the ent
Definition at line 347 of file all.qc.
References angles, anim_fire1, anim_fire2, anim_idle, anim_reload, animfixfps(), compressShotOrigin(), decompressShotOrigin(), entity(), frame, gettagindex, gettaginfo, LOG_WARNF, m_gunalign, MASK_NORMAL, maxs, mins, model, movedir, movedir_aligned, name, NULL, oldorigin, owner, renderflags, RF_VIEWMODEL, setanim, setmodel, shotorg_adjust(), spawnorigin, STAT, strcat(), vector, view_ofs, viewmodelforclient, W_GunAlign(), W_Model(), weaponchild, and wframe.
Referenced by CL_Weapon_GetShotOrg(), CL_Weaponentity_Think(), and viewmodel_draw().
Definition at line 189 of file all.qc.
References entity(), FOREACH, LOG_WARNF, Resource::netname, and NULL.
Referenced by ammo_pickupevalfunc().
Definition at line 210 of file all.qc.
References STAT_CELLS, STAT_NAILS, STAT_ROCKETS, and STAT_SHELLS.
Referenced by DrawAmmoItem(), and Weapons_Draw().
| NET_HANDLE | ( | WeaponUpdate | , |
| bool | isnew ) |
Definition at line 278 of file all.qh.
References ReadByte(), REGISTRY_GET, and Weapons.
| WepSet ReadWepSet | ( | ) |
Definition at line 87 of file all.qc.
References ReadInt24_t(), ReadInt48_t, ReadInt72_t, REGISTRY_MAX, and Weapons.
| REGISTER_WEAPON | ( | Null | , |
| NEW(NullWeapon) | ) |
References NEW, REGISTER_WEAPON, REGISTRY_DEFINE_GET, and Weapons.
| REPLICATE_INIT | ( | bool | , |
| cvar_cl_accuracy_data_receive | ) |
| REPLICATE_INIT | ( | bool | , |
| cvar_cl_accuracy_data_share | ) |
| REPLICATE_INIT | ( | bool | , |
| cvar_cl_weapon_switch_fallback_to_impulse | ) |
| REPLICATE_INIT | ( | bool | , |
| cvar_cl_weapon_switch_reload | ) |
| REPLICATE_INIT | ( | int | , |
| cvar_cl_gunalign | ) |
| REPLICATE_INIT | ( | int | , |
| cvar_cl_weaponimpulsemode | ) |
| REPLICATE_INIT | ( | string | , |
| cvar_cl_weaponpriorities | [10] ) |
| REPLICATE_INIT | ( | string | , |
| cvar_cl_weaponpriority | ) |
Definition at line 262 of file all.qc.
References G_SHOOTFROMFIXEDORIGIN, shotorg_adjustfromclient(), STAT, stov(), and vector.
Referenced by CL_WeaponEntity_SetModel(), and PRECACHE().
| STATIC_INIT | ( | register_weapons_done | ) |
Definition at line 340 of file all.qh.
References _WepSet_FromWeapon(), autocvar_developer, FOREACH, ftos(), imp, localcmd(), LOG_TRACEF, REGISTRY_GET, REGISTRY_MAX, STATIC_INIT, strcat(), strzone(), substring(), weaponorder_byid, Weapons, WEP_FLAG_HIDDEN, WEP_FLAG_MUTATORBLOCKED, WEP_FLAG_SPECIALATTACK, WEP_FLAG_SUPERWEAPON, WEP_IMPULSE_BEGIN, WEP_IMPULSE_END, WEP_TYPE_OTHER, WEPSET_ALL, and WEPSET_SUPERWEAPONS.
| STATIC_INIT | ( | WeaponPickup | ) |
Definition at line 30 of file all.qh.
References error, FOREACH, NEW, STATIC_INIT, Weapons, WEP_FLAG_HIDDEN, and WEP_FLAG_SPECIALATTACK.
| STATIC_INIT_LATE | ( | W_PROP_reloader | ) |
Definition at line 128 of file all.qh.
References entity(), new_pure, setthink, and W_PROP_think().
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 161 of file all.qc.
References entity(), and W_FixWeaponOrder().
Referenced by REPLICATE(), REPLICATE(), REPLICATE(), REPLICATE(), REPLICATE(), REPLICATE(), REPLICATE(), REPLICATE(), REPLICATE(), and REPLICATE().
Definition at line 146 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_FixWeaponOrder_ForceComplete_AndBuildImpulseList().
Definition at line 166 of file all.qc.
References cvar_defstring(), W_FixWeaponOrder(), and W_NumberWeaponOrder().
Referenced by HUD_Weapons(), and W_FixWeaponOrder_ForceComplete_AndBuildImpulseList().
Definition at line 802 of file all.qc.
References CS_CVAR, entity(), strcpy, W_FixWeaponOrder_BuildImpulseList(), W_FixWeaponOrder_ForceComplete(), and weaponorder_byimpulse.
Referenced by REPLICATE().
Definition at line 930 of file all.qc.
References cvar_defstring(), name, stof(), strcat(), THE_PRIMARY_DOES, and THE_SECONDARY_DOES.
Definition at line 944 of file all.qc.
References cvar_defstring(), name, stof(), strcat(), THE_PRIMARY_SHOOTS, and THE_SECONDARY_SHOOTS.
Definition at line 926 of file all.qc.
References name, strcat(), and W_Guide_DPS_onlyOne_unnamed().
Definition at line 922 of file all.qc.
References name, strcat(), and W_Guide_DPS_onlyOne_unnamed_andDirectHit().
Definition at line 913 of file all.qc.
References cvar_defstring(), IT_DOES, name, stof(), and strcat().
Referenced by W_Guide_DPS_onlyOne().
Definition at line 901 of file all.qc.
References COLORED_DAMAGE, cvar_defstring(), IT_DOES, name, stof(), and strcat().
Referenced by W_Guide_DPS_onlyOne_andDirectHit().
Definition at line 958 of file all.qc.
References cvar_defstring(), name, stof(), strcat(), and THE_SECONDARY_DOES.
Definition at line 1040 of file all.qc.
References cvar_defstring(), name, stof(), strcat(), THE_PRIMARY_DOES_PERSEC, and THE_SECONDARY_DOES.
| string W_Guide_DPS_primaryMultishot | ( | string | name, |
| string | pri, | ||
| string | sec, | ||
| string | shots, | ||
| string | refire2 ) |
Definition at line 985 of file all.qc.
References cvar_defstring(), name, stof(), strcat(), THE_PRIMARY_SHOOTS, and THE_SECONDARY_DOES.
| string W_Guide_DPS_secondaryMultishot | ( | string | name, |
| string | pri, | ||
| string | sec, | ||
| string | shots, | ||
| string | refire2, | ||
| bool | sec_variable ) |
Definition at line 967 of file all.qc.
References cvar_defstring(), name, stof(), strcat(), THE_PRIMARY_DOES, THE_SECONDARY_SHOOTS, and THE_SECONDARY_SHOOTS_UPTO.
| string W_Guide_DPS_secondaryMultishotWithCombo | ( | string | name, |
| string | pri, | ||
| string | sec, | ||
| string | shots, | ||
| string | refire2, | ||
| string | combo, | ||
| bool | sec_variable ) |
Definition at line 1014 of file all.qc.
References COLORED_DAMAGE, cvar_defstring(), max(), name, stof(), strcat(), THE_PRIMARY_DOES, THE_SECONDARY_SHOOTS, and THE_SECONDARY_SHOOTS_UPTO.
Definition at line 836 of file all.qc.
References argv(), cvar(), Weapon::impulse, itos, keynumtostring(), Weapon::netname, startsWith, stof(), strcat(), tokenize(), and translate_key().
Definition at line 232 of file all.qc.
Referenced by CL_WeaponEntity_SetModel().
| void W_MuzzleFlash | ( | Weapon | thiswep, |
| entity | actor, | ||
| .entity | weaponentity, | ||
| vector | shotorg, | ||
| vector | shotdir ) |
Definition at line 728 of file all.qc.
References entity(), FOREACH_CLIENT, IS_SPEC, Weapon::m_muzzlemodel, Send_Effect_Except(), shotdir, shotorg, vector, W_MuzzleFlash_Model(), W_MuzzleFlash_Model_AttachToShotorg(), and weaponslot().
Referenced by FireGrapplingHook(), W_Arc_Attack_Bolt(), W_Blaster_Attack(), W_Crylink_Attack(), W_Crylink_Attack2(), W_Devastator_Attack(), W_Electro_Attack_Bolt(), W_Electro_Attack_Orb(), W_Fireball_Attack1(), W_Fireball_Attack2(), W_Hagar_Attack(), W_Hagar_Attack2(), W_Hagar_Attack2_Load_Release(), W_HLAC_Attack(), W_HLAC_Attack2(), W_MachineGun_Attack(), W_MachineGun_Attack_Auto(), W_MachineGun_Attack_Burst(), W_MineLayer_Attack(), W_Mortar_Attack(), W_Mortar_Attack2(), W_OverkillHeavyMachineGun_Attack_Auto(), W_OverkillMachineGun_Attack_Auto(), W_OverkillRocketPropelledChainsaw_Attack(), W_Rifle_FireBullet(), W_RocketMinsta_Attack(), W_Seeker_Fire_Flac(), W_Seeker_Fire_Missile(), W_Shotgun_Attack(), W_Vaporizer_Attack(), and W_Vortex_Attack().
Definition at line 110 of file all.qc.
References mapPriorityList(), and W_NameWeaponOrder_MapFunc().
Referenced by XonoticWeaponsList_draw().
Definition at line 120 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 112 of file all.qh.
References autocvar_w_prop_interval, entity(), FOREACH, msg_entity, time, void, and Weapons.
Referenced by ClientInit_SendEntity(), and W_PROP_think().
Definition at line 123 of file all.qh.
References entity(), MSG_ALL, NULL, and W_PROP_reload().
Referenced by STATIC_INIT_LATE().
Definition at line 172 of file all.qc.
References entity(), FOREACH, RandomSelection_AddEnt, RandomSelection_chosen_ent, RandomSelection_Init(), result, Weapons, and WepSet_FromWeapon.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 144 of file all.qh.
References FOREACH, Weapon_from_name(), and Weapons.
Referenced by readplayerstartcvars(), translate_weaponarena(), W_Apply_Weaponreplace(), weapon_defaultspawnfunc(), and Weapon_from_name().
Definition at line 378 of file all.qh.
References colormapPaletteColor, entity(), vector, and Weapon::wr_glow().
Referenced by CL_ExteriorWeaponentity_Think(), and viewmodel_draw().
| WepSet WepSet_GetFromStat | ( | ) |
Definition at line 79 of file all.qc.
References STAT.
Referenced by HUD_Weapons(), MUTATOR_HOOKFUNCTION(), and Scoreboard_AccuracyStats_Draw().
| WepSet WepSet_GetFromStat_InMap | ( | ) |
Definition at line 83 of file all.qc.
References STAT.
Referenced by Scoreboard_AccuracyStats_Draw().
| void wframe_send | ( | entity | actor, |
| entity | weaponentity, | ||
| int | wepframe, | ||
| float | attackrate, | ||
| bool | restartanim ) |
Definition at line 588 of file all.qc.
References entity(), IS_REAL_CLIENT, msg_entity, MSG_ONE, weaponslot(), wframe, WriteByte(), and WriteHeader.
Referenced by weapon_thinkf().
Definition at line 71 of file all.qc.
References REGISTRY_MAX, and Weapons.
| X | ( | reload_time | , |
| float | ) const |
References reload_time.
| X | ( | switchdelay_drop | , |
| float | ) |
| vector anim_fire1 |
Definition at line 397 of file all.qh.
Referenced by CL_WeaponEntity_SetModel().
| vector anim_fire2 |
Definition at line 398 of file all.qh.
Referenced by CL_WeaponEntity_SetModel().
| vector anim_idle |
Definition at line 399 of file all.qh.
Referenced by CL_WeaponEntity_SetModel(), CL_Weaponentity_Think(), Monster_Move(), Monster_Move_2D(), monsters_animoverride(), and viewmodel_draw().
| vector anim_reload |
Definition at line 400 of file all.qh.
Referenced by CL_WeaponEntity_SetModel().
| string autocvar_g_shootfromfixedorigin |
Definition at line 417 of file all.qh.
Referenced by FixClientCvars(), and PlayerThink().
| float autocvar_w_prop_interval = 5 |
Definition at line 109 of file all.qh.
Referenced by W_PROP_reload().
| entity exteriorweaponentity |
Definition at line 377 of file all.qh.
Referenced by CL_SpawnWeaponentity(), PutObserverInServer(), and PutPlayerInServer().
| int m_gunalign |
Definition at line 385 of file all.qh.
Referenced by CL_WeaponEntity_SetModel(), W_GunAlign(), and W_ResetGunAlign().
| vector movedir_aligned |
Definition at line 394 of file all.qh.
Referenced by CL_WeaponEntity_SetModel().
| vector spawnorigin |
Definition at line 391 of file all.qh.
Referenced by CL_WeaponEntity_SetModel(), PutPlayerInServer(), ResetBall(), SpawnBall(), and SpawnCasing().
| entity weaponchild |
Definition at line 376 of file all.qh.
Referenced by CL_WeaponEntity_SetModel(), CL_Weaponentity_Think(), and FixIntermissionClient().
| string weaponname |
Definition at line 388 of file all.qh.
Referenced by bot_cmd_debug_assert_canfire(), CL_ExteriorWeaponentity_Think(), CL_Weaponentity_Think(), and W_WeaponFrame().
| const int WEP_FIRST = 1 |
Definition at line 326 of file all.qh.
Referenced by _WepSet_FromWeapon(), accuracy_add(), accuracy_send(), CSQC_Init(), HUD_Notify(), NET_HANDLE(), Scoreboard_AccuracyStats_Draw(), Scoreboard_AccuracyStats_WouldDraw(), W_FixWeaponOrder(), W_FixWeaponOrder_BuildImpulseList(), Weapons_Draw(), WeaponStats_LogItem(), WeaponStats_ready(), XonoticKeyBinder_resizeNotify(), XonoticMutatorsDialog_fill(), and XonoticWeaponsList_resizeNotify().
| WepSet WEPSET_ALL |
Definition at line 328 of file all.qh.
Referenced by STATIC_INIT().
| WepSet WEPSET_SUPERWEAPONS |
Definition at line 329 of file all.qh.
Referenced by GiveItems(), Item_ItemsTime_SetTime(), Item_ItemsTime_UpdateTime(), Item_Reset(), Item_Respawn(), Item_ScheduleRespawnIn(), Item_Show(), player_powerups(), PutPlayerInServer(), STATIC_INIT(), and W_ThrowNewWeapon().
| WFRAME wframe |
Definition at line 414 of file all.qh.
Referenced by CL_WeaponEntity_SetModel(), NET_HANDLE(), W_Arc_Attack(), W_Hagar_Attack_Auto(), W_Reload(), weapon_thinkf(), and wframe_send().