OrdnanceCollision Question [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

OrdnanceCollision Question [Solved]

Post by Noobasaurus »

Where does the OrdnanceCollision line take the msh for collision from? I've tried using objects' names, p_sphere, Collision, CollisionMesh, but none of them have worked. I'm assuming it works similarly to how a shadow mesh works, so I'd need to go into the object to see what the collision is called.

I'm wondering how to use the object's mesh as an ordnance collision.
Last edited by Noobasaurus on Mon Apr 14, 2014 6:55 pm, edited 1 time in total.
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: OrdnanceCollision Question

Post by MileHighGuy »

https://sites.google.com/site/swbf2modt ... /art_guide

scroll down to collision. I think each thing has to have seperate collision meshes. And I think all soldiers just use some weird cylinder or something.

I have always thought it ordnance collision to be only the dummyroot null (a single point inside all objects). EDIT: looks like ordnaces have collision mesh, according to the link.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: OrdnanceCollision Question

Post by Marth8880 »

You can't create custom collision for units; they all use the same basic, hard-coded collision primitives. With that said, you can, however, scale and offset the collision meshes via the units' ODFs. Here are the parameters:

Code: Select all

CollisionRootScale
CollisionHeadScale
CollisionTorsoScale
CollisionHeadOffset
CollisionTorsoOffset
Example of some of them being used (taken from Geth Prime in MEU):

Code: Select all

CollisionRootScale  	= "1.2"
CollisionHeadOffset		= "0.0 -0.32 0.0"
CollisionTorsoOffset	= "0.0 -0.31 0.0"
You can view the collision by going into the debugger, typing RenderOrdCollision (I think) into the console, and viewing the model in Freecam mode.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: OrdnanceCollision Question

Post by Noobasaurus »

@MileHighGuy: Thanks. I looked around that page a bit and it's quite useful. However, I don't have XSI right now so I can't use too many of those techniques.

@Marth8880: Thank you! It works like a charm. RenderOrdCollision really helps visualize things as well and it's proven to be quite useful.
Post Reply