Xonotic
|
fields which are explicitly/manually set are marked with "M", fields set automatically are marked with "A" More...
Public Member Functions | |
ATTRIB (Weapon, m_canonical_spawnfunc, string) | |
the canonical spawnfunc name More... | |
ATTRIB (Weapon, m_pickup, entity) | |
virtual void | Weapon ::display () |
virtual void | Weapon ::m_spawnfunc_hookreplace () |
control what happens when this weapon is spawned More... | |
virtual void | Weapon ::wr_aim () |
(SERVER) runs bot aiming code for this weapon More... | |
virtual void | Weapon ::wr_checkammo1 () |
(SERVER) checks ammo for weapon primary More... | |
virtual void | Weapon ::wr_checkammo2 () |
(SERVER) checks ammo for weapon second More... | |
virtual void | Weapon ::wr_config () |
(SERVER) dump weapon cvars to config in data directory (see: sv_cmd dumpweapons) More... | |
virtual void | Weapon ::wr_drop () |
(SERVER) the weapon is dropped More... | |
virtual void | Weapon ::wr_glow () |
(BOTH) weapon specific glow More... | |
virtual void | Weapon ::wr_gonethink () |
(SERVER) logic to run when weapon is lost More... | |
virtual void | Weapon ::wr_impacteffect () |
(CLIENT) impact effect for weapon explosion More... | |
virtual void | Weapon ::wr_init () |
(BOTH) precaches models/sounds used by this weapon, also sets up weapon properties More... | |
virtual void | Weapon ::wr_killmessage () |
(SERVER) notification number for kill message (may inspect w_deathtype for details) More... | |
virtual void | Weapon ::wr_pickup () |
(SERVER) a weapon is picked up More... | |
virtual void | Weapon ::wr_playerdeath () |
(SERVER) called whenever a player dies More... | |
virtual void | Weapon ::wr_reload () |
(SERVER) handles reloading for weapon More... | |
virtual void | Weapon ::wr_resetplayer () |
(SERVER) clears fields that the weapon may use More... | |
virtual void | Weapon ::wr_setup () |
(SERVER) setup weapon data More... | |
virtual void | Weapon ::wr_suicidemessage () |
(SERVER) notification number for suicide message (may inspect w_deathtype for details) More... | |
virtual void | Weapon ::wr_think () |
(SERVER) logic to run every frame More... | |
virtual void | Weapon ::wr_update () |
(SERVER) update cvar based properties More... | |
virtual void | Weapon ::wr_viewmodel () |
(CLIENT) weapon specific view model More... | |
virtual void | Weapon ::wr_zoom () |
(BOTH) weapon specific zoom reticle More... | |
virtual void | Weapon ::wr_zoomdir () |
(CLIENT) check whether the weapon should zoom (special handling) More... | |
Public Attributes | |
Resource | ammo_type = RES_NONE |
M: ammotype : main ammo type. More... | |
float | bot_pickupbasevalue = 0 |
M: rating : bot weapon priority. More... | |
int | impulse = -1 |
M: impulse : weapon impulse. More... | |
int | m_id = 0 |
string | m_name = "AOL CD Thrower" |
M: wepname : human readable name. More... | |
string | mdl = "" |
M: modelname : name of model (without g_ v_ or h_ prefixes) More... | |
string | model2 = "" |
M: wepimg : "weaponfoobar" side view image file of weapon. More... | |
string | netname = "" |
M: refname : reference name name. More... | |
int | spawnflags = 0 |
M: flags : WEPSPAWNFLAG_... More... | |
string | w_crosshair = "gfx/crosshairmoustache" |
M: crosshair : per-weapon crosshair: "CrosshairImage Size". More... | |
float | w_crosshair_size = 1 |
A: crosshair : per-weapon crosshair size (argument two of "crosshair" field) More... | |
string | w_reticle = string_null |
A: reticle : per-weapon zoom reticle. More... | |
vector | wpcolor = '0 0 0' |
M: color : waypointsprite color. More... | |
fields which are explicitly/manually set are marked with "M", fields set automatically are marked with "A"
|
inlinevirtual |
Definition at line 127 of file weapon.qh.
References cvar_string(), ENDCLASS, entity(), m_name, string_null, and weapon_defaultspawnfunc().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
(CLIENT) weapon specific view model
Definition at line 118 of file weapon.qh.
References string_null.
|
inlinevirtual |
|
inlinevirtual |
Resource Weapon::ammo_type = RES_NONE |
M: ammotype : main ammo type.
Definition at line 48 of file weapon.qh.
Referenced by HUD_Ammo(), notif_arg_item_wepammo(), W_DecreaseAmmo(), W_ThrowNewWeapon(), and weapon_defaultspawnfunc().
float Weapon::bot_pickupbasevalue = 0 |
M: rating : bot weapon priority.
Definition at line 54 of file weapon.qh.
Referenced by WeaponPickup::WeaponPickup ::WeaponPickup().
int Weapon::impulse = -1 |
M: impulse : weapon impulse.
Definition at line 50 of file weapon.qh.
Referenced by client_hasweapon(), W_FixWeaponOrder_BuildImpulseList_cmp(), and W_SwitchWeapon_TryOthers().
int Weapon::m_id = 0 |
Definition at line 42 of file weapon.qh.
Referenced by accuracy_add(), client_hasweapon(), MUTATOR_HOOKFUNCTION(), PlayerDamage(), SpawnThrownWeapon(), TEST(), W_SwitchWeapon(), W_SwitchWeapon_Force(), W_ThrowWeapon(), and weapon_prepareattack_checkammo().
string Weapon::m_name = "AOL CD Thrower" |
M: wepname : human readable name.
Definition at line 78 of file weapon.qh.
Referenced by readplayerstartcvars(), and WeaponPickup::WeaponPickup ::WeaponPickup().
string Weapon::mdl = "" |
M: modelname : name of model (without g_ v_ or h_ prefixes)
Definition at line 58 of file weapon.qh.
Referenced by viewmodel_draw(), and W_WeaponFrame().
string Weapon::model2 = "" |
string Weapon::netname = "" |
M: refname : reference name name.
Definition at line 76 of file weapon.qh.
Referenced by Obituary_WeaponDeath(), W_DecreaseAmmo(), and weapon_defaultspawnfunc().
int Weapon::spawnflags = 0 |
M: flags : WEPSPAWNFLAG_...
combined
Definition at line 52 of file weapon.qh.
Referenced by client_hasweapon(), W_SetupShot_Dir_ProjectileSize_Range(), W_WeaponFrame(), and weapon_defaultspawnfunc().
string Weapon::w_crosshair = "gfx/crosshairmoustache" |
float Weapon::w_crosshair_size = 1 |
string Weapon::w_reticle = string_null |
A: reticle : per-weapon zoom reticle.
Definition at line 72 of file weapon.qh.
Referenced by DrawReticle().
vector Weapon::wpcolor = '0 0 0' |
M: color : waypointsprite color.
Definition at line 56 of file weapon.qh.
Referenced by DamageText::DamageText_draw2d(), and weapon_defaultspawnfunc().