pModelElem->m_fScale = 5.0f;

12/20/2014 16:28 raventh1984#1
Hi elitepvpers,

why is it that the pModelElem->m_fScale = 5.0f; isnt working from the source.

I increased it to up to 100.0f; but no success.

What i am trying to do is replace the Flaris Center with an christmas tree.
The christmas tree is there but its verry small.

Do i need to add in with Atlas or is it something i can do source/resource releated.

With kind regards.
12/20/2014 17:32 Devisory#2
Add it with atlas, easiest way.
12/20/2014 18:35 raventh1984#3
Yeah i know but when the season is over i need to remove it again. So why not do if with the source? After all its already build in.
12/21/2014 21:25 Razzer~#4
It all about which adress pModelElement has. I dont know the specific function of this pointer. In your case i would use Atlas to scale your model up.

pModelElem could be a pointer to everything. Just look for the class of pModelElem and Functions , maybe you can set a new Pointer of the class and do the scaling by the source.

I dont know the source, but maybe something like this:

pModelElem->setModel("YOURMODEL")
pModelElem->m_fScale = 100.0f.