|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Public Member Functions | |
| ATTRIB (Weapon, m_canonical_spawnfunc, string) | |
| the canonical spawnfunc name | |
| ATTRIB (Weapon, m_model, entity) | |
| M: model MDL_id_ITEM. | |
| ATTRIB (Weapon, m_muzzleeffect, entity) | |
| M: flash effect EFFECT_id_MUZZLEFLASH. | |
| ATTRIB (Weapon, m_pickup, entity) | |
| virtual void | describe () |
| virtual void | m_spawnfunc_hookreplace () |
| control what happens when this weapon is spawned | |
| virtual void | wr_aim () |
| (SERVER) runs bot aiming code for this weapon | |
| virtual void | wr_checkammo1 () |
| (SERVER) checks ammo for weapon primary | |
| virtual void | wr_checkammo2 () |
| (SERVER) checks ammo for weapon second | |
| virtual void | wr_config () |
| (SERVER) dump weapon cvars to config in data directory (see: sv_cmd dumpweapons) | |
| virtual void | wr_drop () |
| (SERVER) the weapon is dropped | |
| virtual void | wr_glow () |
| (BOTH) weapon specific glow | |
| virtual void | wr_gonethink () |
| (SERVER) logic to run when weapon is lost | |
| virtual void | wr_impacteffect () |
| (CLIENT) impact effect for weapon explosion | |
| virtual void | wr_init () |
| (BOTH) precaches models/sounds used by this weapon, also sets up weapon properties | |
| virtual void | wr_killmessage () |
| (SERVER) notification number for kill message (may inspect w_deathtype for details) | |
| virtual void | wr_pickup () |
| (SERVER) a weapon is picked up | |
| virtual void | wr_playerdeath () |
| (SERVER) called whenever a player dies | |
| virtual void | wr_reload () |
| (SERVER) handles reloading for weapon | |
| virtual void | wr_resetplayer () |
| (SERVER) clears fields that the weapon may use | |
| virtual void | wr_setup () |
| (SERVER) setup weapon data | |
| virtual void | wr_suicidemessage () |
| (SERVER) notification number for suicide message (may inspect w_deathtype for details) | |
| virtual void | wr_think () |
| (SERVER) logic to run every frame | |
| virtual void | wr_update () |
| (SERVER) update cvar based properties | |
| virtual void | wr_viewmodel () |
| (CLIENT) weapon specific view model | |
| virtual void | wr_zoom () |
| (BOTH) weapon specific zoom reticle | |
| virtual void | wr_zoomdir () |
| (CLIENT) check whether the weapon should zoom (special handling) | |
Public Attributes | |
| Resource | ammo_type = RES_NONE |
| float | bot_pickupbasevalue = 0 |
| int | impulse = 9 |
| string | m_canonical_spawnfunc = "weapon_porto" |
| vector | m_color = '0.404 0.545 0.937' |
| string | m_deprecated_netname = "" |
| M: deprecated refname : old reference name for compatibility with weapons that were renamed. | |
| int | m_id = 0 |
| Model | m_model = MDL_PORTO_ITEM |
| entity | m_muzzlemodel = MDL_Null |
| M: flash model MDL_id_MUZZLEFLASH. | |
| string | m_name = _("Machinegun") |
| string | mdl = "porto" |
| string | model2 = "weaponporto" |
| string | netname = "turret_machinegun" |
| int | spawnflags = WEP_FLAG_HIDDEN | WEP_FLAG_SPECIALATTACK |
| string | w_crosshair = "gfx/crosshairporto" |
| float | w_crosshair_size = 0.6 |
| string | w_reticle = string_null |
| A: reticle : per-weapon zoom reticle. | |
Definition at line 3 of file machinegun_weapon.qh.
M: flash effect EFFECT_id_MUZZLEFLASH.
References entity().
|
inlinevirtualinherited |
Definition at line 133 of file weapon.qh.
References describe(), SUPER, and TC.
Referenced by describe().
|
inlinevirtualinherited |
control what happens when this weapon is spawned
Definition at line 49 of file weapon.qh.
References entity(), m_spawnfunc_hookreplace(), METHOD, and this.
Referenced by m_spawnfunc_hookreplace(), and weapon_defaultspawnfunc().
|
inlinevirtualinherited |
|
inlinevirtualinherited |
(SERVER) checks ammo for weapon primary
Definition at line 92 of file weapon.qh.
References entity(), and wr_checkammo1().
Referenced by client_hasweapon(), racer_frame(), raptor_frame(), W_Arc_Beam_Think(), W_Hagar_Attack2_Load(), W_Hagar_Attack_Auto(), W_HLAC_Attack_Frame(), W_MachineGun_Attack_Auto(), W_MineLayer_DoRemoteExplode(), W_MineLayer_Explode(), W_OverkillHeavyMachineGun_Attack_Auto(), W_OverkillMachineGun_Attack_Auto(), weapon_prepareattack_checkammo(), and wr_checkammo1().
|
inlinevirtualinherited |
(SERVER) checks ammo for weapon second
Definition at line 94 of file weapon.qh.
References entity(), and wr_checkammo2().
Referenced by client_hasweapon(), W_Hagar_Attack2_Load(), W_MachineGun_Attack_Frame(), W_Shotgun_Attack3_Frame1(), W_Shotgun_Attack3_Frame2(), weapon_prepareattack_checkammo(), and wr_checkammo2().
|
inlinevirtualinherited |
(SERVER) dump weapon cvars to config in data directory (see: sv_cmd dumpweapons)
Definition at line 114 of file weapon.qh.
References wr_config().
Referenced by wr_config().
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
(SERVER) logic to run when weapon is lost
Definition at line 112 of file weapon.qh.
References entity(), and wr_gonethink().
Referenced by W_WeaponFrame(), and wr_gonethink().
|
inlinevirtualinherited |
(CLIENT) impact effect for weapon explosion
Definition at line 108 of file weapon.qh.
References entity(), and wr_impacteffect().
Referenced by NET_HANDLE(), and wr_impacteffect().
|
inlinevirtualinherited |
(BOTH) precaches models/sounds used by this weapon, also sets up weapon properties
Definition at line 98 of file weapon.qh.
References wr_init().
Referenced by PRECACHE(), weapon_defaultspawnfunc(), and wr_init().
|
inlinevirtualinherited |
(SERVER) notification number for kill message (may inspect w_deathtype for details)
Definition at line 102 of file weapon.qh.
References NULL, and wr_killmessage().
Referenced by Obituary_WeaponDeath(), and wr_killmessage().
|
inlinevirtualinherited |
(SERVER) a weapon is picked up
Definition at line 129 of file weapon.qh.
References entity(), and wr_pickup().
Referenced by wr_pickup().
|
inlinevirtualinherited |
(SERVER) called whenever a player dies
Definition at line 110 of file weapon.qh.
References entity(), and wr_playerdeath().
Referenced by PlayerDamage(), and wr_playerdeath().
|
inlinevirtualinherited |
(SERVER) handles reloading for weapon
Definition at line 104 of file weapon.qh.
References entity(), and wr_reload().
Referenced by IMPULSE(), W_SwitchWeapon(), and wr_reload().
|
inlinevirtualinherited |
(SERVER) clears fields that the weapon may use
Definition at line 106 of file weapon.qh.
References entity(), and wr_resetplayer().
Referenced by GiveBall(), MUTATOR_HOOKFUNCTION(), and wr_resetplayer().
|
inlinevirtualinherited |
(SERVER) setup weapon data
Definition at line 88 of file weapon.qh.
References entity(), and wr_setup().
Referenced by W_WeaponFrame(), and wr_setup().
|
inlinevirtualinherited |
(SERVER) notification number for suicide message (may inspect w_deathtype for details)
Definition at line 100 of file weapon.qh.
References NULL, and wr_suicidemessage().
Referenced by Obituary_WeaponDeath(), and wr_suicidemessage().
|
inlinevirtualinherited |
(SERVER) logic to run every frame
Definition at line 90 of file weapon.qh.
References entity(), and wr_think().
Referenced by M_Mage_Attack(), M_Spider_Attack(), M_Wyvern_Attack_Fireball(), OffhandHook::offhand_think(), racer_frame(), raptor_frame(), Turret::tr_attack(), W_WeaponFrame(), and wr_think().
|
inlinevirtualinherited |
(SERVER) update cvar based properties
Definition at line 131 of file weapon.qh.
References wr_update().
Referenced by wr_update().
|
inlinevirtualinherited |
(CLIENT) weapon specific view model
Definition at line 123 of file weapon.qh.
References entity(), string_null, and wr_viewmodel().
Referenced by viewmodel_draw(), and wr_viewmodel().
|
inlinevirtualinherited |
(BOTH) weapon specific zoom reticle
Definition at line 116 of file weapon.qh.
References entity(), and wr_zoom().
Referenced by DrawReticle(), PlayerPreThink(), and wr_zoom().
|
inlinevirtualinherited |
(CLIENT) check whether the weapon should zoom (special handling)
Definition at line 121 of file weapon.qh.
References wr_zoomdir().
Referenced by IsZooming(), and wr_zoomdir().
| int MachineGunTurretAttack::impulse = 9 |
Definition at line 5 of file machinegun_weapon.qh.
|
inherited |
|
inherited |
|
inherited |
Definition at line 45 of file weapon.qh.
Referenced by accuracy_add(), client_hasweapon(), MUTATOR_HOOKFUNCTION(), PlayerDamage(), SpawnThrownWeapon(), TEST(), W_Arc_Attack_Bolt(), W_Arc_Beam_Think(), W_Crylink_Attack(), W_Crylink_Attack2(), W_Devastator_Attack(), W_Devastator_DoRemoteExplode(), W_Devastator_Explode(), W_Electro_Attack_Bolt(), W_Electro_Attack_Orb(), W_Hagar_Attack(), W_Hagar_Attack2(), W_Hagar_Attack2_Load(), W_Hagar_Attack2_Load_Release(), W_HLAC_Attack(), W_HLAC_Attack2(), W_MachineGun_Attack_Auto(), W_MachineGun_Attack_Burst(), W_MachineGun_Attack_Frame(), W_MineLayer_Attack(), W_MineLayer_DoRemoteExplode(), W_MineLayer_Explode(), W_Mortar_Attack(), W_Mortar_Attack2(), W_OverkillNex_Attack(), W_OverkillRocketPropelledChainsaw_Attack(), W_Porto_Attack(), W_Rifle_Attack(), W_Rifle_Attack2(), W_Seeker_Fire_Flac(), W_Seeker_Fire_Missile(), W_Seeker_Fire_Tag(), W_Shotgun_Attack(), W_SwitchWeapon(), W_SwitchWeapon_Force(), W_ThrowWeapon(), W_Vaporizer_Attack(), W_Vortex_Attack(), and weapon_prepareattack_checkammo().
|
inherited |
M: flash model MDL_id_MUZZLEFLASH.
Definition at line 66 of file weapon.qh.
Referenced by W_MuzzleFlash().
| string MachineGunTurretAttack::m_name = _("Machinegun") |
Definition at line 7 of file machinegun_weapon.qh.
| string MachineGunTurretAttack::netname = "turret_machinegun" |
Definition at line 6 of file machinegun_weapon.qh.
| int MachineGunTurretAttack::spawnflags = WEP_FLAG_HIDDEN | WEP_FLAG_SPECIALATTACK |
Definition at line 4 of file machinegun_weapon.qh.
|
inherited |
|
inherited |
A: reticle : per-weapon zoom reticle.
Definition at line 75 of file weapon.qh.
Referenced by DrawReticle().