News:

Come Chat with us live! Learn how HERE!

Main Menu

Hitbox location

Started by swamp-cecil, October 01, 2010, 10:36:42 PM

swamp-cecil

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?
Quote from: DraZiLoX on December 28, 2010, 11:31:28 AM
Quote from: Repatition on December 28, 2010, 02:30:30 AM
these are stupid suggestions, don't even waste our time.
I don't like your negative attitude.

gimhael

Quote from: swamp-cecil 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?

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

#2
Quote from: gimhael on October 02, 2010, 08:27:17 AM
Quote from: swamp-cecil 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?

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.
Quote from: DraZiLoX on December 28, 2010, 11:31:28 AM
Quote from: Repatition on December 28, 2010, 02:30:30 AM
these are stupid suggestions, don't even waste our time.
I don't like your negative attitude.

gimhael

What exactly did you change ?

swamp-cecil

Quote from: gimhael on October 02, 2010, 03:29:02 PM
What exactly did you change ?

NEVER MIND i put it in the wrong mod folder. silly me.
Quote from: DraZiLoX on December 28, 2010, 11:31:28 AM
Quote from: Repatition on December 28, 2010, 02:30:30 AM
these are stupid suggestions, don't even waste our time.
I don't like your negative attitude.