|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "hook.qh"#include <common/constants.qh>#include <common/effects/all.qh>#include <common/mutators/mutator/status_effects/_mod.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 319 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(), FL_PROJECTILE, g_bot_dodge, g_damagedbycontents, g_projectiles, GrapplingHook_Damage(), GrapplingHookReset(), GrapplingHookSend(), GrapplingHookThink(), GrapplingHookTouch(), hook, hook_shotorigin, IL_PUSH(), movedir, MOVETYPE_FLY, MOVETYPE_TOSS, MUTATOR_CALLHOOK, Net_LinkEntity(), PROJECTILE_MAKETRIGGER, set_movetype(), SetResourceExplicit(), setthink, settouch, STAT, time, v_up, vectoangles(), vector, W_GunAlign(), W_MuzzleFlash(), 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 297 of file hook.qc.
References autocvar_g_maxpushtime, entity(), GetResource(), PHYS_INPUT_BUTTON_CHAT, realowner, RemoveHook(), TakeResource(), time, vector, and W_CheckProjectileDamage().
Referenced by FireGrapplingHook().
Definition at line 66 of file hook.qc.
References ATTEN_NORM, CH_SHOTS, entity(), func_null(), GrapplingHookThink(), hook_length, MOVETYPE_NONE, nextthink, origin, Send_Effect(), set_movetype(), setthink, settouch, sound, state, time, velocity, and VOL_BASE.
Referenced by GrapplingHookTouch().
Definition at line 61 of file hook.qc.
References entity(), and RemoveHook().
Referenced by FireGrapplingHook().
Definition at line 81 of file hook.qc.
References entity(), etof, hook_end, hook_start, MSG_BROADCAST, MSG_ENTITY, realowner, sound_allowed(), weaponentity_fld, weaponslot(), WriteByte(), and WriteHeader.
Referenced by FireGrapplingHook().
Definition at line 106 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, FL_PROJECTILE, frametime, game_stopped, hook_end, hook_length, HOOK_PULLING, HOOK_RELEASING, hook_shotorigin, hook_start, IS_VEHICLE, LostMovetypeFollow(), M_ARGV, makevectors, max(), move_movetype, MOVETYPE_FLY, MOVETYPE_FOLLOW, MOVETYPE_WALK, MUTATOR_CALLHOOK, nextthink, org, origin, PHYS_INPUT_BUTTON_CHAT, realowner, RemoveHook(), round_handler_IsActive, round_handler_IsRoundStarted, SendFlags, set_movetype(), STAT, state, StatusEffects_active(), time, UNSET_ONGROUND, UpdateCSQCProjectile(), 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 279 of file hook.qc.
References aiment, entity(), GrapplingHook_Stop(), MOVETYPE_FOLLOW, PROJECTILE_TOUCH, SetMovetypeFollow(), toucher, and WarpZone_RefSys_BeginAddingIncrementally().
Referenced by FireGrapplingHook().
| PRECACHE | ( | GrappleHookInit | ) |
Definition at line 377 of file hook.qc.
References CL_Weapon_GetShotOrg(), g_grappling_hook, hook_shotorigin, shotorg_adjust(), vector, and Weapon::wr_init().
Definition at line 30 of file hook.qc.
References entity(), hook, MAX_WEAPONSLOTS, MOVETYPE_FLY, MOVETYPE_WALK, NULL, set_movetype(), and weaponentities.
Referenced by bumblebee_gunner_enter(), ClientDisconnect(), freezetag_Freeze(), PlayerDamage(), PutObserverInServer(), target_teleport_use(), Teleport_Touch(), and vehicles_enter().
Definition at line 48 of file hook.qc.
References entity(), hook, MOVETYPE_FLY, MOVETYPE_WALK, NULL, realowner, set_movetype(), and weaponentity_fld.
Referenced by Damage(), freezetag_Freeze(), freezetag_Unfreeze(), GrapplingHook_Damage(), GrapplingHookReset(), GrapplingHookThink(), MUTATOR_HOOKFUNCTION(), vehicles_spawn(), and WarpZone_Projectile_Touch_ImpactFilter_Callback().
| int autocvar_g_grappling_hook_tarzan |
Definition at line 104 of file hook.qc.
Referenced by GrapplingHookThink().
| vector hook_end |
Definition at line 80 of file hook.qc.
Referenced by bumble_raygun_send(), GrapplingHookSend(), and GrapplingHookThink().
| vector hook_start |
Definition at line 80 of file hook.qc.
Referenced by bumble_raygun_send(), GrapplingHookSend(), and GrapplingHookThink().