How WeaponDef relates to Mesh

My question is this: how does the mesh file link with the entity file to determine what points a particular weapon emits from? a mesh file has points, which are labeled Weapon-x where x is a number... sometimes there are multiple Weapon-1 and so on... these represent the points on the model in 3d space. in the entity definition however, there is nothing stating that phase missiles fire from Weapon-1 and so on... how does the game determine what points to use for what weapons? is it by weapon listing, ie. the first weapon listed uses Weapon-0... or is there a file i am missing...

also, what limit is there on the Weapon-x, can i, for instance, add a Weapon-3? i have seen Ability-3....

1,446 views 3 replies
Reply #1 Top

asuming ur using Softimage XSI like u should...

 

in the hardpointing phase on the mesh you have rootpoint with under that your weapons named as P000-Weapon-0 P001-Weapon-0 P000-Weapon-1 etc

now

Your entity file has 3 weapons, you read em from top to bottom so your first would be Weapon-0 second Weapon-1 third Weapon-3 same with ability's

 

so basicly its the order in wich u place the hp's

Reply #2 Top

The game takes both direction of origin and the order you put them in into account.

If there's a Weapon-0 that points backwards and you have a front weapon bank damage in your first weapon definition, god help you.

Reply #3 Top

Sometimes how an engine interprets and links multiple files is a bit unclear. Thanks for clearin the smoke!