Forum > Modelling and Animation

[QUESTION] Adding 1 Time Play Animations to Character Create

<< < (2/2)

spiderwaseem:

--- Quote from: "schlumpf" ---It is hardcoded. Those setanimation functions on simplemodel are only there since mop, I think. You may be able to fake stuff, but certainly not with spells cast and stuff.
--- End quote ---

So what kind of similar functions exist in WoTLK?
Where can I view them all?

schlumpf:
I personally do not know of any related functionality in wotlk. If there is, it will be members of SimpleModel or whatever that character selection element was. To reiterate, 90% of that stuff is done in the binary, not lua, so you will have a bad time to begin with. Eg, it is the binary triggering changes in model and armor when changing races/classes. I don't even really know if there is some lua event you can hook to then do special stuff like placing that animation. In cata, it is completely hardcoded.

spiderwaseem:

--- Quote from: "schlumpf" ---I personally do not know of any related functionality in wotlk. If there is, it will be members of SimpleModel or whatever that character selection element was. To reiterate, 90% of that stuff is done in the binary, not lua, so you will have a bad time to begin with. Eg, it is the binary triggering changes in model and armor when changing races/classes. I don't even really know if there is some lua event you can hook to then do special stuff like placing that animation. In cata, it is completely hardcoded.
--- End quote ---

I see.
However, setting the gear appearance on the character creation screen is set through a DBC file called "CharStartOutFit". I have mine completely edited into the MoP Challenge Set (Donor gear on my server).

If I may ask, how about changing the camera view on a click of a button on the character creation screen?
For example, since MoP, when you click the "Next" button, it goes into customizations and zooms in onto the character or race model's face or body depending on what customizations you selected.
I looked through the WoD Code and I see the following:

--- Code: ---SetFaceCustomizeCamera(true);
--- End code ---
I believe this zooms into the race's face.
I believe this is hard coded too but the camera is set within the M2 of the background.
I know how to change the camera with hex editing, so doesn't this mean if I can somehow switch backgrounds when I click "Next" to the one that's zoomed in, it will do a similar effect?

So I guess now the question is, can I switch the background on the forward "next" button somehow in lua?

samgartell:

--- Quote from: "spiderwaseem" ---I see.
However, setting the gear appearan...
--- End quote ---

That isn't what he meant, WoW.exe reads the DBC to find which pieces of armour to apply to the model, and then does it, itself. The DBC is just to store the data, the binary interprets it based on it's definition of the file and then uses the data, so I'm not really sure where you were going with that.

As for the camera problem, "SetFaceCustomizeCamera(true)" definitely isn't in 3.3.5, that ones obvious, if there isn't a generic camera switching function (Not saying there isn't, but even if there is, there's no promising it'll work the way you want it) that's compatible with 3.3.5, this again isn't possible.

Switching the background MIGHT work though a little hacky, I think it'd be done in CharacterCreate_Forward() but don't take my word for it.

"MODEL_CAMERA_CONFIG" seems to define "distance" so that's your best lead in my opinion.

spiderwaseem:

--- Quote from: "samgartell" ---
--- Quote from: "spiderwaseem" ---I see.
However, setting the gear appearan...
--- End quote ---

That isn't what he meant, WoW.exe reads the DBC to find which pieces of armour to apply to the model, and then does it, itself. The DBC is just to store the data, the binary interprets it based on it's definition of the file and then uses the data, so I'm not really sure where you were going with that.

As for the camera problem, "SetFaceCustomizeCamera(true)" definitely isn't in 3.3.5, that ones obvious, if there isn't a generic camera switching function (Not saying there isn't, but even if there is, there's no promising it'll work the way you want it) that's compatible with 3.3.5, this again isn't possible.

Switching the background MIGHT work though a little hacky, I think it'd be done in CharacterCreate_Forward() but don't take my word for it.

"MODEL_CAMERA_CONFIG" seems to define "distance" so that's your best lead in my opinion.
--- End quote ---

I understand what you mean.
As for the "MODEL_CAMERA_CONFIG", I really see it doing no difference at all.
The actual camera is set within the M2 of the background itself and it can be changed by hex editing.
So if I can somehow change the background to another background by lua or something, then I can change the camera to the zoomed in one on CharacterCreate_Forward().

Do you happen to know how to change the camera on CharacterCreate_Forward(), or basically in lua 3.3.5?

Navigation

[0] Message Index

[*] Previous page

Go to full version