[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS • View topic - Direct Damage & Destructible Objects

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Sun Apr 28, 2024 12:24 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Wed Sep 02, 2009 3:39 am 
Offline
User avatar

Joined: Mon Oct 20, 2008 9:25 pm
Posts: 103
Location: Canada
Im sure im missing something simple... but i can't get objects to be desctructible without changing to a new material id on the model in GMAX, using the updated model & creating that new material. If i just change the settings of the existing material... say 81 for the "milichair_m1"... it doesn't seem to do anything. Im trying to get projectiles to damage existing materials with direct damage... for example the 556 projectile from DC 0.7 (mat id 652) vs. milichair_m1 (mat id 81). Id hate to have to code all new materials & add updated model/meshes to a map for 20 desctructible objects. Why can't i update existing materials? Are the materials in game.rfa somehow locked?

_________________
Image
Pray hard, die fast


Top
 Profile Send private message E-mail  
 
PostPosted: Wed Sep 02, 2009 3:45 am 
Offline
User avatar

Joined: Sun Dec 31, 2006 12:13 am
Posts: 2027
Did you make it a PCO?


Top
 Profile Send private message E-mail  
 
PostPosted: Wed Sep 02, 2009 4:07 am 
Offline
User avatar

Joined: Mon Oct 20, 2008 9:25 pm
Posts: 103
Location: Canada
Ya all destructibles are PCOs. I can destroy them with splash damage, but not with direct damage unless i change the material id on the model/mesh to a new one. Im missing something ... i know it!!

_________________
Image
Pray hard, die fast


Top
 Profile Send private message E-mail  
 
PostPosted: Wed Sep 02, 2009 4:17 am 
Offline
User avatar

Joined: Sun Dec 31, 2006 12:13 am
Posts: 2027
Ok just wanted to make sure. :D

I know you probably want to get it to work with material 81...but from that other thread, why not try to use that 'force mat id' program to convert the IDs of statics to a new destructible material?


Top
 Profile Send private message E-mail  
 
PostPosted: Wed Sep 02, 2009 4:46 am 
Offline
User avatar

Joined: Mon Oct 20, 2008 9:25 pm
Posts: 103
Location: Canada
ya thats what im doing now. 3 objects down, many more to go. doing it this way is such a pain!

_________________
Image
Pray hard, die fast


Top
 Profile Send private message E-mail  
 
PostPosted: Wed Sep 02, 2009 6:59 pm 
Offline
User avatar

Joined: Fri Oct 03, 2008 4:37 pm
Posts: 513
Location: Levelland, Texas
You can simply go into the damage_system for each projectile and code them to do damage to matID 81 or whatever mat the PCO your using has.

By default all the projectiles do 0 damage to the matIDs used by static objects...But depending on the mod yoru doing this in, there will be a LOT of projectile materials you would have to go in and do this too!

Otherwise you will have to change the matID of the PCO's mesh. Sorry.

_________________
ImageImage
I have cameras in your head!


Top
 Profile Send private message E-mail  
 
PostPosted: Thu Sep 03, 2009 1:43 am 
Offline
User avatar

Joined: Mon Oct 20, 2008 9:25 pm
Posts: 103
Location: Canada
strange! ive never been able to change the variables "MaterialManager.damageMod" & "MaterialManager.materialDamage" on an existing material. Ive always had to create new mats for projectiles or statics. Maybe you can't change existing mats within a map?

_________________
Image
Pray hard, die fast


Top
 Profile Send private message E-mail  
 
PostPosted: Thu Sep 03, 2009 4:35 pm 
Offline
User avatar

Joined: Fri Oct 03, 2008 4:37 pm
Posts: 513
Location: Levelland, Texas
They're typically found in the game.rfa file. I would assume you can simply recreate all the materials your changing in the Maps OST.con file and it would overwrite what was defined in the game.rfa file.

_________________
ImageImage
I have cameras in your head!


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 239 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group