Welcome, Guest. Please Login or Register.
09/09/10 at 17:46:25
News:

Poll
Question: Rate this Tutorial!

Excellent!  
  2 (66.6%)
Good!  
  1 (33.3%)
No Commant!  
  0 (0%)
Bad!  
  0 (0%)
Hopeless!  
  0 (0%)



Total votes: 3
« Last Modified by: on: 02/16/07 at 00:39:19 »

Pages: 1
Send Topic Print
Vehicle Spawner modding (Read 956 times)
MasterX=DCON=
System Administrator
DCON Staff
Energy Revolutions Research Dept.
*****


Desert Conflict
Coding Dept

Posts: 571
Gender: male
Vehicle Spawner modding
02/09/07 at 06:36:00
 
French Translation by: Lapin at Desert-Conflict.fr
 
yes this is easy stuff to:
 
open the correct gameplayobjects.con file for the map, gamplaymode, and size you want to mod, find the spawner you want to change, and decide which vehicle you want to swap it to, then follow the below tutorial, the tut uses Karkand Conquest 64 size for examples:
 
below is a spawner mod for karkand 64 CQ explained:
 
Code:
ObjectTemplate.activeSafe ObjectSpawner CPNAME_SK_64_gasstation_HeavyTank_0	   (Gasstation Tank)
ObjectTemplate.setObjectTemplate 1 RUTNK_T90	(if team 1 owns the CP)
ObjectTemplate.setObjectTemplate 2 USTNK_M1A2	(if team 2 owns the CP)
ObjectTemplate.minSpawnDelay 2	   (min time between spawnings)
ObjectTemplate.maxSpawnDelay 3	  (max time between spawnings)
ObjectTemplate.maxnrofobjectspawned 2     (max number of vehicles from this spawner in use at once) 


 
and here is a blank Template:
Code:
ObjectTemplate.activeSafe ObjectSpawner (spawner template name)
ObjectTemplate.setObjectTemplate 1 (vehicle of choice)	(if team 1 owns the CP)
ObjectTemplate.setObjectTemplate 2 (vehicle of choice)	(if team 2 owns the CP)
ObjectTemplate.minSpawnDelay X	   (min time between spawnings)
ObjectTemplate.maxSpawnDelay X	  (max time between spawnings)
ObjectTemplate.maxnrofobjectspawned 2     (max number of vehicles from this spawner in use at once) 


 
Since BF2 wont let you create new spawners server-side, the best way of increasing the number of vehicles you can use is by using this line in combination with a minspawndelay of 1-3 seconds as in the example below will make the spawner throw out another tank almost immediatly after the first has left base and have a max of 4 of them operational at once:
 
Code:
ObjectTemplate.activeSafe ObjectSpawner CPNAME_SK_64_gasstation_HeavyTank_0
ObjectTemplate.setObjectTemplate 1 RUTNK_T90
ObjectTemplate.setObjectTemplate 2 USTNK_M1A2
ObjectTemplate.minSpawnDelay 1
ObjectTemplate.maxSpawnDelay 3
ObjectTemplate.maxnrofobjectspawned 4 


 
 Smiley Feel Free to Reply with Questions or Suggestions!
Back to top
 
« Last Edit: 02/17/07 at 20:59:59 by Lapin »  

Ma§†er}{
BKC Squad Leader - Retired
Owner Graebtech Gaming Network
Email View Profile WWW MasterX=DCON= masterxbkc 265028259 brenttg2000   IP Logged
Pages: 1
Send Topic Print