Skip to content

Commit

Permalink
removed unessacary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JSaurusRex committed Jun 12, 2024
1 parent 5fd32ce commit e46aa6c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/server/entities/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ void CCharacter::SnapCharacter(int SnappingClient, int Id)
pCharacter->m_Weapon = Weapon;
pCharacter->m_AmmoCount = AmmoCount;
pCharacter->m_Health = Health;
pCharacter->m_Armor = m_Armor;
pCharacter->m_Armor = Armor;
pCharacter->m_PlayerFlags = GetPlayer()->m_PlayerFlags;
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/game/server/entities/laser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ bool CLaser::HitCharacter(vec2 From, vec2 To)
}
else if(m_Type == WEAPON_LASER)
{
pHit->TakeDamage(vec2(0, 0), 5, m_Owner, WEAPON_LASER);
pHit->TakeDamage(vec2(0, 0), 10, m_Owner, WEAPON_LASER);
pHit->UnFreeze();
}
return true;
Expand Down
5 changes: 5 additions & 0 deletions src/game/server/gamemodes/ctf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ bool CGameControllerCTF::OnCharacterTakeDamage(vec2 &Force, int &Dmg, int &From,
Dmg = 0;
}

if(WEAPON_LASER == Weapon)
{
Dmg = 5;
}

int damage = Dmg;

if(From == Character.GetPlayer()->GetCid())
Expand Down

0 comments on commit e46aa6c

Please sign in to comment.