[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
https://battlefieldmodding.com/ssm/phpBB3/

Direct Damage & Destructible Objects
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=5221
Page 1 of 2

Author:  Coroner47 [ Wed Sep 02, 2009 3:39 am ]
Post subject:  Direct Damage & Destructible Objects

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?

Author:  Iced Earth [ Wed Sep 02, 2009 3:45 am ]
Post subject:  Re: Direct Damage & Destructible Objects

Did you make it a PCO?

Author:  Coroner47 [ Wed Sep 02, 2009 4:07 am ]
Post subject:  Re: Direct Damage & Destructible Objects

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!!

Author:  Iced Earth [ Wed Sep 02, 2009 4:17 am ]
Post subject:  Re: Direct Damage & Destructible Objects

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?

Author:  Coroner47 [ Wed Sep 02, 2009 4:46 am ]
Post subject:  Re: Direct Damage & Destructible Objects

ya thats what im doing now. 3 objects down, many more to go. doing it this way is such a pain!

Author:  Apache Thunder [ Wed Sep 02, 2009 6:59 pm ]
Post subject:  Re: Direct Damage & Destructible Objects

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.

Author:  Coroner47 [ Thu Sep 03, 2009 1:43 am ]
Post subject:  Re: Direct Damage & Destructible Objects

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?

Author:  Apache Thunder [ Thu Sep 03, 2009 4:35 pm ]
Post subject:  Re: Direct Damage & Destructible Objects

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.

Page 1 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/