[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 - exploasion code?
Battlefield Modding Tutorials BFMODS
https://battlefieldmodding.com/ssm/phpBB3/

exploasion code?
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=5318
Page 1 of 2

Author:  silver767 [ Fri Oct 16, 2009 8:35 pm ]
Post subject:  exploasion code?

`hey
i was wondering if any of you know a code to make for example a vehicle explode when pushing a key?
i tryed searching the forum without luck, hope i didnt miss anything, tryed looking around in game files but didnt find.

only looking for a code to maybe explode a vehicle, the other stuff i can fix.

Author:  [TKO]Twist [ Fri Oct 16, 2009 8:36 pm ]
Post subject:  Re: exploasion code?

Sounds like a carhorn-bomb.

Author:  Senshi [ Fri Oct 16, 2009 8:38 pm ]
Post subject:  Re: exploasion code?

Be more precise. Do you want to be able to blow up the vehicle while steering it? E.g. as Twist suggests a carhorn-bomb or do you want to be able to remotely blow up a vehicle?

Author:  silver767 [ Sat Oct 17, 2009 1:01 pm ]
Post subject:  Re: exploasion code?

as twist says, sorry bout my explaining.

Author:  Senshi [ Sat Oct 17, 2009 1:49 pm ]
Post subject:  Re: exploasion code?

A very simple way: Just add a firearm that can be triggered by a key (e.g. alternativefire) that spawns a bomb projectile right on your vehicle -> Boom

Of course this only works CSM. SSM you'd need to replace a weapon, e.g. you'd have to alter the jeep's horn to spawn bombs instead of making sounds (or additionally to ;) ).

Author:  silver767 [ Sat Oct 17, 2009 8:00 pm ]
Post subject:  Re: exploasion code?

ok, but that wont work without FF will it? to explode the car and the driver, but i might do it anyway xD
thanks for the help.

Author:  Senshi [ Sat Oct 17, 2009 9:59 pm ]
Post subject:  Re: exploasion code?

Oh, you want the vehicle to explode, but not damage the vehicle itself? that's a bit different, but definitely possibly, at least CSM.

Easiest way: Create a new bomb projectile (copy the existing one) and just change the weapon material to a new one. Then you can code this material so it damages all armor types except the jeep armor (or whatever you want) . There might still be a small side effect, as several vehicles use the same armor material...e.g. all jeeps use the same armor, all light tanks use the same armor, all heavy armor use the same armor. So your jeep would not be able to damage other jeeps. Of course, you also can do that by creating a unique armor for your jeep, but that requires some work...you'd require either Gmax capabilities to change the standardmesh or use the forcematID-tool (which I never used myself). As you see, quite some work and definitely no piece of cake.

Author:  Sheppard [ Sat Oct 17, 2009 10:20 pm ]
Post subject:  Re: exploasion code?

Or put a fire delay on it so that you can bail/run away before it blows.

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