|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Macros | |
| #define | W_SetupProjVelocity_Basic(ent, pspeed, pspread) |
| #define | W_SetupProjVelocity_BOTH(ent, wep, isprimary) |
| #define | W_SetupProjVelocity_PRE(ent, wep, prefix) |
| #define | W_SetupProjVelocity_PRI(ent, wep) |
| #define | W_SetupProjVelocity_SEC(ent, wep) |
| #define | W_SetupProjVelocity_UP_BOTH(ent, wep, isprimary) |
| #define | W_SetupProjVelocity_UP_PRE(ent, wep, prefix) |
| #define | W_SetupProjVelocity_UP_PRI(ent, wep) |
| #define | W_SetupProjVelocity_UP_SEC(ent, wep) |
| #define | W_SetupShot(ent, wepent, antilag, recoil, snd, chan, maxdamage, deathtype) |
| #define | W_SetupShot_Dir(ent, wepent, s_forward, antilag, recoil, snd, chan, maxdamage, deathtype) |
| #define | W_SetupShot_Dir_ProjectileSize(ent, wepent, s_forward, mi, ma, antilag, recoil, snd, chan, maxdamage, deathtype) |
| #define | W_SetupShot_ProjectileSize(ent, wepent, mi, ma, antilag, recoil, snd, chan, maxdamage, deathtype) |
| #define | W_SetupShot_Range(ent, wepent, antilag, recoil, snd, chan, maxdamage, range, deathtype) |
| #define W_SetupProjVelocity_Basic | ( | ent, | |
| pspeed, | |||
| pspread ) |
Definition at line 49 of file tracing.qh.
Referenced by W_Devastator_Attack(), W_HLAC_Attack(), W_HLAC_Attack2(), W_MineLayer_Attack(), W_Nexball_Attack2(), W_OverkillRocketPropelledChainsaw_Attack(), and W_Porto_Attack().
| #define W_SetupProjVelocity_BOTH | ( | ent, | |
| wep, | |||
| isprimary ) |
Definition at line 70 of file tracing.qh.
| #define W_SetupProjVelocity_PRE | ( | ent, | |
| wep, | |||
| prefix ) |
Definition at line 63 of file tracing.qh.
Referenced by W_Arc_Attack_Bolt(), and W_Seeker_Fire_Tag().
| #define W_SetupProjVelocity_PRI | ( | ent, | |
| wep ) |
Definition at line 65 of file tracing.qh.
Referenced by W_Electro_Attack_Bolt(), W_Fireball_Attack1(), and W_Hagar_Attack().
| #define W_SetupProjVelocity_SEC | ( | ent, | |
| wep ) |
Definition at line 67 of file tracing.qh.
Referenced by W_Hagar_Attack2().
| #define W_SetupProjVelocity_UP_BOTH | ( | ent, | |
| wep, | |||
| isprimary ) |
Definition at line 59 of file tracing.qh.
| #define W_SetupProjVelocity_UP_PRE | ( | ent, | |
| wep, | |||
| prefix ) |
Definition at line 52 of file tracing.qh.
Referenced by W_Seeker_Fire_Flac(), and W_Seeker_Fire_Missile().
| #define W_SetupProjVelocity_UP_PRI | ( | ent, | |
| wep ) |
Definition at line 54 of file tracing.qh.
Referenced by W_Mortar_Attack().
| #define W_SetupProjVelocity_UP_SEC | ( | ent, | |
| wep ) |
Definition at line 56 of file tracing.qh.
Referenced by W_Electro_Attack_Orb(), W_Fireball_Attack2(), and W_Mortar_Attack2().
| #define W_SetupShot | ( | ent, | |
| wepent, | |||
| antilag, | |||
| recoil, | |||
| snd, | |||
| chan, | |||
| maxdamage, | |||
| deathtype ) |
Definition at line 34 of file tracing.qh.
Referenced by CheatCommand(), toss_nade(), W_Arc_Attack_Bolt(), W_Crylink_Attack(), W_Crylink_Attack2(), W_Hagar_Attack(), W_Hagar_Attack2(), W_Hagar_Attack2_Load_Release(), W_HLAC_Attack(), W_HLAC_Attack2(), W_Hook_Attack2(), W_MachineGun_Attack(), W_MachineGun_Attack_Auto(), W_MachineGun_Attack_Burst(), W_Nexball_Attack(), W_Nexball_Attack2(), W_OverkillHeavyMachineGun_Attack_Auto(), W_OverkillMachineGun_Attack_Auto(), W_OverkillNex_Attack(), W_Porto_Attack(), W_Rifle_FireBullet(), W_Shotgun_Attack(), W_Tuba_NoteOn(), W_Vaporizer_Attack(), and W_Vortex_Attack().
| #define W_SetupShot_Dir | ( | ent, | |
| wepent, | |||
| s_forward, | |||
| antilag, | |||
| recoil, | |||
| snd, | |||
| chan, | |||
| maxdamage, | |||
| deathtype ) |
Definition at line 32 of file tracing.qh.
Referenced by W_Blaster_Attack().
| #define W_SetupShot_Dir_ProjectileSize | ( | ent, | |
| wepent, | |||
| s_forward, | |||
| mi, | |||
| ma, | |||
| antilag, | |||
| recoil, | |||
| snd, | |||
| chan, | |||
| maxdamage, | |||
| deathtype ) |
Definition at line 28 of file tracing.qh.
| #define W_SetupShot_ProjectileSize | ( | ent, | |
| wepent, | |||
| mi, | |||
| ma, | |||
| antilag, | |||
| recoil, | |||
| snd, | |||
| chan, | |||
| maxdamage, | |||
| deathtype ) |
Definition at line 30 of file tracing.qh.
Referenced by FireGrapplingHook(), W_Devastator_Attack(), W_Electro_Attack_Bolt(), W_Electro_Attack_Orb(), W_Fireball_Attack1(), W_Fireball_Attack2(), W_Fireball_AttackEffect(), W_MineLayer_Attack(), W_Mortar_Attack(), W_Mortar_Attack2(), W_OverkillRocketPropelledChainsaw_Attack(), W_RocketMinsta_Attack(), W_Seeker_Fire_Flac(), W_Seeker_Fire_Missile(), and W_Seeker_Fire_Tag().
| #define W_SetupShot_Range | ( | ent, | |
| wepent, | |||
| antilag, | |||
| recoil, | |||
| snd, | |||
| chan, | |||
| maxdamage, | |||
| range, | |||
| deathtype ) |
Definition at line 36 of file tracing.qh.
Referenced by W_Arc_Beam_Think(), and W_Shotgun_Attack2().
Definition at line 549 of file tracing.qc.
References ANTILAG_LATENCY, CS(), cursor_trace_endpos, cursor_trace_start, entity(), max_shot_distance, MOVE_NORMAL, normalize(), and traceline_antilag().
Referenced by bumblebee_gunner_frame(), bumblebee_pilot_frame(), CheatCommand(), crosshair_trace_plusvisibletriggers__is_wz(), MUTATOR_HOOKFUNCTION(), racer_frame(), raptor_frame(), spiderbot_frame(), spiderbot_guide_release(), spiderbot_rocket_do(), and spiderbot_rocket_guided().
Definition at line 554 of file tracing.qc.
References crosshair_trace_plusvisibletriggers__is_wz(), and entity().
Referenced by Drag(), and sandbox_ObjectEdit_Get().
Definition at line 564 of file tracing.qc.
References crosshair_trace(), entity(), FOREACH_ENTITY_FLOAT, g_ctrace_changed, IL_CLEAR, IL_EACH, IL_PUSH(), solid, SOLID_BSP, SOLID_TRIGGER, and WarpZone_crosshair_trace().
Referenced by crosshair_trace_plusvisibletriggers(), and WarpZone_crosshair_trace_plusvisibletriggers().
| void fireBullet | ( | entity | this, |
| .entity | weaponentity, | ||
| vector | start, | ||
| vector | dir, | ||
| float | spread, | ||
| float | max_solid_penetration, | ||
| float | damage, | ||
| float | headshot_multiplier, | ||
| float | force, | ||
| float | dtype, | ||
| entity | tracer_effect ) |
Definition at line 544 of file tracing.qc.
References dir, entity(), fireBullet_antilag(), and vector.
Referenced by spiderbot_frame(), and W_OverkillHeavyMachineGun_Attack_Auto().
| void fireBullet_antilag | ( | entity | this, |
| .entity | weaponentity, | ||
| vector | start, | ||
| vector | dir, | ||
| float | spread, | ||
| float | max_solid_penetration, | ||
| float | damage, | ||
| float | headshot_multiplier, | ||
| float | force, | ||
| float | dtype, | ||
| entity | tracer_effect, | ||
| bool | do_antilag ) |
Definition at line 539 of file tracing.qc.
References dir, entity(), fireBullet_falloff(), and vector.
Referenced by fireBullet().
Definition at line 356 of file tracing.qc.
References fireBullet_last_hit, fireBullet_trace_callback_eff, NULL, trailparticles, vdist, vector, and WarpZone_trace_forent.
Referenced by fireBullet_falloff().
| void FireRailgunBullet | ( | entity | this, |
| .entity | weaponentity, | ||
| vector | start, | ||
| vector | end, | ||
| float | bdamage, | ||
| bool | headshot_notify, | ||
| float | bforce, | ||
| float | mindist, | ||
| float | maxdist, | ||
| float | halflifedist, | ||
| float | forcehalflifedist, | ||
| int | deathtype ) |
Definition at line 238 of file tracing.qc.
References accuracy_add(), antilag_debug, ANTILAG_LATENCY, ATTEN_IDLE, bound(), CH_SHOTS, CS(), Damage_DamageInfo(), dir, entity(), FOREACH_CLIENT, g_railgunhit, Headshot(), IL_CLEAR, IL_EACH, IL_PUSH(), IS_REAL_CLIENT, IS_SPEC, m_weapon, min(), msg_entity, MSG_ONE, normalize(), NULL, Send_Notification(), SND, SOLID_BSP, SOLID_NOT, SOLID_SLIDEBOX, soundtoat(), trace_dphitq3surfaceflags, trace_endpos, trace_ent, trace_fraction, vector, vlen(), VOL_BASEVOICE, WarpZone_trace_firstzone, WarpZone_trace_transform, WarpZone_traceline_antilag(), WarpZone_TransformVelocity(), and WarpZone_UnTransformOrigin().
Referenced by W_OverkillNex_Attack(), W_Vaporizer_Attack(), and W_Vortex_Attack().
| STATIC_INIT | ( | g_ctrace_changed | ) |
| STATIC_INIT | ( | g_railgunhit | ) |
| void traceline_antilag | ( | entity | source, |
| vector | v1, | ||
| vector | v2, | ||
| float | nomonst, | ||
| entity | forent, | ||
| float | lag ) |
Definition at line 203 of file antilag.qc.
References autocvar_g_antilag, CS_CVAR, entity(), IS_CLIENT, traceline_antilag_force(), and vector.
Referenced by crosshair_trace().
| vector W_CalculateProjectileVelocity | ( | entity | actor, |
| vector | pvelocity, | ||
| vector | mvelocity, | ||
| float | forceAbsolute ) |
Definition at line 176 of file tracing.qc.
References autocvar_g_projectiles_newton_style, autocvar_g_projectiles_newton_style_2_maxfactor, autocvar_g_projectiles_newton_style_2_minfactor, entity(), get_shotvelocity(), normalize(), vector, vlen(), and W_WeaponSpeedFactor().
Referenced by ctf_Handle_Throw(), IMPULSE(), kh_Key_DropAll(), kh_Key_DropOne(), powerups_DropItem(), toss_nade(), W_Nexball_Attack(), W_RocketMinsta_Attack(), and W_SetupProjVelocity_Explicit().
| void W_SetupProjVelocity_Explicit | ( | entity | proj, |
| vector | dir, | ||
| vector | upDir, | ||
| float | pSpeed, | ||
| float | pUpSpeed, | ||
| float | pZSpeed, | ||
| float | spread, | ||
| float | forceAbsolute ) |
Definition at line 192 of file tracing.qc.
References autocvar_g_projectiles_spread_style, dir, entity(), error, ftos(), gettime(), GETTIME_HIRES, LOG_INFO, normalize(), NULL, vector, vlen(), W_CalculateProjectileVelocity(), and W_CalculateSpread().
Referenced by FireGrapplingHook(), M_Golem_Attack_Lightning(), M_Spider_Attack_Web(), W_Blaster_Attack(), W_Crylink_Attack(), W_Crylink_Attack2(), and W_Hagar_Attack2_Load_Release().
| void W_SetupShot_Dir_ProjectileSize_Range | ( | entity | ent, |
| .entity | weaponentity, | ||
| vector | s_forward, | ||
| vector | mi, | ||
| vector | ma, | ||
| float | antilag, | ||
| float | recoil, | ||
| Sound | snd, | ||
| float | chan, | ||
| float | maxdamage, | ||
| float | range, | ||
| int | deathtype ) |
Definition at line 24 of file tracing.qc.
References accuracy_add(), accuracy_canbegooddamage(), antilag_debug, ANTILAG_LATENCY, ATTN_NORM, autocvar_g_antilag, autocvar_g_norecoil, autocvar_g_trueaim_minrange, CS(), CS_CVAR, cursor_trace_ent, DEATH_WEAPONOF, DPCONTENTS_BODY, DPCONTENTS_CORPSE, DPCONTENTS_SOLID, entity(), IS_CLIENT, IS_PLAYER, LOG_INFO, MOVE_NOMONSTERS, MOVE_NORMAL, movedir, normalize(), NULL, sound, Weapon::spawnflags, TC, trace_endpos, trace_ent, tracebox_antilag(), traceline_antilag_force(), v_forward, v_right, v_up, vdist, vector, VOL_BASE, W_DualWielding(), W_HitPlotAnalysis(), W_PlayStrengthSound(), w_shotdir, w_shotend, w_shotorg, WarpZone_trace_transform, WarpZone_TraceLine(), WarpZone_traceline_antilag(), WarpZone_UnTransformOrigin(), and WEP_FLAG_PENETRATEWALLS.
Definition at line 585 of file tracing.qc.
References ANTILAG_LATENCY, CS(), cursor_trace_endpos, cursor_trace_start, entity(), max_shot_distance, MOVE_NORMAL, normalize(), and WarpZone_traceline_antilag().
Referenced by crosshair_trace_plusvisibletriggers__is_wz(), crosshair_trace_waypoints(), IMPULSE(), and IMPULSE().
Definition at line 559 of file tracing.qc.
References crosshair_trace_plusvisibletriggers__is_wz(), and entity().
Referenced by formatmessage(), IMPULSE(), and show_entnum().
| void WarpZone_traceline_antilag | ( | entity | source, |
| vector | v1, | ||
| vector | v2, | ||
| float | nomonst, | ||
| entity | forent, | ||
| float | lag ) |
Definition at line 221 of file antilag.qc.
References autocvar_g_antilag, CS_CVAR, entity(), IS_CLIENT, vector, and WarpZone_traceline_antilag_force().
Referenced by FireRailgunBullet(), W_Arc_Beam_Think(), W_SetupShot_Dir_ProjectileSize_Range(), W_Shotgun_Melee_Think(), and WarpZone_crosshair_trace().
| float autocvar_g_ballistics_density_corpse |
Definition at line 6 of file tracing.qh.
Referenced by PlayerDamage().
| float autocvar_g_ballistics_density_player |
Definition at line 7 of file tracing.qh.
Referenced by PutPlayerInServer().
| float autocvar_g_ballistics_mindistance |
Definition at line 8 of file tracing.qh.
Referenced by fireBullet_falloff().
Definition at line 9 of file tracing.qh.
Referenced by fireBullet_falloff().
| float autocvar_g_ballistics_solidpenetration_exponent = 1 |
Definition at line 10 of file tracing.qh.
Referenced by fireBullet_falloff().
| int autocvar_g_hitscan_spread_style |
Definition at line 15 of file tracing.qh.
Referenced by fireBullet_falloff().
| bool autocvar_g_norecoil |
Definition at line 16 of file tracing.qh.
Referenced by GameLogInit(), W_HLAC_Attack(), W_HLAC_Attack2(), W_MachineGun_Attack(), W_MachineGun_Attack_Auto(), W_MachineGun_Attack_Burst(), W_OverkillHeavyMachineGun_Attack_Auto(), W_OverkillMachineGun_Attack_Auto(), and W_SetupShot_Dir_ProjectileSize_Range().
| int autocvar_g_projectiles_newton_style |
Definition at line 11 of file tracing.qh.
Referenced by W_CalculateProjectileVelocity(), and W_Hook_Attack2().
| float autocvar_g_projectiles_newton_style_2_maxfactor |
Definition at line 12 of file tracing.qh.
Referenced by W_CalculateProjectileVelocity().
| float autocvar_g_projectiles_newton_style_2_minfactor |
Definition at line 13 of file tracing.qh.
Referenced by W_CalculateProjectileVelocity().
| int autocvar_g_projectiles_spread_style |
Definition at line 14 of file tracing.qh.
Referenced by nades_CheckThrow(), and W_SetupProjVelocity_Explicit().
| float autocvar_g_trueaim_minrange |
Definition at line 17 of file tracing.qh.
Referenced by ClientInit_misc(), and W_SetupShot_Dir_ProjectileSize_Range().
| float ballistics_density |
Definition at line 78 of file tracing.qh.
| entity fireBullet_last_hit |
Definition at line 93 of file tracing.qh.
Referenced by fireBullet_falloff(), and fireBullet_trace_callback().
| entity fireBullet_trace_callback_eff |
Definition at line 92 of file tracing.qh.
Referenced by fireBullet_falloff(), and fireBullet_trace_callback().
| IntrusiveList g_ctrace_changed |
Definition at line 110 of file tracing.qh.
Referenced by crosshair_trace_plusvisibletriggers__is_wz(), and STATIC_INIT().
| IntrusiveList g_railgunhit |
Definition at line 85 of file tracing.qh.
Referenced by FireImoBeam(), FireRailgunBullet(), and STATIC_INIT().
| float railgundistance |
Definition at line 88 of file tracing.qh.
| vector railgunforce |
Definition at line 89 of file tracing.qh.
| bool railgunhit |
Definition at line 81 of file tracing.qh.
| vector railgunhitloc |
Definition at line 83 of file tracing.qh.
| float railgunhitsolidbackup |
Definition at line 82 of file tracing.qh.
| vector w_shotdir |
Definition at line 20 of file tracing.qh.
Referenced by Arc_Smoke(), CheatCommand(), FireGrapplingHook(), M_Wyvern_Attack_Fireball(), SOUND(), SOUND(), SOUND(), SOUND(), SOUND(), SOUND(), SOUND(), SOUND(), SOUND(), SOUND(), SOUND(), SOUND(), W_Arc_Attack_Bolt(), W_Arc_Beam_Think(), W_Blaster_Attack(), W_Crylink_Attack(), W_Crylink_Attack2(), W_Devastator_Attack(), W_Electro_Attack_Bolt(), W_Electro_Attack_Orb(), W_Fireball_Attack1(), W_Fireball_Attack2(), W_Fireball_AttackEffect(), W_Hagar_Attack(), W_Hagar_Attack2(), W_Hagar_Attack2_Load_Release(), W_HLAC_Attack(), W_HLAC_Attack2(), W_MachineGun_Attack(), W_MachineGun_Attack_Auto(), W_MachineGun_Attack_Burst(), W_MineLayer_Attack(), W_Mortar_Attack(), W_Mortar_Attack2(), W_Nexball_Attack(), W_OverkillHeavyMachineGun_Attack_Auto(), W_OverkillMachineGun_Attack_Auto(), W_OverkillNex_Attack(), W_OverkillRocketPropelledChainsaw_Attack(), W_Porto_Attack(), W_Rifle_FireBullet(), W_RocketMinsta_Attack(), W_Seeker_Fire_Flac(), W_Seeker_Fire_Missile(), W_SetupShot_Dir_ProjectileSize_Range(), W_Shotgun_Attack(), W_Vaporizer_Attack(), and W_Vortex_Attack().
| vector w_shotend |
Definition at line 21 of file tracing.qh.
Referenced by W_SetupShot_Dir_ProjectileSize_Range().
| vector w_shotorg |
Definition at line 19 of file tracing.qh.
Referenced by Arc_Smoke(), CheatCommand(), FireGrapplingHook(), SendCSQCVaporizerBeamParticle(), SendCSQCVortexBeamParticle(), SOUND(), SOUND(), SOUND(), SOUND(), SOUND(), SOUND(), SOUND(), SOUND(), SOUND(), SOUND(), SOUND(), toss_nade(), TrueAimCheck(), W_Arc_Attack_Bolt(), W_Arc_Beam_Think(), W_Blaster_Attack(), W_Crylink_Attack(), W_Crylink_Attack2(), W_Devastator_Attack(), W_Electro_Attack_Bolt(), W_Electro_Attack_Orb(), W_Fireball_Attack1(), W_Fireball_Attack2(), W_Fireball_AttackEffect(), W_Hagar_Attack(), W_Hagar_Attack2(), W_Hagar_Attack2_Load_Release(), W_HLAC_Attack(), W_HLAC_Attack2(), W_Hook_Attack2(), W_MachineGun_Attack(), W_MachineGun_Attack_Auto(), W_MachineGun_Attack_Burst(), W_MineLayer_Attack(), W_Mortar_Attack(), W_Mortar_Attack2(), W_Nexball_Attack(), W_Nexball_Attack2(), W_OverkillHeavyMachineGun_Attack_Auto(), W_OverkillMachineGun_Attack_Auto(), W_OverkillNex_Attack(), W_OverkillRocketPropelledChainsaw_Attack(), W_Porto_Attack(), W_Rifle_FireBullet(), W_RocketMinsta_Attack(), W_Seeker_Fire_Flac(), W_Seeker_Fire_Missile(), W_Seeker_Fire_Tag(), W_SetupShot_Dir_ProjectileSize_Range(), W_Shotgun_Attack(), W_Vaporizer_Attack(), and W_Vortex_Attack().