|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "arc.qh"#include <common/gametypes/gametype/onslaught/sv_generator.qh>#include <common/gametypes/gametype/onslaught/sv_onslaught.qh>#include <common/items/item/ammo.qh>Go to the source code of this file.
Variables | |
| bool | autocvar_cl_arcbeam_simple = true |
| int | beam_slot |
Definition at line 77 of file arc.qc.
References Arc_GetHeat_Percent(), arc_heat_percent, and entity().
Definition at line 523 of file arc.qc.
References ATTEN_NORM, ATTN_NORM, CH_SHOTS_SINGLE, entity(), frametime, makevectors, movedir, PHYS_INPUT_BUTTON_ATCK, PHYS_INPUT_BUTTON_ATCK2, random(), Send_Effect(), sound, time, v_forward, v_right, v_up, vector, VOL_BASE, w_shotdir, w_shotorg, and WEP_CVAR.
Definition at line 863 of file arc.qc.
References adddynamiclight, angle, angles, ARC_MAX_SEGMENTS, autocvar_chase_active, autocvar_cl_arcbeam_simple, autocvar_cl_lockview, autocvar_r_drawviewmodel, beam_dir, beam_hiteffect, beam_hitlight, beam_initialized, beam_muzzleeffect, beam_muzzleentity, beam_muzzlelight, beam_shotorigin, beam_slot, beam_usevieworigin, bezier_quadratic_getpoint(), bound(), csqcplayer, Draw_ArcBeam_callback(), Draw_ArcBeam_callback_entity, Draw_ArcBeam_callback_last_bottom, Draw_ArcBeam_callback_last_thickness, Draw_ArcBeam_callback_last_top, entity(), eX, eY, fixedvectoangles2, g_trueaim_minrange, gettagindex, gettaginfo, InterpolateOrigin_Do(), MAKE_VECTORS, MASK_NORMAL, min(), MOVE_NOMONSTERS, MOVE_NORMAL, move_time, normalize(), NULL, origin, pointparticles, Q3SURFACEFLAG_NOIMPACT, RAD2DEG, random(), time, trace_dphitq3surfaceflags, trace_endpos, trace_fraction, v_angle, vdist, vec3, vector, view_angles, view_forward, viewmodels, vlen(), warpzone_save_view_angles, warpzone_save_view_origin, WarpZone_trace_transform, WarpZone_TraceBox_ThroughZone(), WarpZone_TraceLine(), WarpZone_TransformOrigin(), WarpZone_TransformVelocity(), WarpZone_UnTransformOrigin(), and WEP_CVAR.
Referenced by NET_HANDLE().
Definition at line 769 of file arc.qc.
References autocvar_cl_arcbeam_simple, cross, Draw_ArcBeam_callback_entity, Draw_ArcBeam_callback_last_bottom, Draw_ArcBeam_callback_last_thickness, Draw_ArcBeam_callback_last_top, Draw_CylindricLine(), DRAWFLAG_NORMAL, entity(), normalize(), time, trace_fraction, trailparticles, vector, view_origin, WarpZone_trace_transform, WarpZone_TransformOrigin(), and WarpZone_UnTransformOrigin().
Referenced by Draw_ArcBeam().
| NET_HANDLE | ( | ENT_CLIENT_ARC_BEAM | , |
| bool | isnew ) |
Definition at line 1165 of file arc.qc.
References angles, ARC_BT_BURST_HEAL, ARC_BT_BURST_HIT, ARC_BT_BURST_MISS, ARC_BT_BURST_WALL, ARC_BT_HEAL, ARC_BT_HIT, ARC_BT_MISS, ARC_BT_WALL, ARC_SF_BEAMDIR, ARC_SF_BEAMTYPE, ARC_SF_START, ARC_SF_UPDATE, ARC_SF_WANTDIR, arc_shotorigin, ATTEN_NORM, autocvar_chase_active, autocvar_cl_tracers_teamcolor, autocvar_r_drawviewmodel, beam_alpha, beam_color, beam_hiteffect, beam_hitlight, beam_image, beam_muzzleeffect, beam_muzzleentity, beam_muzzlelight, beam_shotorigin, beam_slot, beam_thickness, beam_traileffect, beam_type, beam_usevieworigin, CH_SHOTS_SINGLE, colormapPaletteColor, Draw_ArcBeam(), EF_ADDITIVE, EF_FULLBRIGHT, entcs_GetClientColors(), entcs_receiver, entity(), g_drawables, IFLAG_ORIGIN, iflags, IL_PUSH(), InterpolateOrigin_Note(), InterpolateOrigin_Undo(), loopsound(), move_time, NULL, origin, player_localnum, randomvec(), ReadAngleVector, ReadByte(), ReadVector, Remove_ArcBeam(), setmodel, SOLID_NOT, STAT, sv_entnum, teamplay, time, v_angle, vector, view_origin, viewmodels, VOL_BASE, and W_GunAlign().
Definition at line 1159 of file arc.qc.
References ATTEN_NORM, beam_muzzleentity, CH_SHOTS_SINGLE, entity(), sound, and VOL_BASE.
Referenced by NET_HANDLE().
| void Reset_ArcBeam | ( | ) |
Definition at line 852 of file arc.qc.
References beam_usevieworigin, entity(), findfloat(), and NULL.
Referenced by CSQCModel_Effects_PostUpdate(), TeleportPlayer(), and WarpZone_PostTeleportPlayer_Callback().
Definition at line 46 of file arc.qc.
References arc_beam, entity(), MAX_WEAPONSLOTS, time, vector, and weaponentities.
Definition at line 508 of file arc.qc.
References entity(), W_Arc_Attack(), w_ready(), weapon_thinkf(), WEP_CVAR, and wframe.
Referenced by W_Arc_Attack().
Definition at line 137 of file arc.qc.
References adaptor_think2use_hittype_splash(), ATTACK_FINISHED, CH_WEAPON_A, CSQCProjectile(), DAMAGE_YES, entity(), FL_PROJECTILE, g_bot_dodge, g_damagedbycontents, g_projectiles, HITTYPE_SECONDARY, IL_PUSH(), Weapon::m_id, MIF_SPLASH, misc_bulletcounter, MOVETYPE_BOUNCEMISSILE, MUTATOR_CALLHOOK, PROJECTILE_ARC_BOLT, PROJECTILE_MAKETRIGGER, set_movetype(), SetResourceExplicit(), setthink, settouch, time, vectoangles(), W_Arc_Attack_Bolt(), W_Arc_Bolt_Damage(), W_Arc_Bolt_Explode_use(), W_Arc_Bolt_Touch(), W_MuzzleFlash(), w_ready(), W_SetupProjVelocity_PRE, W_SetupShot, w_shotdir, w_shotorg, W_WeaponRateFactor(), weapon_thinkf(), and WEP_CVAR.
Referenced by W_Arc_Attack_Bolt().
Definition at line 488 of file arc.qc.
References arc_beam, ATTN_NORM, boolean, CH_WEAPON_A, entity(), g_bot_dodge, getthink, IL_PUSH(), MOVETYPE_NONE, Net_LinkEntity(), set_movetype(), setthink, SOLID_NOT, sound, time, VOL_BASE, W_Arc_Beam(), W_Arc_Beam_Send(), W_Arc_Beam_Think(), and WEP_CVAR.
Referenced by W_Arc_Beam().
Definition at line 7 of file arc.qc.
References ARC_SF_BEAMDIR, ARC_SF_BEAMTYPE, ARC_SF_LOCALMASK, ARC_SF_START, ARC_SF_UPDATE, ARC_SF_WANTDIR, beam_dir, beam_start, beam_type, beam_wantdir, entity(), etof, IS_SPEC, MSG_ENTITY, owner, weaponentity_fld, weaponslot(), WriteByte(), and WriteHeader.
Referenced by W_Arc_Beam().
Definition at line 191 of file arc.qc.
References accuracy_add(), accuracy_isgooddamage(), Weapon::ammo_type, angle, ANTILAG_LATENCY, arc_beam, ARC_BT_BURSTMASK, ARC_BT_HEAL, ARC_BT_HIT, ARC_BT_WALL, arc_BUTTON_ATCK_prev, ARC_MAX_SEGMENTS, ARC_SF_BEAMDIR, ARC_SF_BEAMTYPE, ARC_SF_START, ARC_SF_WANTDIR, ATTN_NORM, autocvar_g_balance_pause_armor_rot, beam_bursting, beam_dir, beam_heat, beam_initialized, beam_prev, beam_start, beam_teleporttime, beam_type, beam_wantdir, bezier_quadratic_getpoint(), bound(), CH_WEAPON_A, Damage(), entity(), ExponentialFalloff(), falloff, frametime, game_stopped, GetResource(), GiveResourceWithLimit(), Heal(), IS_DEAD, IS_MONSTER, IS_PLAYER, IT_UNLIMITED_AMMO, Weapon::m_id, makevectors, max(), min(), MOVE_NORMAL, nextthink, normalize(), NULL, owner, PHYS_INPUT_BUTTON_ATCK, PHYS_INPUT_BUTTON_ATCK2, RAD2DEG, RES_ARMOR, RES_LIMIT_NONE, SAME_TEAM, Send_Effect(), SendFlags, SetResource(), sound, STAT, time, trace_endpos, trace_ent, trace_fraction, vector, vlen(), VOL_BASE, W_SetupShot_Range, w_shotdir, w_shotorg, W_SwitchToOtherWeapon(), WarpZone_trace_transform, WarpZone_traceline_antilag(), WarpZone_TransformOrigin(), WarpZone_TransformVelocity(), WarpZone_UnTransformOrigin(), weapon_prepareattack_check(), weaponentity_fld, WEP_CVAR, and Weapon::wr_checkammo1().
Referenced by W_Arc_Beam().
| void W_Arc_Bolt_Damage | ( | entity | this, |
| entity | inflictor, | ||
| entity | attacker, | ||
| float | damage, | ||
| int | deathtype, | ||
| .entity | weaponentity, | ||
| vector | hitloc, | ||
| vector | force ) |
Definition at line 99 of file arc.qc.
References angles, entity(), GetResource(), getthink, TakeResource(), vectoangles(), vector, velocity, W_CheckProjectileDamage(), and W_PrepareExplosionByDamage().
Referenced by W_Arc_Attack_Bolt().
Definition at line 83 of file arc.qc.
References entity(), func_null(), NULL, projectiledeathtype, RadiusDamage(), realowner, weaponentity_fld, and WEP_CVAR.
Referenced by W_Arc_Bolt_Explode_use().
Definition at line 94 of file arc.qc.
References entity(), and W_Arc_Bolt_Explode().
Referenced by W_Arc_Attack_Bolt().
Definition at line 114 of file arc.qc.
References angles, cnt, DAMAGE_AIM, entity(), HITTYPE_BOUNCE, nextthink, NULL, origin, owner, PROJECTILE_TOUCH, projectiledeathtype, RadiusDamage(), realowner, Send_Effect(), time, toucher, use, vectoangles(), velocity, weaponentity_fld, and WEP_CVAR.
Referenced by W_Arc_Attack_Bolt().
Definition at line 755 of file arc.qc.
Referenced by Draw_ArcBeam(), and Draw_ArcBeam_callback().
| int beam_slot |
Definition at line 757 of file arc.qc.
Referenced by Draw_ArcBeam(), and NET_HANDLE().