Quote:
Originally Posted by Doc-Holiday
1.0.1 09/13/12
Hopefully fixed the error on mapchange.
|
This version does fix the log error messages on mapchange. However, every time someone uses an HE nade in game it spams 4 messages to chat. Something about creating hook, original damage/radius and new damage/radius. I don't have the exact messages written down.
Is there a way to suppress these messages in game? They are distracting and make it hard to chat with others due to scrolling by to fast.
Edit:
I belive the 2 "PrintToChatAll lines are the problem but I'm not sure how to fix it (compile with sdkhooks)
Code:
new Float:flGrenadePower = GetEntPropFloat(iEnt, Prop_Send, "m_flDamage");
new Float:flGrenadeRadius = GetEntPropFloat(iEnt, Prop_Send, "m_DmgRadius");
PrintToChatAll("Original - Power:%f Radius:%f", flGrenadePower, flGrenadeRadius);
SetEntPropFloat(iEnt, Prop_Send, "m_flDamage", (flGrenadePower*GetConVarFloat(g_Cvar_Power)));
SetEntPropFloat(iEnt, Prop_Send, "m_DmgRadius", (flGrenadeRadius*GetConVarFloat(g_Cvar_Radius)));
PrintToChatAll("Modified - Power:%f Radius:%f", (flGrenadePower*GetConVarFloat(g_Cvar_Power)), (flGrenadeRadius*GetConVarFloat(g_Cvar_Radius)));
Edit2:
Nevermind; I removed the PrintToChatAll lines and recompiled and it seems to work; thanks.