|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "hook.qh"#include <lib/csqcmodel/interpolate.qh>#include <lib/warpzone/common.qh>#include <common/items/item/ammo.qh>#include <common/mutators/mutator/hook/hook.qh>Go to the source code of this file.
Functions | |
| classfield (Hook) .vector origin | |
| void | Draw_CylindricLine (vector from, vector to, float thickness, string texture, float aspect, float shift, vector rgb, float theAlpha, float drawflag, vector vieworg) |
| void | Draw_GrapplingHook (entity this) |
| void | Draw_GrapplingHook_trace_callback (vector start, vector hit, vector end) |
| entityclass (Hook) | |
| NET_HANDLE (ENT_CLIENT_HOOK, bool bIsNew) | |
| void | Remove_GrapplingHook (entity this) |
| void | W_Hook_Attack2 (Weapon thiswep, entity actor,.entity weaponentity) |
| void | W_Hook_Damage (entity this, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force) |
| void | W_Hook_Explode2 (entity this) |
| void | W_Hook_Explode2_use (entity this, entity actor, entity trigger) |
| void | W_Hook_ExplodeThink (entity this) |
| void | W_Hook_Touch2 (entity this, entity toucher) |
| void Draw_CylindricLine | ( | vector | from, |
| vector | to, | ||
| float | thickness, | ||
| string | texture, | ||
| float | aspect, | ||
| float | shift, | ||
| vector | rgb, | ||
| float | theAlpha, | ||
| float | drawflag, | ||
| vector | vieworg ) |
Definition at line 11 of file draw.qh.
References cross, normalize(), vector, and vlen().
Referenced by bumble_raygun_draw(), Draw_ArcBeam_callback(), Draw_GrapplingHook_trace_callback(), and Porto_Draw().
Definition at line 292 of file hook.qc.
References angles, ATTEN_NORM, autocvar_chase_active, autocvar_cl_grapplehook_alpha, CH_SHOTS_SINGLE, cnt, csqcplayer, Draw_GrapplingHook_trace_callback(), Draw_GrapplingHook_trace_callback_a, Draw_GrapplingHook_trace_callback_rgb, Draw_GrapplingHook_trace_callback_rnd, Draw_GrapplingHook_trace_callback_tex, drawmask, entcs_GetColor(), entcs_GetTeamColor(), entity(), hook_shotorigin, InterpolateOrigin_Do(), M_ARGV, MASK_NORMAL, MOVE_NOTHING, MUTATOR_CALLHOOK, NULL, NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, NUM_TEAM_4, origin, owner, player_localentnum, sound, STAT, string_null, sv_entnum, teleport_time, time, trace_endpos, vdist, vectoangles(), vector, velocity, view_forward, view_origin, view_right, view_up, viewmodels, VOL_BASE, W_GunAlign(), WarpZone_trace_transform, WarpZone_TraceBox_ThroughZone(), and WarpZone_TransformOrigin().
Referenced by NET_HANDLE().
Definition at line 281 of file hook.qc.
References Draw_CylindricLine(), Draw_GrapplingHook_trace_callback_a, Draw_GrapplingHook_trace_callback_rgb, Draw_GrapplingHook_trace_callback_rnd, Draw_GrapplingHook_trace_callback_tex, DRAWFLAG_NORMAL, min(), vector, view_origin, vlen(), WarpZone_trace_transform, and WarpZone_TransformOrigin().
Referenced by Draw_GrapplingHook().
| entityclass | ( | Hook | ) |
| NET_HANDLE | ( | ENT_CLIENT_HOOK | , |
| bool | bIsNew ) |
Definition at line 374 of file hook.qc.
References cnt, Draw_GrapplingHook(), drawmask, g_drawables, IFLAG_ORIGIN, IFLAG_VELOCITY, iflags, IL_PUSH(), InterpolateOrigin_Note(), InterpolateOrigin_Undo(), MASK_NORMAL, origin, owner, player_localentnum, playerslots, ReadByte(), ReadVector, Remove_GrapplingHook(), setmodel, sv_entnum, teleport_time, time, velocity, and viewmodels.
Definition at line 362 of file hook.qc.
References ATTEN_NORM, CH_SHOTS_SINGLE, entity(), MAX_WEAPONSLOTS, NULL, sound, viewmodels, and VOL_BASE.
Referenced by NET_HANDLE().
Definition at line 69 of file hook.qc.
References adaptor_think2use_hittype_splash(), autocvar_g_projectiles_newton_style, CH_WEAPON_A, CSQCProjectile(), DAMAGE_YES, damageforcescale, entity(), FL_PROJECTILE, g_bot_dodge, g_damagedbycontents, g_projectiles, gravity, health, HITTYPE_SECONDARY, IL_PUSH(), lifetime, MIF_ARC, MIF_SPLASH, MOVETYPE_TOSS, MUTATOR_CALLHOOK, PROJECTILE_HOOKBOMB, PROJECTILE_MAKETRIGGER, set_movetype(), SetResourceExplicit(), setthink, settouch, speed, time, W_Hook_Damage(), W_Hook_Explode2_use(), W_Hook_Touch2(), W_SetupShot, w_shotorg, and WEP_CVAR_SEC.
| void W_Hook_Damage | ( | entity | this, |
| entity | inflictor, | ||
| entity | attacker, | ||
| float | damage, | ||
| int | deathtype, | ||
| .entity | weaponentity, | ||
| vector | hitloc, | ||
| vector | force ) |
Definition at line 49 of file hook.qc.
References entity(), GetResource(), realowner, SetResourceExplicit(), vector, W_CheckProjectileDamage(), W_Hook_Explode2(), and W_PrepareExplosionByDamage().
Referenced by W_Hook_Attack2().
Definition at line 25 of file hook.qc.
References dmg, dmg_duration, dmg_edge, dmg_force, dmg_last, dmg_power, dmg_radius, EF_NODRAW, effects, entity(), func_null(), MOVETYPE_NONE, nextthink, radius, set_movetype(), setthink, settouch, teleport_time, time, W_Hook_ExplodeThink(), and WEP_CVAR_SEC.
Referenced by W_Hook_Damage(), and W_Hook_Explode2_use().
Definition at line 44 of file hook.qc.
References entity(), and W_Hook_Explode2().
Referenced by W_Hook_Attack2().
Definition at line 5 of file hook.qc.
References bound(), dmg, dmg_duration, dmg_edge, dmg_force, dmg_last, dmg_power, dmg_radius, entity(), HITTYPE_SPAM, nextthink, NULL, projectiledeathtype, RadiusDamage(), realowner, teleport_time, time, and weaponentity_fld.
Referenced by W_Hook_Explode2().
Definition at line 63 of file hook.qc.
References entity(), NULL, PROJECTILE_TOUCH, toucher, and use.
Referenced by W_Hook_Attack2().
| float autocvar_cl_grapplehook_alpha = 1 |
Definition at line 267 of file hook.qc.
Referenced by Draw_GrapplingHook().
| float Draw_GrapplingHook_trace_callback_a |
Definition at line 280 of file hook.qc.
Referenced by Draw_GrapplingHook(), and Draw_GrapplingHook_trace_callback().
| vector Draw_GrapplingHook_trace_callback_rgb |
Definition at line 279 of file hook.qc.
Referenced by Draw_GrapplingHook(), and Draw_GrapplingHook_trace_callback().
| float Draw_GrapplingHook_trace_callback_rnd |
Definition at line 278 of file hook.qc.
Referenced by Draw_GrapplingHook(), and Draw_GrapplingHook_trace_callback().
| string Draw_GrapplingHook_trace_callback_tex |
Definition at line 277 of file hook.qc.
Referenced by Draw_GrapplingHook(), and Draw_GrapplingHook_trace_callback().