Xonotic
|
#include "throwing.qh"
#include <common/items/item.qh>
#include <common/mapinfo.qh>
#include <common/mapobjects/subs.qh>
#include <common/mutators/mutator/status_effects/_mod.qh>
#include <common/notifications/all.qh>
#include <common/resources/sv_resources.qh>
#include <common/state.qh>
#include <common/util.qh>
#include <common/weapons/_all.qh>
#include <common/wepent.qh>
#include <server/damage.qh>
#include <server/items/items.qh>
#include <server/items/spawning.qh>
#include <server/mutators/_mod.qh>
#include <server/weapons/selection.qh>
#include <server/weapons/weaponsystem.qh>
#include <server/world.qh>
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) |
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().