Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Directly manipulate col-settings in w3d?
Re: Directly manipulate col-settings in w3d? [message #326792 is a reply to message #326755] Sat, 19 April 2008 05:32 Go to previous messageGo to previous message
rrutk is currently offline  rrutk
Messages: 617
Registered: June 2007
Karma:
Colonel
Saberhawk wrote on Fri, 18 April 2008 23:01

Import it and edit the settings and then export it again is one option.

The other option, if you are good with a hex editor, is to look for w3d_file.h and parse out the file, editing the "Flags" field of the CHUNK_MESH header.


Tried the import thing for hours, doesnt work properly.

within this model only the collision-setting for the mainbody must be set the "projectile", then it is fixed.

And yes, I've used a hexeditor a few times.

BUT NEED TO KNOW THE CORRECT PLACE...

The flags are:
define W3D_MESH_FLAG_COLLISION_TYPE_MASK 0x00000FF0 // mask for the collision type bits
#define W3D_MESH_FLAG_COLLISION_TYPE_SHIFT 4 // shifting to get to the collision type bits
#define W3D_MESH_FLAG_COLLISION_TYPE_PHYSICAL 0x00000010 // physical collisions
#define W3D_MESH_FLAG_COLLISION_TYPE_PROJECTILE 0x00000020 // projectiles (rays) collide with this
#define W3D_MESH_FLAG_COLLISION_TYPE_VIS 0x00000040 // vis rays collide with this mesh
#define W3D_MESH_FLAG_COLLISION_TYPE_CAMERA 0x00000080 // camera rays/boxes collide with this mesh
#define W3D_MESH_FLAG_COLLISION_TYPE_VEHICLE 0x00000100 // vehicles collide with this mesh (and with physical collision meshes)

[Updated on: Sat, 19 April 2008 05:53]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Target Aim Lasers [help]
Next Topic: Powerups
Goto Forum:
  


Current Time: Tue Nov 19 03:23:29 MST 2024

Total time taken to generate the page: 0.00670 seconds