Jump to content

Home

Model scaling code... "Huge Yodo >> Real Yoda"


AJL

Recommended Posts

There were some mod with model scaling... but is there

free to use/copy code for it... ??

 

Or could someone tell me where exactly that model

scale is in the code ??

 

>> How complex stuff is this ???? (just load some file

and take some number from it and scale the model

with it... or do i then also have to change lots of

other stuff when models size changes... ??)

Link to comment
Share on other sites

ok, i wrote the model scaling code and it's quite easy actually...

 

look for ////tck in the jedimod 1.2 source code.

 

you can use it freely as long as you provide credit to me and Dest (for fixing a few bugs in my code :).

 

good luck.

 

 

if you have any question about this code then ask me :)

Link to comment
Share on other sites

and to answer your question, there is not much to do...

 

you have to set the right bounding boxes, you have to change the display size of the model and a few other small things...

like passing the scale to the client ...etc...

 

and a file parsing function that parses the tckmodel.cfg so the game know the scale of the models ...

 

quite easy

Link to comment
Share on other sites

Question...

 

When some character is made to be biger or smaller... :

 

1. Its running anims will become faster/slower too...

 

Or

 

2. Small characters run slower and big ones faster...

 

Or

 

3. No affect on running speeds or anim speeds...

 

??

Link to comment
Share on other sites

I just tested how that model scaling actually works in JediMod

and noticed "little" bug in there...

 

I played as Dooku and tried to kill that damn fast mini yoda

and everything were fine... but then i slashed his head off

and... that head were... HUGE

 

And i played bit more and succeeded to slash his arm off and

again that separated limb were huge...

 

And then i played as Yoda against Yoda and succeeded to cut

his head off but... this time that head didn't become hude...

 

So it seems that characters limbs which have been cut off

are scaled with same number as the model what i am

currently using instead of their own...

 

So... is this know bug ?? Is there existing fix ??

Link to comment
Share on other sites

this bug was fixed in my code but when Dest rewrote it in jedimod's source he forgot a line or 2...

 

here is a way to fix it...

(i didn't try but it should work)

 

in : CG_General()

 

instead of the line :

scale = tck.ps[cent->currentState.clientNum].scale[0];

 

put

if(cent->currentState.eType == ET_BODY)
scale = cent->currentState.speed;
else
scale = tck.ps[cent->currentState.clientNum].scale[0];

 

if you wonder why set the scale to the speed, then check :

CopyToBodyQue

in g_client.c

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...