Skip to content

Commit

Permalink
Getting killed during superfall without shooting back is no longer "W…
Browse files Browse the repository at this point in the history
…orth it!"

This was deliberately added in 3d3ff3f.
  • Loading branch information
TomyLobo committed Jun 19, 2016
1 parent 05521ad commit 76de3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mp/src/game/server/sdk/sdk_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1778,7 +1778,7 @@ void CSDKPlayer::Event_Killed( const CTakeDamageInfo &info )
else if (info.GetInflictor() && (FStrEq(info.GetInflictor()->GetClassname(), "trigger_kill") || FStrEq(info.GetInflictor()->GetClassname(), "trigger_hurt")))
bEligible = true;

if (bEligible && (m_bKilledEnemyDuringFall || m_bDamagedEnemyDuringSuperFall || (m_hKiller.Get() && m_hKiller->IsPlayer() && m_hKiller.Get() != this)))
if (bEligible && (m_bKilledEnemyDuringFall || m_bDamagedEnemyDuringSuperFall))
{
AddStylePoints(10, STYLE_SOUND_LARGE, ANNOUNCEMENT_STYLISH, STYLE_POINT_LARGE);
// Send "Worth it!" after the style points so that if the player gets their skill activated because of it, that message won't override the "Worth it!" message.
Expand Down

0 comments on commit 76de3e3

Please sign in to comment.