[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

Battlefield Modding Tutorials
It is currently Thu Apr 18, 2024 4:09 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: exploasion code?
PostPosted: Fri Oct 16, 2009 8:35 pm 
Offline

Joined: Sun Jan 27, 2008 8:46 pm
Posts: 173
`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.

_________________
Image


Last edited by silver767 on Fri Oct 16, 2009 8:36 pm, edited 1 time in total.

Top
 Profile Send private message E-mail  
 
 Post subject: Re: exploasion code?
PostPosted: Fri Oct 16, 2009 8:36 pm 
Offline

Joined: Tue Nov 27, 2007 7:56 pm
Posts: 1226
Sounds like a carhorn-bomb.


Top
 Profile Send private message E-mail  
 
 Post subject: Re: exploasion code?
PostPosted: Fri Oct 16, 2009 8:38 pm 
Offline
User avatar

Joined: Thu Feb 05, 2009 7:54 pm
Posts: 487
Location: Germany
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?

_________________
Kampagne XI - Vereinte Achsenmächte


xFire: wgpsenshi


Top
 Profile Send private message E-mail  
 
 Post subject: Re: exploasion code?
PostPosted: Sat Oct 17, 2009 1:01 pm 
Offline

Joined: Sun Jan 27, 2008 8:46 pm
Posts: 173
as twist says, sorry bout my explaining.

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: exploasion code?
PostPosted: Sat Oct 17, 2009 1:49 pm 
Offline
User avatar

Joined: Thu Feb 05, 2009 7:54 pm
Posts: 487
Location: Germany
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 ;) ).

_________________
Kampagne XI - Vereinte Achsenmächte


xFire: wgpsenshi


Top
 Profile Send private message E-mail  
 
 Post subject: Re: exploasion code?
PostPosted: Sat Oct 17, 2009 8:00 pm 
Offline

Joined: Sun Jan 27, 2008 8:46 pm
Posts: 173
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.

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: exploasion code?
PostPosted: Sat Oct 17, 2009 9:59 pm 
Offline
User avatar

Joined: Thu Feb 05, 2009 7:54 pm
Posts: 487
Location: Germany
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.

_________________
Kampagne XI - Vereinte Achsenmächte


xFire: wgpsenshi


Top
 Profile Send private message E-mail  
 
 Post subject: Re: exploasion code?
PostPosted: Sat Oct 17, 2009 10:20 pm 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
Or put a fire delay on it so that you can bail/run away before it blows.

_________________
Image


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.  [ 10 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 42 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:
cron
Powered by phpBB® Forum Software © phpBB Group