NeWsOfTzzz
05-02-2009, 12:41
I followed the event tutorial but this doesn't really work:
public OnPluginStart()
{
HookEvent("player_hurt", Event_PlayerHurt, EventHookMode_Pre);
}
public Action:Event_PlayerHurt(Handle:event, const String:name[], bool:dontBroadcast)
{
return Plugin_Handled;
}I need this to build a headshot only mod, like those which already exist, but I don't want the slowdowns when you get hit into the stomach. I know this is possible, because I know a server using it.
So how do I fully block the whole player-being-hurt process and the weapon impact functions?
public OnPluginStart()
{
HookEvent("player_hurt", Event_PlayerHurt, EventHookMode_Pre);
}
public Action:Event_PlayerHurt(Handle:event, const String:name[], bool:dontBroadcast)
{
return Plugin_Handled;
}I need this to build a headshot only mod, like those which already exist, but I don't want the slowdowns when you get hit into the stomach. I know this is possible, because I know a server using it.
So how do I fully block the whole player-being-hurt process and the weapon impact functions?