Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unused variables in ev_hldm.cpp #3187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 5 additions & 19 deletions cl_dll/ev_hldm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,6 @@ void EV_FireGlock2( event_args_t *args )
vec3_t ShellOrigin;
int shell;
vec3_t vecSrc, vecAiming;
vec3_t vecSpread;
vec3_t up, right, forward;

idx = args->entindex;
Expand Down Expand Up @@ -555,9 +554,7 @@ void EV_FireShotGunDouble( event_args_t *args )
vec3_t ShellOrigin;
int shell;
vec3_t vecSrc, vecAiming;
vec3_t vecSpread;
vec3_t up, right, forward;
float flSpread = 0.01;

idx = args->entindex;
VectorCopy( args->origin, origin );
Expand Down Expand Up @@ -609,9 +606,7 @@ void EV_FireShotGunSingle( event_args_t *args )
vec3_t ShellOrigin;
int shell;
vec3_t vecSrc, vecAiming;
vec3_t vecSpread;
vec3_t up, right, forward;
float flSpread = 0.01;

idx = args->entindex;
VectorCopy( args->origin, origin );
Expand Down Expand Up @@ -668,7 +663,6 @@ void EV_FireMP5( event_args_t *args )
int shell;
vec3_t vecSrc, vecAiming;
vec3_t up, right, forward;
float flSpread = 0.01;

idx = args->entindex;
VectorCopy( args->origin, origin );
Expand Down Expand Up @@ -758,7 +752,6 @@ void EV_FirePython( event_args_t *args )

vec3_t vecSrc, vecAiming;
vec3_t up, right, forward;
float flSpread = 0.01;

idx = args->entindex;
VectorCopy( args->origin, origin );
Expand Down Expand Up @@ -849,16 +842,13 @@ void EV_FireGauss( event_args_t *args )
vec3_t angles;
vec3_t velocity;
float flDamage = args->fparam1;
int primaryfire = args->bparam1;

int m_fPrimaryFire = args->bparam1;
int m_iWeaponVolume = GAUSS_PRIMARY_FIRE_VOLUME;
vec3_t vecSrc;
vec3_t vecDest;
edict_t *pentIgnore;
pmtrace_t tr, beam_tr;
float flMaxFrac = 1.0;
int nTotal = 0;
int fHasPunched = 0;
int fFirstBeam = 1;
int nMaxHits = 10;
Expand Down Expand Up @@ -1142,8 +1132,6 @@ void EV_Crowbar( event_args_t *args )
{
int idx;
vec3_t origin;
vec3_t angles;
vec3_t velocity;

idx = args->entindex;
VectorCopy( args->origin, origin );
Expand Down Expand Up @@ -1389,12 +1377,11 @@ BEAM *pBeam2;

void EV_EgonFire( event_args_t *args )
{
int idx, iFireState, iFireMode;
int idx, iFireMode;
vec3_t origin;

idx = args->entindex;
VectorCopy( args->origin, origin );
iFireState = args->iparam1;
iFireMode = args->iparam2;
int iStartup = args->bparam1;

Expand All @@ -1420,7 +1407,7 @@ void EV_EgonFire( event_args_t *args )

if ( iStartup == 1 && EV_IsLocal( idx ) && !pBeam && !pBeam2 && cl_lw->value ) //Adrian: Added the cl_lw check for those lital people that hate weapon prediction.
{
vec3_t vecSrc, vecEnd, origin, angles, forward, right, up;
vec3_t vecSrc, vecEnd, angles, forward, right, up;
pmtrace_t tr;

cl_entity_t *pl = gEngfuncs.GetEntityByIndex( idx );
Expand Down Expand Up @@ -1518,13 +1505,12 @@ enum hgun_e {

void EV_HornetGunFire( event_args_t *args )
{
int idx, iFireMode;
vec3_t origin, angles, vecSrc, forward, right, up;
int idx;
vec3_t origin, angles;

idx = args->entindex;
VectorCopy( args->origin, origin );
VectorCopy( args->angles, angles );
iFireMode = args->iparam1;

//Only play the weapon anims if I shot it.
if ( EV_IsLocal( idx ) )
Expand Down Expand Up @@ -1617,7 +1603,7 @@ enum squeak_e {
void EV_SnarkFire( event_args_t *args )
{
int idx;
vec3_t vecSrc, angles, view_ofs, forward;
vec3_t vecSrc, angles, forward;
pmtrace_t tr;

idx = args->entindex;
Expand Down
4 changes: 2 additions & 2 deletions dlls/egon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void CEgon::Attack( void )

m_flAmmoUseTime = gpGlobals->time;// start using ammo ASAP.

PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usEgonFire, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, m_fireState, m_fireMode, 1, 0 );
PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usEgonFire, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, 0, m_fireMode, 1, 0 );

m_shakeTime = 0;

Expand All @@ -222,7 +222,7 @@ void CEgon::Attack( void )

if ( pev->fuser1 <= UTIL_WeaponTimeBase() )
{
PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usEgonFire, 0, (float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, m_fireState, m_fireMode, 0, 0 );
PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usEgonFire, 0, (float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, 0, m_fireMode, 0, 0 );
pev->fuser1 = 1000;
}

Expand Down
4 changes: 2 additions & 2 deletions dlls/hornetgun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void CHgun::PrimaryAttack()
flags = 0;
#endif

PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usHornetFire, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, FIREMODE_TRACK, 0, 0, 0 );
PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usHornetFire, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, 0, 0, 0, 0 );



Expand Down Expand Up @@ -247,7 +247,7 @@ void CHgun::SecondaryAttack( void )
flags = 0;
#endif

PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usHornetFire, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, FIREMODE_FAST, 0, 0, 0 );
PLAYBACK_EVENT_FULL( flags, m_pPlayer->edict(), m_usHornetFire, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, 0, 0, 0, 0 );


m_pPlayer->m_rgAmmo[m_iPrimaryAmmoType]--;
Expand Down