Skip to content

Commit

Permalink
Remove some useless comments
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Oct 8, 2024
1 parent 835f377 commit cb4d93f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 40 deletions.
14 changes: 1 addition & 13 deletions dlls/displacer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,6 @@ void CDisplacer::WeaponIdle(void)
SendWeaponAnim(iAnim);
}

//=========================================================
// Purpose:
//=========================================================
void CDisplacer::ClearSpin( void )
{

Expand All @@ -209,9 +206,6 @@ void CDisplacer::ClearSpin( void )
}
}

//=========================================================
// Purpose:
//=========================================================
void CDisplacer::SpinUp( void )
{
SendWeaponAnim( DISPLACER_SPINUP );
Expand All @@ -232,9 +226,6 @@ void CDisplacer::SpinUp( void )
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 1.3;
}

//=========================================================
// Purpose:
//=========================================================
void CDisplacer::Displace( void )
{
ClearBeams();
Expand All @@ -244,7 +235,7 @@ void CDisplacer::Displace( void )
EMIT_SOUND( edict(), CHAN_WEAPON, "weapons/displacer_fire.wav", 1, ATTN_NORM );

// player "shoot" animation
m_pPlayer->SetAnimation( PLAYER_ATTACK1 );
m_pPlayer->SetAnimation( PLAYER_ATTACK1 );

m_pPlayer->pev->punchangle.x -= 2;
#if !CLIENT_DLL
Expand All @@ -264,9 +255,6 @@ void CDisplacer::Displace( void )
#endif
}

//=========================================================
// Purpose:
//=========================================================
void CDisplacer::Teleport( void )
{
ClearBeams();
Expand Down
27 changes: 0 additions & 27 deletions dlls/voltigore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ TYPEDESCRIPTION CVoltigoreEnergyBall::m_SaveData[] =

IMPLEMENT_SAVERESTORE(CVoltigoreEnergyBall, CBaseEntity)

//=========================================================
// Purpose:
//=========================================================
void CVoltigoreEnergyBall::Spawn(void)
{
pev->movetype = MOVETYPE_FLY;
Expand All @@ -121,9 +118,6 @@ void CVoltigoreEnergyBall::Spawn(void)
m_iBeams = 0;
}

//=========================================================
// Purpose:
//=========================================================
void CVoltigoreEnergyBall::Shoot(entvars_t *pevOwner, Vector vecStart, Vector vecVelocity)
{
CVoltigoreEnergyBall *pEnergyBall = GetClassPtr((CVoltigoreEnergyBall *)NULL);
Expand All @@ -139,9 +133,6 @@ void CVoltigoreEnergyBall::Shoot(entvars_t *pevOwner, Vector vecStart, Vector ve
pEnergyBall->pev->nextthink = gpGlobals->time + 0.1;
}

//=========================================================
// Purpose:
//=========================================================
void CVoltigoreEnergyBall::BallTouch(CBaseEntity *pOther)
{
TraceResult tr;
Expand All @@ -167,9 +158,6 @@ void CVoltigoreEnergyBall::BallTouch(CBaseEntity *pOther)
SetTouch(NULL);
}

//=========================================================
// Purpose:
//=========================================================
void CVoltigoreEnergyBall::FlyThink(void)
{
pev->nextthink = gpGlobals->time + 0.1;
Expand Down Expand Up @@ -209,9 +197,6 @@ void CVoltigoreEnergyBall::FlyThink(void)
}
}

//=========================================================
// Purpose:
//=========================================================
void CVoltigoreEnergyBall::CreateBeam(int nIndex, const Vector& vecPos, int width, int brightness)
{
m_pBeam[nIndex] = CBeam::BeamCreate(VOLTIGORE_ZAP_BEAM, width);
Expand All @@ -224,9 +209,6 @@ void CVoltigoreEnergyBall::CreateBeam(int nIndex, const Vector& vecPos, int widt
m_pBeam[nIndex]->SetNoise(VOLTIGORE_ZAP_NOISE);
}

//=========================================================
// Purpose:
//=========================================================
void CVoltigoreEnergyBall::UpdateBeam(int nIndex, const Vector& vecPos, bool show)
{
if (!m_pBeam[nIndex])
Expand All @@ -237,9 +219,6 @@ void CVoltigoreEnergyBall::UpdateBeam(int nIndex, const Vector& vecPos, bool sho
m_pBeam[nIndex]->RelinkBeam();
}

//=========================================================
// Purpose:
//=========================================================
void CVoltigoreEnergyBall::ClearBeam(int nIndex)
{
if (m_pBeam[nIndex])
Expand All @@ -249,9 +228,6 @@ void CVoltigoreEnergyBall::ClearBeam(int nIndex)
}
}

//=========================================================
// CreateBeams - create all beams
//=========================================================
void CVoltigoreEnergyBall::CreateBeams()
{
for (int i = 0; i < VOLTIGORE_MAX_BEAMS; ++i)
Expand All @@ -261,9 +237,6 @@ void CVoltigoreEnergyBall::CreateBeams()
m_iBeams = VOLTIGORE_MAX_BEAMS;
}

//=========================================================
// ClearBeams - remove all beams
//=========================================================
void CVoltigoreEnergyBall::ClearBeams()
{
for (int i = 0; i < VOLTIGORE_MAX_BEAMS; ++i)
Expand Down

0 comments on commit cb4d93f

Please sign in to comment.