Tremulous Forum

Mods => Modding Center => Topic started by: swamp-cecil on October 01, 2010, 10:36:42 pm

Title: Hitbox location
Post by: 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?

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?
Title: Re: Hitbox location
Post by: gimhael 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.
Title: Re: Hitbox location
Post by: swamp-cecil 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.
Title: Re: Hitbox location
Post by: gimhael on October 02, 2010, 03:29:02 pm
What exactly did you change ?
Title: Re: Hitbox location
Post by: swamp-cecil 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.