Modifying Body-Hitbox possible?


(Superdreadnought) #1

Im trying to give ET some better hitboxes and cauz the body-hitbox suxx most I tried to edit it, but i only found the BuildHead and BuildLeg sections in teh code …

Is there a way to edit the bodyhitbox?


(jaybird) #2

How exactly are you trying to modify it?


(Superdreadnought) #3

by editing the Vector-Stuff within teh code.


(moonShield) #4

http://quake.de/index.php?action=code3arena14&q=q3
http://quake.de/index.php?action=code3arena15&q=q3
(german)

Never tried to mod Hitboxes…


(jaybird) #5

I mean, what are you going to change about it?


(Superdreadnought) #6

much too high - if u shoot OVER or BESIDE somebaodys head u still get a body hit … and its too wide, too


(jaybird) #7

You should take extreme care when modifying the actual hitbox. Hit detection is based off of those vector values you see defined in g_client I believe, not only for shots fired, but world movement as well. Note that lowering the base value for the body box height will result in a player jumping through ceilings slightly, and modifying widths could make walls sticky. You might check out ETPub - they have developed a method to affect only shot-based hit detection.


(SCDS_reyalP) #8

Yes, the stock code uses the mins/maxes of the player entity. See the code for crouch and prone for examples of how this gets manipulated.


(Superdreadnought) #9

teh link to the site moonShield posted (thank you , btw) shows just this - sounds very promising! the only problem that could happen is that the hitsounds will play even when not hitting the new hitbox, but this should be fixable …


(Jaquboss) #10

etpub code is somewhat unfinished in my eyes
in fact it is correct, but you also have to port it on client
otherwise you will trace bullets there agains big body -> you will see fake hit on locations you’ve “removed” ( sparks with default settings )


(Calzonzin) #11

We do take code contributions :slight_smile:


(Superdreadnought) #12

i’ve already supposed this would happen, jaqu … shit!