[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/bbcode.php on line 112: 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 112: 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 112: 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 112: 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 112: 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 - Make aa-allies projectile only kill planes?
Battlefield Modding Tutorials BFMODS
https://battlefieldmodding.com/ssm/phpBB3/

Make aa-allies projectile only kill planes?
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=5466
Page 1 of 1

Author:  battlef13ldmad [ Fri Jan 08, 2010 10:37 am ]
Post subject:  Make aa-allies projectile only kill planes?


Author:  PLAYER [ Fri Jan 08, 2010 7:47 pm ]
Post subject:  Re: Make aa-allies projectile only kill planes?

Easiest way is to define a new custom material ID and asign it to the projectile. Then only define it for the objects you want it to cause damage to, it'll ignore the rest.

Author:  ZOOMER [ Fri Jan 08, 2010 9:55 pm ]
Post subject:  Re: Make aa-allies projectile only kill planes?

Change projectile to stinger missle :shock:

Author:  mike2many [ Sat Jan 09, 2010 12:13 am ]
Post subject:  Re: Make aa-allies projectile only kill planes?


Author:  battlef13ldmad [ Sat Jan 09, 2010 8:12 am ]
Post subject:  Re: Make aa-allies projectile only kill planes?


Author:  PLAYER [ Sat Jan 09, 2010 9:30 am ]
Post subject:  Re: Make aa-allies projectile only kill planes?

Hey battlef13ldmad,

This is old example of mine I pulled from my forum... It'll give you the basic info you'll need to create your own.




First you have to activate the projectile you wish to alter then assign it the new material ID number that youre going to create.

ObjectTemplate.Active No4Projectile
ObjectTemplate.material 900

ObjectTemplate.Active K98Projectile
ObjectTemplate.material 900

Next we build the Damage System for that Material.
I created a new material ID of 900 and assigned it a base damage value of 30HP.

MaterialManager.material 900
MaterialManager.materialAttGroup 900
MaterialManager.materialDefGroup 900
MaterialManager.materialDamage 30


At this point it will do no damage to anything you fire it at, until we define what materials this material ID will inflict damage on.


rem ***** SuperSnipers *****

rem Set the material ID we created
MaterialManager.attGroup 900

rem ID 40, 41, 42 = are soldiers Head, Torso, Limbs

MaterialManager.defGroup 40
MaterialManager.damageMod 1

MaterialManager.defGroup 41
MaterialManager.damageMod 1

MaterialManager.defGroup 42
MaterialManager.damageMod 1

We've only defined this material ID 900 to inflict damage to materials 40, 41, 42

This means this projectile will do 0 damage to all other materials

Here's the best part.. you can tweak every surface this projectile now does damage to..

MaterialManager.damageMod << value is a multiplyer of the base value

MaterialManager.damageMod 1 = 1 times base value we assigned earlier 30

so when the projectile hits material 40 (Soldiers Head) it does 30HP Damage

Author:  battlef13ldmad [ Sat Jan 09, 2010 3:41 pm ]
Post subject:  Re: Make aa-allies projectile only kill planes?

shall i write my code in objectSpawnTemplate?? Or where else, i want it server side.

Thanks

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