|
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>
Include dependency graph for hook.qc:
This graph shows which files directly or indirectly include this file: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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function: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().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 109 of file hook.qc.
References RemoveHook().
Referenced by FireGrapplingHook().
Here is the call graph for this function:
Here is the caller graph for this function: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().
Here is the call graph for this function:
Here is the caller graph for this function: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().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 324 of file hook.qc.
References aiment, GrapplingHook_Stop(), MOVETYPE_FOLLOW, PROJECTILE_TOUCH, and WarpZone_RefSys_BeginAddingIncrementally().
Referenced by FireGrapplingHook().
Here is the call graph for this function:
Here is the caller graph for this function:| PRECACHE | ( | GrappleHookInit | ) |
Definition at line 421 of file hook.qc.
References CL_Weapon_GetShotOrg(), g_grappling_hook, and hook_shotorigin.
Here is the call graph for this function: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().
Here is the call graph for this function:
Here is the caller graph for this function: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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().