How to make bullets hit player bounding box, not model hitboxes?

Is it even possible? Or do I need to recreate bullets using traces and surface hit effects?

FireBullets does this every other bullet with shot counts >1 (shotguns) by using hull traces. See example in Lua here: https://github.com/SuperiorServers/plib_v2/blob/master/lua/plib/extensions/player.lua#L361-L370

So it’s FireBullets recoded in Lua? I see a lot of custom functions there, can it somehow be simplified using default gmod ones? [sp]That math.MD5Random scares me lol[/sp]

No it’s not coded in Lua in default GMod, that was just what those servers do, depending on your case there’s two ways to go about it:

  1. You hook into

GM:EntityFireBullets, change the “hullsize” in the table and return true in the hook to apply your changes.

  1. You do that “hullsize” setting on your Lua weapons before firing the bullets.

Thank you so much, I didn’t know bullet table has HullSize parameter.

[editline]22nd September 2016[/editline]

Oh, that’s the bullet’s hull, not player’s. Still looking for better ways.

It turns the bullet trace into a hulltrace, which will hit the player’s hull, that’s what you’re looking for.

Ah, I see now. Thanks again.

http://puu.sh/rk2mP/d16acaf39b.jpg