Use event HP and AP for hitmarker instead
This commit is contained in:
parent
9292d41dfe
commit
578b623ccb
1 changed files with 5 additions and 8 deletions
|
@ -2540,21 +2540,18 @@ void C_CSPlayer::FireGameEvent( IGameEvent* event )
|
|||
buffer_armor[0] = 0;
|
||||
}
|
||||
|
||||
auto realHP = max( player->GetHealth() - health_damages, 0 );
|
||||
auto realAP = max( player->ArmorValue() - armor_damages, 0 );
|
||||
|
||||
hudChat->Printf( CHAT_FILTER_NONE,
|
||||
"\7FFFFFF\x7"
|
||||
"FF00FF%s\x7"
|
||||
"FFFFFF => \x7"
|
||||
"FF0000%i HP \x7"
|
||||
"FFFFFF%s \7FFFFFF(\7FF0000%i HP \7FFFFFF- \x7"
|
||||
"00FFFF%i AP\7FFFFFF)",
|
||||
"FFFFFF%s \7FFFFFF(\7FF0000-%i HP \7FFFFFF & \x7"
|
||||
"00FFFF-%i AP\7FFFFFF)",
|
||||
player->GetPlayerName(),
|
||||
event->GetInt( "health" ),
|
||||
event->GetInt( "armor" ),
|
||||
health_damages,
|
||||
buffer_armor,
|
||||
realHP,
|
||||
realAP );
|
||||
armor_damages );
|
||||
|
||||
m_bHasHitPlayer = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue