Weapon Meshes

Discussions about Coding and Scripting

Weapon Meshes

Postby deuxsonic » Wed Mar 20, 2019 2:26 am

I'm curious if there is a way through the UnrealScript to flip a mesh along an axis. Is it maybe something I'm missing in Default Properties?
User avatar
deuxsonic
Novice
 
Posts: 11
Joined: Sun Mar 03, 2019 4:56 pm
Location: Ohio, USA, Earth
Personal rank: Unreal!

Re: Weapon Meshes

Postby JackGriffin » Wed Mar 20, 2019 4:37 am

The easiest way I've found is to export the model then import it back in as a mirrored mesh. This is an example from Food Fight:

#exec MESH IMPORT MESH=SaladBagM ANIVFILE=MODELS\SaladBag_a.3d DATAFILE=MODELS\SaladBag_d.3d LODSTYLE=10 UnMirror=1

That last bit is the magic.
"You damn kids, back in my time we made the items, maps and games ourselves with an unwieldy engine using counter-intuitive crash-prone tools and we liked it so much we built communities around this which nowadays look like cults because they're quasi-parallel societies based on the same old games." -Hellkeeper
User avatar
JackGriffin
Godlike
 
Posts: 3758
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: Hack coder

Re: Weapon Meshes

Postby deuxsonic » Wed Mar 20, 2019 4:48 am

How do you control which axis it's mirrored along?
User avatar
deuxsonic
Novice
 
Posts: 11
Joined: Sun Mar 03, 2019 4:56 pm
Location: Ohio, USA, Earth
Personal rank: Unreal!

Re: Weapon Meshes

Postby JackGriffin » Wed Mar 20, 2019 2:38 pm

You can't (as far as I know) specify the axis. That would require exporting to Blender and flipping it, which is probably the route you should take so you have fine grain control. Is this a static mesh or is it animated?

If you go that route it's best to use UModel for your mesh exporting. I've run into a ton of bugs using batchexport, WOTgreal, etc.
"You damn kids, back in my time we made the items, maps and games ourselves with an unwieldy engine using counter-intuitive crash-prone tools and we liked it so much we built communities around this which nowadays look like cults because they're quasi-parallel societies based on the same old games." -Hellkeeper
User avatar
JackGriffin
Godlike
 
Posts: 3758
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: Hack coder


Return to Coding, Scripting

Who is online

Users browsing this forum: No registered users and 4 guests