Log in

View Full Version : Another modding question - drawing order priority



Grumpy
12-26-2002, 23:02
Hi

Another question from the Entrance Hall where I wasn't able to get any help. Again sorry for the cross posting.

To stop me experimenting for hours and possibly reinventing the wheel, has anybody come up with the drawing order priorities for 2 weapons and/or 2 shields. I understand from the Unit Modding FAQ started by Wellington and edited by Fenir (thanks guys http://www.totalwar.org/forum/non-cgi/emoticons/wave.gif ) about the individual order priorities for weapons/shields ie before or after the unit quad but I was wondering if anybody had any more info, like what has priority if they're on the same general priority level - the weapon or the shield, what happens if 2 weapons or 2 shields overlap on the same priority level - which has priority weapon/shield a or weapon/shield b.

Hoping somebody can help http://www.totalwar.org/forum/non-cgi/emoticons/smile.gif

cheers

fenir
12-27-2002, 00:00
Hello Grumpy,

Hopefully I can answer your question.
To get the order of the weapons, if will depend upon the order you enter them into the weapon file of the unit.

example
kataphraktoi_W file in the "MailHCav" folder.

It has a 2, meaning that it is denoting weapon two listed on the bif file in that same folder.

To go with this, there is a corresponding folder called kataphraktoi, in the weapons folder list.
This contains the positioning of the weapons in relation to the unit, with that weapon/shield.
Yes you probably know that, but....

Now back to the kataphraktoi_W file, if we say enter in a > 1 < So that the file now reads "2, 1" without the quotations.

We have now specifcied a second weapon and it&#39;s priority, eg: weapon 2 then weapon 1.

What you will need now is actions files for it in the corresponding weapon folder. so they AI knows when to use them.

Shield is similar, but a shield can also be a weapon. I have not tried to enter two shields on the files, hmmm never needed to. http://www.totalwar.org/forum/non-cgi/emoticons/biggrin.gif

But you can enter a shield as a weapon, by re sizing etc... and a shield as a shield in the name_S file.

And PaviseCrossbows have two shields listed, as explained in Wellingtons Animaition guide a the top of the page.
hope that helps

fenir http://www.totalwar.org/forum/non-cgi/emoticons/smokin.gif