Skip to content

Commit

Permalink
Fix Some Custom Attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Batfoxkid committed Jan 25, 2025
1 parent 78ae6c0 commit fd21622
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2740,7 +2740,6 @@
"models/freak_fortress_2/graymann/graymann" "mdl"
"materials/freak_fortress_2/graymann/graymann_lifepack" "mat"
"materials/freak_fortress_2/graymann/hands" "mat"
"materials/freak_fortress_2/graymann/intro" "mat"
"materials/freak_fortress_2/graymann/eyeball_l.vmt" ""
"materials/freak_fortress_2/graymann/eyeball_r.vmt" ""
"materials/freak_fortress_2/graymann/graymann.vmt" ""
Expand Down
6 changes: 3 additions & 3 deletions addons/sourcemod/scripting/freak_fortress_2/customattrib.sp
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ void CustomAttrib_OnHitBossPre(int attacker, int victim, float &damage, int &dam

void CustomAttrib_OnHitBossPost(int attacker, int newPlayerDamage, int lastPlayerDamage)
{
float value = CustomAttrib_FindOnPlayer(attacker, "primary ammo from damage", true);
float value = CustomAttrib_FindOnPlayer(attacker, "primary ammo from damage");
if(value)
{
int ammo = DamageGoal(RoundFloat(value), newPlayerDamage, lastPlayerDamage);
Expand All @@ -729,7 +729,7 @@ void CustomAttrib_OnHitBossPost(int attacker, int newPlayerDamage, int lastPlaye
}
}

value = CustomAttrib_FindOnPlayer(attacker, "secondary ammo from damage", true);
value = CustomAttrib_FindOnPlayer(attacker, "secondary ammo from damage");
if(value)
{
int ammo = DamageGoal(RoundFloat(value), newPlayerDamage, lastPlayerDamage);
Expand Down Expand Up @@ -909,7 +909,7 @@ static void ApplyRage(int victim, int attacker, float amount)
Client(victim).SetCharge(0, rage);

rage = amount / 100.0 * Client(victim).RageDamage;
Client(attacker).Assist += GetClientTeam(victim) == GetClientTeam(attacker) ? rage : -rage;
Client(attacker).Assist += RoundFloat(GetClientTeam(victim) == GetClientTeam(attacker) ? rage : -rage);
}
}
}

0 comments on commit fd21622

Please sign in to comment.