Modifying headshot multiplier

Another issue another thread

The default damage multiplier for the head is something like 4x, how do I change that?

**[Gamemode.ScalePlayerDamage

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.ScalePlayerDamage)**

I’ve got their example code in a hook for my gamemode, with everything to just 1. There’s still locational damage

Try overriding it, instead of hooking it.

Returning anything non-nil in your hook will stop the other PlayerScaleDamage hooks (if there are any) and the gamemode function from running.

You have to return anything that isn’t nil if I remember correctly. return true should do the job fine.

[editline]21st January 2011[/editline]

Actually, if you are working on a gamemode, you should just completely override the gamemode function instead of hooking into it.

You remember correctly, that is what I meant. I will edit my post to avoid confusion.