Author Topic: Hitbox location  (Read 5029 times)

swamp-cecil

  • Posts: 774
  • Turrets: +80/-163
    • Tremulous
Hitbox location
« on: October 01, 2010, 10:36:42 pm »
well, where is the code for the hitbox stored? is it in overrides and the numbers on the second column?

also, if you could, i have a question where i replaced the .md3 of a dretch with the grangers (hence my mod "the Granger Mod"), but the granger-dretch is halfway in the ground. its probaby the positioning in a certain file, bt which one and which line of code?
these are stupid suggestions, don't even waste our time.
I don't like your negative attitude.

gimhael

  • Posts: 546
  • Turrets: +70/-16
Re: Hitbox location
« Reply #1 on: October 02, 2010, 08:27:17 am »
well, where is the code for the hitbox stored? is it in overrides and the numbers on the second column?

It's all in the overrides/blah/something.cfg files. The lines "mins" and "maxs" specify the opposite corners of the bounding box relative to the origin. crouchMaxs, deadMins and deadMaxs specify the same corners when you're crouching and/or dead.

So the dretch's bounding box is 30x30x30 pixels and the granger's is 40x40x40. (All wallwalkers MUST have symmetric bounding boxes !) As the granger model is made for a distance of 20 from ground to origin, but the dretch bbox makes this distance only 15 the granger model intersects the ground.

There are two ways to fix this:
a) increase the "dretch" size to 40x40x40
b) scale down the granger model to the size of the dretch. Fortunately there's the "modelScale" parameter for this, try modelScale 0.75.

swamp-cecil

  • Posts: 774
  • Turrets: +80/-163
    • Tremulous
Re: Hitbox location
« Reply #2 on: October 02, 2010, 01:15:27 pm »
well, where is the code for the hitbox stored? is it in overrides and the numbers on the second column?

It's all in the overrides/blah/something.cfg files. The lines "mins" and "maxs" specify the opposite corners of the bounding box relative to the origin. crouchMaxs, deadMins and deadMaxs specify the same corners when you're crouching and/or dead.

So the dretch's bounding box is 30x30x30 pixels and the granger's is 40x40x40. (All wallwalkers MUST have symmetric bounding boxes !) As the granger model is made for a distance of 20 from ground to origin, but the dretch bbox makes this distance only 15 the granger model intersects the ground.

There are two ways to fix this:
a) increase the "dretch" size to 40x40x40
b) scale down the granger model to the size of the dretch. Fortunately there's the "modelScale" parameter for this, try modelScale 0.75.

ok thank, i will try this. ill edit the post when it works/dosent works.
erm... the dretches modelscale is at 1.0.
it isnt working... i tried making the rant have the same size hitbox as a granger, but its still as big as a rants hitbox.
« Last Edit: October 02, 2010, 01:25:52 pm by swamp-cecil »
these are stupid suggestions, don't even waste our time.
I don't like your negative attitude.

gimhael

  • Posts: 546
  • Turrets: +70/-16
Re: Hitbox location
« Reply #3 on: October 02, 2010, 03:29:02 pm »
What exactly did you change ?

swamp-cecil

  • Posts: 774
  • Turrets: +80/-163
    • Tremulous
Re: Hitbox location
« Reply #4 on: October 02, 2010, 09:55:34 pm »
What exactly did you change ?

NEVER MIND i put it in the wrong mod folder. silly me.
these are stupid suggestions, don't even waste our time.
I don't like your negative attitude.