[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/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 - Newbi

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Sun Jun 16, 2024 6:07 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Newbi
PostPosted: Thu Jul 06, 2006 5:36 am 
Offline

Joined: Thu Jul 06, 2006 5:30 am
Posts: 24


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Thu Jul 06, 2006 3:02 pm 
Offline

Joined: Wed May 04, 2005 12:00 am
Posts: 546
There's a link in the top right corner, looks like this:
Image

Easiest way to spawn an mp5 kit in a bunker would be to add a line to an existing template in ObjectSpawnTemplates.con:

ObjectTemplate.create ObjectSpawner heavytankspawner
ObjectTemplate.setObjectTemplate 3 US_MP5
ObjectTemplate.setObjectTemplate 2 M1A1
ObjectTemplate.setObjectTemplate 1 T72
ObjectTemplate.MinSpawnDelay 40
ObjectTemplate.MaxSpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10

and add an extra spawner in objectspawns.con:

Object.create heavytankspawner
Object.absolutePosition --/--/-- <--bunker position here
Object.rotation 0/0/0
Object.setTeam 3

_________________
CTF for BF2:
http://desert-conflict.org/


Top
 Profile Send private message E-mail  
 
PostPosted: Thu Jul 06, 2006 4:53 pm 
Offline

Joined: Thu Jul 06, 2006 5:30 am
Posts: 24
Why is it called a heavytankspawner? where can i find the corrlation between that and the mp5? How do I find other objects, that I might want to add to the map?


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Thu Jul 06, 2006 6:54 pm 
Offline

Joined: Sat Jun 10, 2006 12:00 am
Posts: 213
Location: West Yorks, UK
It's called heavytankspawner because you cannot add extra spawn templates serverside. Therefore, you have to use one that already exists. Because you add the mp5 as a team 3 spawn, the tank spawns are unaffected. When you add the lines

Object.create heavytankspawner
Object.absolutePosition --/--/-- <--bunker position here
Object.rotation 0/0/0
Object.setTeam 3

it tells the game to use Template 3 of the heavytankspawner. In this case that is the mp5.

You can also find a list of all objects in the reference section I believe.


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Thu Jul 06, 2006 6:57 pm 
Offline

Joined: Wed May 04, 2005 12:00 am
Posts: 546
You have to add to/edit an existing spawner template, as creating a complete new one doesn't work.

You can use any spawner template to spawn any vehicle or weapon.

tutorial.php?page=objectlist.html
You can add 1942 objects to Desertcombat, 1942 and desertcombat objects to DC Final, but not the other way round.

_________________
CTF for BF2:
http://desert-conflict.org/


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 2:57 am 
Offline

Joined: Thu Jul 06, 2006 5:30 am
Posts: 24
Awesome.. that worked...
I still need to do some reading, but can you tell me how many setObjectTemplate assignments I can have to one ObjectTemplate.create ObjectSpawner heavytankspawner?


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 8:11 am 
Offline

Joined: Sat Jun 10, 2006 12:00 am
Posts: 213
Location: West Yorks, UK
Not sure on that. I've had up to 6 setObjectTemplates if I remember rightly but never tried more than that. You can probably do more. If there is a limit you can always do the same thing with a different spawner (such as the lighttankspawner for example).


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 11:31 am 
Offline

Joined: Wed May 04, 2005 12:00 am
Posts: 546
The most I've seen is 14 on ktr's map :shock: , I presume they all worked. :P

_________________
CTF for BF2:
http://desert-conflict.org/


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 214 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