• Modifying headshot multiplier
    6 replies, posted
Another issue another thread The default damage multiplier for the head is something like 4x, how do I change that?
[b][url=wiki.garrysmod.com/?title=Gamemode.ScalePlayerDamage]Gamemode.ScalePlayerDamage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
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.
[QUOTE=MakeR;27562541]Returning in your hook will stop the other PlayerScaleDamage hooks (if there are any) and the gamemode function from running.[/QUOTE] 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.
[QUOTE=_Kilburn;27567589]You have to return anything that isn't nil if I remember correctly. return true should do the job fine.[/QUOTE] You remember correctly, that is what I meant. I will edit my post to avoid confusion.
Sorry, you need to Log In to post a reply to this thread.