Xonotic
|
#include "hook.qh"
#include <common/constants.qh>
#include <common/effects/all.qh>
#include <common/net_linked.qh>
#include <common/physics/player.qh>
#include <common/state.qh>
#include <common/stats.qh>
#include <common/util.qh>
#include <common/vehicles/all.qh>
#include <common/weapons/_all.qh>
#include <lib/warpzone/common.qh>
#include <lib/warpzone/server.qh>
#include <server/bot/api.qh>
#include <server/command/common.qh>
#include <server/command/vote.qh>
#include <server/damage.qh>
#include <server/mutators/_mod.qh>
#include <server/player.qh>
#include <server/round_handler.qh>
#include <server/weapons/common.qh>
#include <server/weapons/csqcprojectile.qh>
#include <server/weapons/selection.qh>
#include <server/weapons/tracing.qh>
#include <server/weapons/weaponsystem.qh>
#include <server/world.qh>
Go to the source code of this file.
Functions | |
void | FireGrapplingHook (entity actor,.entity weaponentity) |
void | GrapplingHook_Damage (entity this, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force) |
void | GrapplingHook_Stop (entity this) |
void | GrapplingHookReset (entity this) |
bool | GrapplingHookSend (entity this, entity to, int sf) |
void | GrapplingHookThink (entity this) |
void | GrapplingHookTouch (entity this, entity toucher) |
PRECACHE (GrappleHookInit) | |
void | RemoveGrapplingHooks (entity pl) |
void | RemoveHook (entity this) |
Variables | |
int | autocvar_g_grappling_hook_tarzan |
vector | hook_end |
vector | hook_start |
Definition at line 364 of file hook.qc.
References autocvar_g_balance_grapplehook_damagedbycontents, autocvar_g_balance_grapplehook_gravity, autocvar_g_balance_grapplehook_health, autocvar_g_balance_grapplehook_speed_fly, CH_WEAPON_B, DAMAGE_AIM, EF_LOWPRECISION, entity(), g_bot_dodge, g_damagedbycontents, g_projectiles, GrapplingHook_Damage(), GrapplingHookReset(), GrapplingHookSend(), GrapplingHookThink(), GrapplingHookTouch(), hook, hook_shotorigin, IL_PUSH(), movedir, MOVETYPE_FLY, MOVETYPE_TOSS, PROJECTILE_MAKETRIGGER, RES_HEALTH, set_movetype(), setorigin(), SetResourceExplicit(), setthink, time, v_up, vectoangles(), vector(), W_GunAlign(), W_SetupProjVelocity_Explicit(), W_SetupShot_ProjectileSize, w_shotdir, w_shotorg, WarpZone_RefSys_SpawnSameRefSys(), and weaponLocked().
void GrapplingHook_Damage | ( | entity | this, |
entity | inflictor, | ||
entity | attacker, | ||
float | damage, | ||
int | deathtype, | ||
.entity | weaponentity, | ||
vector | hitloc, | ||
vector | force | ||
) |
Definition at line 342 of file hook.qc.
References autocvar_g_maxpushtime, GetResource(), PHYS_INPUT_BUTTON_CHAT, realowner, RemoveHook(), RES_HEALTH, TakeResource(), time, and W_CheckProjectileDamage().
Referenced by FireGrapplingHook().
Definition at line 114 of file hook.qc.
References ATTEN_NORM, CH_SHOTS, func_null(), GrapplingHookThink(), hook_length, MOVETYPE_NONE, nextthink, origin, set_movetype(), setthink, sound, state, time, velocity, and VOL_BASE.
Referenced by GrapplingHookTouch().
Definition at line 109 of file hook.qc.
References RemoveHook().
Referenced by FireGrapplingHook().
Definition at line 129 of file hook.qc.
References etof(), hook_end, hook_start, MSG_BROADCAST, realowner, weaponentity_fld, weaponslot(), and WriteByte().
Referenced by FireGrapplingHook().
Definition at line 154 of file hook.qc.
References aiment, angles, autocvar_g_balance_grapplehook_airfriction, autocvar_g_balance_grapplehook_force_rubber, autocvar_g_balance_grapplehook_force_rubber_overstretch, autocvar_g_balance_grapplehook_length_min, autocvar_g_balance_grapplehook_nade_time, autocvar_g_balance_grapplehook_pull_frozen, autocvar_g_balance_grapplehook_speed_pull, autocvar_g_balance_grapplehook_stretch, autocvar_g_grappling_hook_tarzan, autocvar_g_maxpushtime, bound(), dir, entity(), error(), frametime, hook_end, hook_length, HOOK_PULLING, HOOK_RELEASING, hook_shotorigin, hook_start, IS_VEHICLE, M_ARGV, makevectors, max(), move_movetype, MOVETYPE_FLY, MOVETYPE_FOLLOW, MOVETYPE_WALK, MUTATOR_CALLHOOK, nextthink, normalize(), origin, PHYS_INPUT_BUTTON_CHAT, realowner, RemoveHook(), round_handler_IsActive, round_handler_IsRoundStarted, set_movetype(), state, time, UNSET_ONGROUND, UpdateCSQCProjectile(), v, v_forward, v_right, v_up, vector(), vlen(), W_GunAlign(), WarpZone_RefSys_AddIncrementally(), WarpZone_RefSys_TransformOrigin(), WarpZone_RefSys_TransformVelocity(), and weaponentity_fld.
Referenced by FireGrapplingHook(), and GrapplingHook_Stop().
Definition at line 324 of file hook.qc.
References aiment, GrapplingHook_Stop(), MOVETYPE_FOLLOW, PROJECTILE_TOUCH, and WarpZone_RefSys_BeginAddingIncrementally().
Referenced by FireGrapplingHook().
PRECACHE | ( | GrappleHookInit | ) |
Definition at line 421 of file hook.qc.
References CL_Weapon_GetShotOrg(), g_grappling_hook, and hook_shotorigin.
Definition at line 78 of file hook.qc.
References hook, MAX_WEAPONSLOTS, MOVETYPE_FLY, MOVETYPE_WALK, NULL, set_movetype(), and weaponentities.
Referenced by ClientDisconnect(), Freeze(), PlayerDamage(), PutObserverInServer(), Teleport_Touch(), and vehicles_enter().
Definition at line 96 of file hook.qc.
References entity(), MOVETYPE_FLY, MOVETYPE_WALK, NULL, realowner, set_movetype(), and weaponentity_fld.
Referenced by Damage(), Freeze(), GrapplingHook_Damage(), GrapplingHookReset(), GrapplingHookThink(), MUTATOR_HOOKFUNCTION(), Unfreeze(), vehicles_spawn(), and WarpZone_Projectile_Touch_ImpactFilter_Callback().
int autocvar_g_grappling_hook_tarzan |
Definition at line 152 of file hook.qc.
Referenced by GrapplingHookThink().
vector hook_end |
Definition at line 128 of file hook.qc.
Referenced by GrapplingHookSend(), and GrapplingHookThink().
vector hook_start |
Definition at line 128 of file hook.qc.
Referenced by GrapplingHookSend(), and GrapplingHookThink().