codemp/cgame/fx_heavyrepeater.c File Reference

#include "cg_local.h"

Go to the source code of this file.

Functions

void FX_RepeaterProjectileThink (centity_t *cent, const struct weaponInfo_s *weapon)
void FX_RepeaterHitWall (vec3_t origin, vec3_t normal)
void FX_RepeaterHitPlayer (vec3_t origin, vec3_t normal, qboolean humanoid)
void FX_RepeaterAltProjectileThink (centity_t *cent, const struct weaponInfo_s *weapon)
void FX_RepeaterAltHitWall (vec3_t origin, vec3_t normal)
void FX_RepeaterAltHitPlayer (vec3_t origin, vec3_t normal, qboolean humanoid)


Function Documentation

void FX_RepeaterAltHitPlayer vec3_t  origin,
vec3_t  normal,
qboolean  humanoid
 

Definition at line 152 of file fx_heavyrepeater.c.

References cgs, cgs_t::effects, cgEffects_t::repeaterAltWallImpactEffect, trap_FX_PlayEffectID(), and vec3_t.

Referenced by CG_MissileHitPlayer().

00153 {
00154         trap_FX_PlayEffectID( cgs.effects.repeaterAltWallImpactEffect, origin, normal, -1, -1 );
00155 }

void FX_RepeaterAltHitWall vec3_t  origin,
vec3_t  normal
 

Definition at line 141 of file fx_heavyrepeater.c.

References cgs, cgs_t::effects, cgEffects_t::repeaterAltWallImpactEffect, trap_FX_PlayEffectID(), and vec3_t.

Referenced by CG_MissileHitWall().

00142 {
00143         trap_FX_PlayEffectID( cgs.effects.repeaterAltWallImpactEffect, origin, normal, -1, -1 );
00144 }

void FX_RepeaterAltProjectileThink centity_t cent,
const struct weaponInfo_s weapon
 

Definition at line 119 of file fx_heavyrepeater.c.

References centity_t, cg_repeaterOrb, cgs, centity_s::currentState, cgs_t::effects, vmCvar_t::integer, centity_s::lerpOrigin, entityState_s::pos, cgEffects_t::repeaterAltProjectileEffect, trap_FX_PlayEffectID(), trajectory_t::trDelta, vec3_t, and VectorNormalize2().

Referenced by CG_RegisterWeapon().

00120 {
00121         vec3_t forward;
00122 
00123         if ( VectorNormalize2( cent->currentState.pos.trDelta, forward ) == 0.0f )
00124         {
00125                 forward[2] = 1.0f;
00126         }
00127 
00128         if (cg_repeaterOrb.integer)
00129         {
00130                 CG_DistortionOrb(cent);
00131         }
00132         trap_FX_PlayEffectID( cgs.effects.repeaterAltProjectileEffect, cent->lerpOrigin, forward, -1, -1 );
00133 }

void FX_RepeaterHitPlayer vec3_t  origin,
vec3_t  normal,
qboolean  humanoid
 

Definition at line 40 of file fx_heavyrepeater.c.

References cgs, cgs_t::effects, cgEffects_t::repeaterFleshImpactEffect, trap_FX_PlayEffectID(), and vec3_t.

Referenced by CG_MissileHitPlayer().

00041 {
00042         trap_FX_PlayEffectID( cgs.effects.repeaterFleshImpactEffect, origin, normal, -1, -1 );
00043 }

void FX_RepeaterHitWall vec3_t  origin,
vec3_t  normal
 

Definition at line 29 of file fx_heavyrepeater.c.

References cgs, cgs_t::effects, cgEffects_t::repeaterWallImpactEffect, trap_FX_PlayEffectID(), and vec3_t.

Referenced by CG_MissileHitWall().

00030 {
00031         trap_FX_PlayEffectID( cgs.effects.repeaterWallImpactEffect, origin, normal, -1, -1 );
00032 }

void FX_RepeaterProjectileThink centity_t cent,
const struct weaponInfo_s weapon
 

Definition at line 11 of file fx_heavyrepeater.c.

References centity_t, cgs, centity_s::currentState, cgs_t::effects, centity_s::lerpOrigin, entityState_s::pos, cgEffects_t::repeaterProjectileEffect, trap_FX_PlayEffectID(), trajectory_t::trDelta, vec3_t, and VectorNormalize2().

Referenced by CG_RegisterWeapon().

00012 {
00013         vec3_t forward;
00014 
00015         if ( VectorNormalize2( cent->currentState.pos.trDelta, forward ) == 0.0f )
00016         {
00017                 forward[2] = 1.0f;
00018         }
00019 
00020         trap_FX_PlayEffectID( cgs.effects.repeaterProjectileEffect, cent->lerpOrigin, forward, -1, -1 );
00021 }