Xonotic
|
Go to the source code of this file.
Functions | |
void | SpawnThrownWeapon (entity this, vector org, Weapon wep,.entity weaponentity) |
void | thrown_wep_think (entity this) |
bool | W_IsWeaponThrowable (entity this, int w) |
float | W_ThrowNewWeapon (entity own, float wpn, float doreduce, vector org, vector velo,.entity weaponentity) |
void | W_ThrowWeapon (entity this,.entity weaponentity, vector velo, vector delta, float doreduce) |
Variables | |
bool | autocvar_g_weapon_throwable |
float | savenextthink |
Definition at line 180 of file throwing.qc.
References Weapon::m_id, randomvec(), W_IsWeaponThrowable(), W_ThrowNewWeapon(), and WepSet_FromWeapon.
Referenced by PlayerDamage().
Definition at line 21 of file throwing.qc.
References nextthink, NULL, oldorigin, origin, owner, savenextthink, SUB_SetFade(), SUB_VanishOrRemove(), and time.
Referenced by W_ThrowNewWeapon().
Definition at line 138 of file throwing.qc.
References autocvar_g_pickup_items, g_weaponarena, MUTATOR_CALLHOOK, and REGISTRY_GET.
Referenced by MUTATOR_HOOKFUNCTION(), SpawnThrownWeapon(), and W_ThrowWeapon().
float W_ThrowNewWeapon | ( | entity | own, |
float | wpn, | ||
float | doreduce, | ||
vector | org, | ||
vector | velo, | ||
.entity | weaponentity | ||
) |
Definition at line 40 of file throwing.qc.
References Weapon::ammo_type, autocvar_g_balance_superweapons_time, entity(), FOREACH, g_weapon_stay, GetResource(), GiveResource(), Item_SetExpiring(), Item_SetLoot(), min(), navigation_dynamicgoal_init(), REGISTRY_GET, setorigin(), SetResource(), setthink, spawn(), startitem_failed, STATUSEFFECT_REMOVE_CLEAR, thrown_wep_think(), time, W_DropEvent(), weapon_defaultspawnfunc(), weapon_load, WepSet_FromWeapon, and WEPSET_SUPERWEAPONS.
Referenced by Monster_Dead(), MUTATOR_HOOKFUNCTION(), SpawnThrownWeapon(), and W_ThrowWeapon().
Definition at line 153 of file throwing.qc.
References autocvar_g_weapon_throwable, Weapon::m_id, MUTATOR_CALLHOOK, time, w_getbestweapon, W_IsWeaponThrowable(), W_SwitchWeapon_Force(), W_ThrowNewWeapon(), WepSet_FromWeapon, and WS_READY.
Referenced by IMPULSE().
bool autocvar_g_weapon_throwable |
Definition at line 6 of file throwing.qh.
Referenced by W_ThrowWeapon().
float savenextthink |
Definition at line 8 of file throwing.qh.
Referenced by thrown_wep_think().