|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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) |
| 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 160 of file throwing.qc.
References entity(), Weapon::m_id, org, randomvec(), STAT, vector, W_IsWeaponThrowable(), W_ThrowNewWeapon(), and WepSet_FromWeapon.
Referenced by PlayerDamage().
Definition at line 118 of file throwing.qc.
References autocvar_g_pickup_items, entity(), g_weaponarena, MUTATOR_CALLHOOK, REGISTRY_GET, and Weapons.
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 22 of file throwing.qc.
References Weapon::ammo_type, autocvar_g_balance_superweapons_time, entity(), FL_TOSSED, FOREACH, g_weapon_stay, GetResource(), GiveResource(), IT_UNLIMITED_SUPERWEAPONS, ITEM_SET_EXPIRING, ITEM_SET_LOOT, m_weapon, min(), navigation_dynamicgoal_init(), org, REGISTRY_GET, SetResource(), spawn, startitem_failed, STAT, STATUSEFFECT_REMOVE_CLEAR, StatusEffects_gettime(), StatusEffects_remove(), StatusEffects_update(), time, vector, W_DropEvent(), weapon_defaultspawnfunc(), weapon_load, Weapons, WepSet_FromWeapon, and WEPSET_SUPERWEAPONS.
Referenced by MUTATOR_HOOKFUNCTION(), SpawnThrownWeapon(), W_Porto_Fail(), and W_ThrowWeapon().
Definition at line 133 of file throwing.qc.
References autocvar_g_weapon_throwable, entity(), game_starttime, Weapon::m_id, m_weapon, MUTATOR_CALLHOOK, Send_Notification(), STAT, state, time, vector, w_getbestweapon, W_IsWeaponThrowable(), W_SwitchWeapon_Force(), W_ThrowNewWeapon(), WepSet_FromWeapon, and WS_READY.
Referenced by IMPULSE().