[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 - Adding New Spawn Point

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Tue Jun 17, 2025 7:16 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 63 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 8  Next
Author Message
PostPosted: Wed Nov 05, 2008 12:17 am 
Offline

Joined: Tue Jun 17, 2008 6:13 pm
Posts: 132
Location: Utah


Top
 Profile Send private message E-mail  
 
PostPosted: Wed Nov 05, 2008 1:11 am 
Offline
User avatar

Joined: Sun Dec 31, 2006 12:13 am
Posts: 2027
I put that code in a fresh patchfile I made, and it worked...the spawnpoint was in G1 or so on the map (top right).

Sorry I can't work on it much at the moment, switching dedicated server hosts after ours decided to end their service this afternoon. :roll:


Top
 Profile Send private message E-mail  
 
PostPosted: Wed Nov 05, 2008 1:17 am 
Offline

Joined: Tue Jun 17, 2008 6:13 pm
Posts: 132
Location: Utah
Thanks Iced. I'll see if I can get it to work on mine again.


Top
 Profile Send private message E-mail  
 
PostPosted: Wed Nov 05, 2008 1:28 am 
Offline

Joined: Thu Mar 15, 2007 2:22 pm
Posts: 1253
you have offset on that spawn ObjectTemplate.setPosition 1471.18/-600/1626.43

if you want it directly below the sub change it to ObjectTemplate.setPosition 0/-600/0


Top
 Profile Send private message E-mail  
 
PostPosted: Wed Nov 05, 2008 3:37 am 
Offline

Joined: Tue Jun 17, 2008 6:13 pm
Posts: 132
Location: Utah
thanks Iced and freddy .. I got it working now :D


Top
 Profile Send private message E-mail  
 
PostPosted: Wed Nov 05, 2008 11:10 pm 
Offline

Joined: Tue Jun 17, 2008 6:13 pm
Posts: 132
Location: Utah
I can't seem to get the sub7c to work on Battle Of The Bulge or on Toburk.

Both need to be for allied side.


Top
 Profile Send private message E-mail  
 
PostPosted: Wed Nov 05, 2008 11:50 pm 
Offline
User avatar

Joined: Sun Dec 31, 2006 12:13 am
Posts: 2027
Ah...in that case try the fletcher / fletcher2. Do you know how to count addTemplates (to .active a template)?

For instance, lets look at the sub7c you just used. Look to find the soldier spawner attached to either the vehicle PCO, or the vehicle complex.

rem *** Sub7CComplex ***
ObjectTemplate.create Bundle Sub7CComplex
rem ObjectTemplate.setNetworkableInfo Sub7cBodyInfo
ObjectTemplate.geometry SubVII_Hull_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate SubmarineSonar
ObjectTemplate.addTemplate Sub7C_Engine
ObjectTemplate.setPosition 0/0/-30
ObjectTemplate.addTemplate Sub7C_Rudder1
ObjectTemplate.setPosition 0/-3.0/-30
ObjectTemplate.setRotation 0/0/-90
ObjectTemplate.addTemplate Sub7C_HullWing
ObjectTemplate.setPosition 0/-3.0/30
ObjectTemplate.setRotation 0/0/-90
ObjectTemplate.addTemplate Sub7CDriverSoldierSpawn
ObjectTemplate.setPosition 0/2.22/-4.7
ObjectTemplate.addTemplate Sub7C_Entry
ObjectTemplate.setPosition 5/1.8/-4.5

You cound the addTemplates, and start with the number 0, not 1. Counting from there, the soldier spawner would be #4.

Here's the fletcher:


rem *** Fletcher ***
ObjectTemplate.create PlayerControlObject Fletcher
ObjectTemplate.setNetworkableInfo FletcherBodyInfo
ObjectTemplate.saveInSeparateFile 1
objectTemplate.cullRadiusScale 5
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.drag 3
ObjectTemplate.mass 2500000
ObjectTemplate.hasArmor 1
ObjectTemplate.hitpoints 300
ObjectTemplate.maxhitpoints 300
ObjectTemplate.material 55
ObjectTemplate.criticalDamage 50
ObjectTemplate.hpLostWhileCriticalDamage 5
ObjectTemplate.explosionForceMod 10
ObjectTemplate.dontClearTeamOnExit 1
rem -------------------------------------
ObjectTemplate.addTemplate lodFletcher
ObjectTemplate.addTemplate Fletcher_Floater

ObjectTemplate.setPosition -1.999/7.5/50
ObjectTemplate.addTemplate Fletcher_Floater
ObjectTemplate.setPosition 2/7.5/50
ObjectTemplate.addTemplate Fletcher_Floater
ObjectTemplate.setPosition -4.999/7.5/17
ObjectTemplate.addTemplate Fletcher_Floater
ObjectTemplate.setPosition 5/7.5/17
ObjectTemplate.addTemplate Fletcher_Floater
ObjectTemplate.setPosition -4.999/7.5/-16.999
ObjectTemplate.addTemplate Fletcher_Floater
ObjectTemplate.setPosition 5/7.5/-16.999
ObjectTemplate.addTemplate Fletcher_Floater
ObjectTemplate.setPosition -1.999/7.5/-49.999
ObjectTemplate.addTemplate Fletcher_Floater
ObjectTemplate.setPosition 2/7.5/-49.999
ObjectTemplate.addTemplate FletcherDriverSoldierSpawn
ObjectTemplate.setPosition 0/5/32.5
ObjectTemplate.addTemplate FletcherSoldierSpawn
ObjectTemplate.setPosition 3/5/-43.699
ObjectTemplate.addTemplate FletcherSoldierSpawn
ObjectTemplate.setPosition -2.999/5/-43.699

What numbers did you come up with? You should have gotten 9, 10 & 11. You can do the same for the Fletcher2 (which is at the bottom of the fletchers objects.con file), or any other vehicle with soldier spawns.

The only difference is that there are two soldier spawns, instead of the 1 from the sub. To remove the 2nd spawn, and make it one, you would do:

ObjectTemplate.Active Fletcher
ObjectTemplate.removeTemplate 10
ObjectTemplate.removeTemplate 11

See if you can plug in the numbers and get the results you want.


Top
 Profile Send private message E-mail  
 
PostPosted: Wed Nov 05, 2008 11:55 pm 
Offline

Joined: Tue Jun 17, 2008 6:13 pm
Posts: 132
Location: Utah
Thats way over my head. :(


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.  [ 63 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 8  Next

All times are UTC


Who is online

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