Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( pGui->lasthit_glow ) {
- C_BaseEntity* LocalEntity = reinterpret_cast<C_BaseEntity*>(global::g_LocalEntity);
- if ( LocalEntity->GetHealth( ) > 0 && (!strcmp( ent->Schema_DynamicBinding( )->binary_name, "C_DOTA_BaseNPC_Creep_Lane" )) ) {
- const float dmg_multiplier = (1 - ((0.06 * ent->GetArmorValue( )) / (1 + 0.06 * std::fabs( ent->GetArmorValue( ) ))));
- const float dmg = (((LocalEntity->GetMinDamage( ) + LocalEntity->GetMaxDamage( )) / 2 + LocalEntity->GetBonusDamage( )) * dmg_multiplier);
- if ( (pGui->lasthit_glow_ally) ) {
- if ( (!ally && dmg >= ent->GetHealth( )) || (ally && (ent->GetHealth( ) <= (ent->GetMaxHealth( ) / 2)) && ((dmg * 0.5) > ent->GetHealth( ))) ) {
- ent->SetEntityColor( pGui->lasthit_glow_r, pGui->lasthit_glow_g, pGui->lasthit_glow_b, 255 );
- }
- else {
- ent->SetEntityColor( 255, 255, 255, 255 );
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement