[?] How to add a supply crate to a map that doesn't have object spawners in GPO

Making or wanting help making your own asset? Check in here
Post Reply
USMC scout sniper
Posts: 487
Joined: 2010-01-03 04:21

[?] How to add a supply crate to a map that doesn't have object spawners in GPO

Post by USMC scout sniper »

Title says all.How do I do it.This is what the Init.con looks like.Very weird.

Code: Select all

rem ********** Object Spawner **********
if v_arg1 == host

endIf

rem ********** Spawn Points **********
rem [SpawnPointTemplate: COURTYARD_1]
ObjectTemplate.create SpawnPoint COURTYARD_1
ObjectTemplate.activeSafe SpawnPoint COURTYARD_1
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 3

rem [SpawnPoint: COURTYARD_1]
Object.create COURTYARD_1
Object.absolutePosition -227.848/35.692/34.529
Object.rotation 164.790/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: COURTYARD_2]
ObjectTemplate.create SpawnPoint COURTYARD_2
ObjectTemplate.activeSafe SpawnPoint COURTYARD_2
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 3

rem [SpawnPoint: COURTYARD_2]
Object.create COURTYARD_2
Object.absolutePosition -148.283/41.042/-23.145
Object.rotation -61.138/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: COURTYARD_3]
ObjectTemplate.create SpawnPoint COURTYARD_3
ObjectTemplate.activeSafe SpawnPoint COURTYARD_3
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 3

rem [SpawnPoint: COURTYARD_3]
Object.create COURTYARD_3
Object.absolutePosition -209.668/32.500/-26.478
Object.rotation 25.421/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: COURTYARD_4]
ObjectTemplate.create SpawnPoint COURTYARD_4
ObjectTemplate.activeSafe SpawnPoint COURTYARD_4
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 3

rem [SpawnPoint: COURTYARD_4]
Object.create COURTYARD_4
Object.absolutePosition -145.334/35.530/27.426
Object.rotation -117.836/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: WAREHOUSE_1]
ObjectTemplate.create SpawnPoint WAREHOUSE_1
ObjectTemplate.activeSafe SpawnPoint WAREHOUSE_1
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 1

rem [SpawnPoint: WAREHOUSE_1]
Object.create WAREHOUSE_1
Object.absolutePosition 79.749/25.000/-175.981
Object.rotation -29.925/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: WAREHOUSE_2]
ObjectTemplate.create SpawnPoint WAREHOUSE_2
ObjectTemplate.activeSafe SpawnPoint WAREHOUSE_2
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 1

rem [SpawnPoint: WAREHOUSE_2]
Object.create WAREHOUSE_2
Object.absolutePosition 19.656/25.000/-179.771
Object.rotation 59.973/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: WAREHOUSE_3]
ObjectTemplate.create SpawnPoint WAREHOUSE_3
ObjectTemplate.activeSafe SpawnPoint WAREHOUSE_3
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 1

rem [SpawnPoint: WAREHOUSE_3]
Object.create WAREHOUSE_3
Object.absolutePosition -2.686/25.000/-177.554
Object.rotation 69.832/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: WAREHOUSE_4]
ObjectTemplate.create SpawnPoint WAREHOUSE_4
ObjectTemplate.activeSafe SpawnPoint WAREHOUSE_4
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 1

rem [SpawnPoint: WAREHOUSE_4]
Object.create WAREHOUSE_4
Object.absolutePosition -36.607/26.269/-185.449
Object.rotation 72.393/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: WAREHOUSE_5]
ObjectTemplate.create SpawnPoint WAREHOUSE_5
ObjectTemplate.activeSafe SpawnPoint WAREHOUSE_5
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 1

rem [SpawnPoint: WAREHOUSE_5]
Object.create WAREHOUSE_5
Object.absolutePosition -65.213/30.396/-142.275
Object.rotation 94.557/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: COURTYARD_5]
ObjectTemplate.create SpawnPoint COURTYARD_5
ObjectTemplate.activeSafe SpawnPoint COURTYARD_5
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 3

rem [SpawnPoint: COURTYARD_5]
Object.create COURTYARD_5
Object.absolutePosition -114.436/31.002/-4.970
Object.rotation -87.133/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: CONSTRUCTION_1]
ObjectTemplate.create SpawnPoint CONSTRUCTION_1
ObjectTemplate.activeSafe SpawnPoint CONSTRUCTION_1
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 2

rem [SpawnPoint: CONSTRUCTION_1]
Object.create CONSTRUCTION_1
Object.absolutePosition -128.826/35.530/78.811
Object.rotation 9.898/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: CONSTRUCTION_2]
ObjectTemplate.create SpawnPoint CONSTRUCTION_2
ObjectTemplate.activeSafe SpawnPoint CONSTRUCTION_2
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 2

rem [SpawnPoint: CONSTRUCTION_2]
Object.create CONSTRUCTION_2
Object.absolutePosition -168.776/35.530/85.232
Object.rotation 47.262/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: CONSTRUCTION_3]
ObjectTemplate.create SpawnPoint CONSTRUCTION_3
ObjectTemplate.activeSafe SpawnPoint CONSTRUCTION_3
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 2

rem [SpawnPoint: CONSTRUCTION_3]
Object.create CONSTRUCTION_3
Object.absolutePosition -190.005/35.530/111.128
Object.rotation 74.589/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: CONSTRUCTION_4]
ObjectTemplate.create SpawnPoint CONSTRUCTION_4
ObjectTemplate.activeSafe SpawnPoint CONSTRUCTION_4
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 2

rem [SpawnPoint: CONSTRUCTION_4]
Object.create CONSTRUCTION_4
Object.absolutePosition -198.516/44.000/152.436
Object.rotation 105.589/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: CONSTRUCTION_5]
ObjectTemplate.create SpawnPoint CONSTRUCTION_5
ObjectTemplate.activeSafe SpawnPoint CONSTRUCTION_5
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 2

rem [SpawnPoint: CONSTRUCTION_5]
Object.create CONSTRUCTION_5
Object.absolutePosition -119.929/43.389/167.438
Object.rotation 179.815/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: CONSTRUCTION_6]
ObjectTemplate.create SpawnPoint CONSTRUCTION_6
ObjectTemplate.activeSafe SpawnPoint CONSTRUCTION_6
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 2

rem [SpawnPoint: CONSTRUCTION_6]
Object.create CONSTRUCTION_6
Object.absolutePosition -150.989/43.375/169.208
Object.rotation 134.059/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: BUILDING_1]
ObjectTemplate.create SpawnPoint BUILDING_1
ObjectTemplate.activeSafe SpawnPoint BUILDING_1
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 7

rem [SpawnPoint: BUILDING_1]
Object.create BUILDING_1
Object.absolutePosition -55.079/35.530/117.124
Object.rotation 94.123/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: BUILDING_2]
ObjectTemplate.create SpawnPoint BUILDING_2
ObjectTemplate.activeSafe SpawnPoint BUILDING_2
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 7

rem [SpawnPoint: BUILDING_2]
Object.create BUILDING_2
Object.absolutePosition 27.393/35.530/139.721
Object.rotation -163.450/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: MOTORPOOL_1]
ObjectTemplate.create SpawnPoint MOTORPOOL_1
ObjectTemplate.activeSafe SpawnPoint MOTORPOOL_1
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 5

rem [SpawnPoint: MOTORPOOL_1]
Object.create MOTORPOOL_1
Object.absolutePosition 145.360/35.530/160.618
Object.rotation 102.954/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: BUILDING_3]
ObjectTemplate.create SpawnPoint BUILDING_3
ObjectTemplate.activeSafe SpawnPoint BUILDING_3
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 7

rem [SpawnPoint: BUILDING_3]
Object.create BUILDING_3
Object.absolutePosition 14.005/36.075/178.937
Object.rotation 175.762/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: BUILDING_4]
ObjectTemplate.create SpawnPoint BUILDING_4
ObjectTemplate.activeSafe SpawnPoint BUILDING_4
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 7

rem [SpawnPoint: BUILDING_4]
Object.create BUILDING_4
Object.absolutePosition -33.984/36.037/160.872
Object.rotation 132.984/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: BUILDING_5]
ObjectTemplate.create SpawnPoint BUILDING_5
ObjectTemplate.activeSafe SpawnPoint BUILDING_5
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 7

rem [SpawnPoint: BUILDING_5]
Object.create BUILDING_5
Object.absolutePosition -46.955/35.530/79.073
Object.rotation 63.828/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: BUILDING_6]
ObjectTemplate.create SpawnPoint BUILDING_6
ObjectTemplate.activeSafe SpawnPoint BUILDING_6
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 7

rem [SpawnPoint: BUILDING_6]
Object.create BUILDING_6
Object.absolutePosition 59.766/35.530/146.895
Object.rotation -156.764/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: MOTORPOOL_2]
ObjectTemplate.create SpawnPoint MOTORPOOL_2
ObjectTemplate.activeSafe SpawnPoint MOTORPOOL_2
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 5

rem [SpawnPoint: MOTORPOOL_2]
Object.create MOTORPOOL_2
Object.absolutePosition 108.946/32.500/200.999
Object.rotation -178.576/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: MOTORPOOL_3]
ObjectTemplate.create SpawnPoint MOTORPOOL_3
ObjectTemplate.activeSafe SpawnPoint MOTORPOOL_3
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 5

rem [SpawnPoint: MOTORPOOL_3]
Object.create MOTORPOOL_3
Object.absolutePosition 137.579/32.500/211.401
Object.rotation -158.405/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: MOTORPOOL_4]
ObjectTemplate.create SpawnPoint MOTORPOOL_4
ObjectTemplate.activeSafe SpawnPoint MOTORPOOL_4
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 5

rem [SpawnPoint: MOTORPOOL_4]
Object.create MOTORPOOL_4
Object.absolutePosition 155.563/35.530/114.188
Object.rotation -66.761/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: MOTORPOOL_5]
ObjectTemplate.create SpawnPoint MOTORPOOL_5
ObjectTemplate.activeSafe SpawnPoint MOTORPOOL_5
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 5

rem [SpawnPoint: MOTORPOOL_5]
Object.create MOTORPOOL_5
Object.absolutePosition 192.447/35.530/168.141
Object.rotation -111.320/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: MOTORPOOL_6]
ObjectTemplate.create SpawnPoint MOTORPOOL_6
ObjectTemplate.activeSafe SpawnPoint MOTORPOOL_6
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 5

rem [SpawnPoint: MOTORPOOL_6]
Object.create MOTORPOOL_6
Object.absolutePosition 233.600/35.530/98.393
Object.rotation -73.873/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: DINNER_tABLES_1]
ObjectTemplate.create SpawnPoint DINNER_tABLES_1
ObjectTemplate.activeSafe SpawnPoint DINNER_tABLES_1
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 6

rem [SpawnPoint: DINNER_tABLES_1]
Object.create DINNER_tABLES_1
Object.absolutePosition 172.831/50.383/-116.086
Object.rotation -2.005/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: DINNER_tABLES_2]
ObjectTemplate.create SpawnPoint DINNER_tABLES_2
ObjectTemplate.activeSafe SpawnPoint DINNER_tABLES_2
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 6

rem [SpawnPoint: DINNER_tABLES_2]
Object.create DINNER_tABLES_2
Object.absolutePosition 191.468/44.551/-17.921
Object.rotation -149.820/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: DINNER_tABLES_3]
ObjectTemplate.create SpawnPoint DINNER_tABLES_3
ObjectTemplate.activeSafe SpawnPoint DINNER_tABLES_3
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 6

rem [SpawnPoint: DINNER_tABLES_3]
Object.create DINNER_tABLES_3
Object.absolutePosition 162.465/42.223/-101.871
Object.rotation 14.340/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: DINNER_tABLES_4]
ObjectTemplate.create SpawnPoint DINNER_tABLES_4
ObjectTemplate.activeSafe SpawnPoint DINNER_tABLES_4
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 6

rem [SpawnPoint: DINNER_tABLES_4]
Object.create DINNER_tABLES_4
Object.absolutePosition 123.692/38.052/-110.667
Object.rotation 37.501/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: DINNER_tABLES_5]
ObjectTemplate.create SpawnPoint DINNER_tABLES_5
ObjectTemplate.activeSafe SpawnPoint DINNER_tABLES_5
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 6

rem [SpawnPoint: DINNER_tABLES_5]
Object.create DINNER_tABLES_5
Object.absolutePosition 233.465/42.000/5.798
Object.rotation -133.013/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: COURTYARD2_1]
ObjectTemplate.create SpawnPoint COURTYARD2_1
ObjectTemplate.activeSafe SpawnPoint COURTYARD2_1
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 4

rem [SpawnPoint: COURTYARD2_1]
Object.create COURTYARD2_1
Object.absolutePosition -18.170/40.997/-53.753
Object.rotation 28.463/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: COURTYARD2_2]
ObjectTemplate.create SpawnPoint COURTYARD2_2
ObjectTemplate.activeSafe SpawnPoint COURTYARD2_2
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 4

rem [SpawnPoint: COURTYARD2_2]
Object.create COURTYARD2_2
Object.absolutePosition 40.494/35.363/52.201
Object.rotation -149.274/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: COURTYARD2_3]
ObjectTemplate.create SpawnPoint COURTYARD2_3
ObjectTemplate.activeSafe SpawnPoint COURTYARD2_3
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 4

rem [SpawnPoint: COURTYARD2_3]
Object.create COURTYARD2_3
Object.absolutePosition -46.777/32.500/52.014
Object.rotation 131.389/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: COURTYARD2_4]
ObjectTemplate.create SpawnPoint COURTYARD2_4
ObjectTemplate.activeSafe SpawnPoint COURTYARD2_4
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 4

rem [SpawnPoint: COURTYARD2_4]
Object.create COURTYARD2_4
Object.absolutePosition -1.036/32.500/-60.370
Object.rotation 11.483/0.000/0.000
Object.layer 1

rem ********** Control Points **********
rem [ControlPointTemplate: WAREHOUSE]
ObjectTemplate.create ControlPoint WAREHOUSE
ObjectTemplate.activeSafe ControlPoint WAREHOUSE
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.setNetworkableInfo ControlPointInfo
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate flagpole
rem -------------------------------------
ObjectTemplate.setControlPointName WAREHOUSE
ObjectTemplate.radius 5
ObjectTemplate.team 1
ObjectTemplate.controlPointId 1
ObjectTemplate.timeToGetControl 60
ObjectTemplate.timeToLoseControl 60
ObjectTemplate.hoistMinMax 0.2/0.9

rem [ControlPointTemplate: CONSTRUCTION]
ObjectTemplate.create ControlPoint CONSTRUCTION
ObjectTemplate.activeSafe ControlPoint CONSTRUCTION
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.setNetworkableInfo ControlPointInfo
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate flagpole
rem -------------------------------------
ObjectTemplate.setControlPointName CONSTRUCTION
ObjectTemplate.radius 5
ObjectTemplate.team 2
ObjectTemplate.controlPointId 2
ObjectTemplate.timeToGetControl 60
ObjectTemplate.timeToLoseControl 60
ObjectTemplate.hoistMinMax 0.2/0.9

rem [ControlPointTemplate: COURTYARD]
ObjectTemplate.create ControlPoint COURTYARD
ObjectTemplate.activeSafe ControlPoint COURTYARD
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.setNetworkableInfo ControlPointInfo
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate flagpole
rem -------------------------------------
ObjectTemplate.setControlPointName COURTYARD
ObjectTemplate.radius 5
ObjectTemplate.team 2
ObjectTemplate.controlPointId 3
ObjectTemplate.timeToGetControl 60
ObjectTemplate.timeToLoseControl 60
ObjectTemplate.unableToChangeTeam 1
ObjectTemplate.hoistMinMax 0.2/0.9

rem [ControlPointTemplate: COURTYARD2]
ObjectTemplate.create ControlPoint COURTYARD2
ObjectTemplate.activeSafe ControlPoint COURTYARD2
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.setNetworkableInfo ControlPointInfo
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate flagpole
rem -------------------------------------
ObjectTemplate.setControlPointName COURTYARD2
ObjectTemplate.radius 5
ObjectTemplate.team 2
ObjectTemplate.controlPointId 4
ObjectTemplate.timeToGetControl 60
ObjectTemplate.timeToLoseControl 60
ObjectTemplate.hoistMinMax 0.2/0.9

rem [ControlPointTemplate: MOTORPOOL]
ObjectTemplate.create ControlPoint MOTORPOOL
ObjectTemplate.activeSafe ControlPoint MOTORPOOL
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.setNetworkableInfo ControlPointInfo
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate flagpole
rem -------------------------------------
ObjectTemplate.setControlPointName MOTORPOOL
ObjectTemplate.radius 5
ObjectTemplate.team 1
ObjectTemplate.controlPointId 5
ObjectTemplate.timeToGetControl 60
ObjectTemplate.timeToLoseControl 60
ObjectTemplate.hoistMinMax 0.2/0.9

rem [ControlPointTemplate: DINNER_tABLES]
ObjectTemplate.create ControlPoint DINNER_tABLES
ObjectTemplate.activeSafe ControlPoint DINNER_tABLES
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.setNetworkableInfo ControlPointInfo
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate flagpole
rem -------------------------------------
ObjectTemplate.setControlPointName DINNER_tABLES
ObjectTemplate.radius 5
ObjectTemplate.team 1
ObjectTemplate.controlPointId 6
ObjectTemplate.timeToGetControl 60
ObjectTemplate.timeToLoseControl 60
ObjectTemplate.unableToChangeTeam 1
ObjectTemplate.hoistMinMax 0.2/0.9

rem [ControlPointTemplate: BUILDING]
ObjectTemplate.create ControlPoint BUILDING
ObjectTemplate.activeSafe ControlPoint BUILDING
ObjectTemplate.modifiedByUser "wong"
ObjectTemplate.setNetworkableInfo ControlPointInfo
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate flagpole
rem -------------------------------------
ObjectTemplate.setControlPointName BUILDING
ObjectTemplate.radius 5
ObjectTemplate.team 1
ObjectTemplate.controlPointId 7
ObjectTemplate.timeToGetControl 60
ObjectTemplate.timeToLoseControl 60
ObjectTemplate.hoistMinMax 0.2/0.9
How do I add an object spawner so I can add a supply crate?
Last edited by Rudd on 2011-09-24 04:08, edited 1 time in total.
Reason: added code tags...
HELL HAVE NO FURY LIKE ME WITH A M249 SAW PIP!
USMC scout sniper
Posts: 487
Joined: 2010-01-03 04:21

Re: How to add a supply crate to a map that doesn't have object spawners in GPO

Post by USMC scout sniper »

Or is it more complicated than that?
HELL HAVE NO FURY LIKE ME WITH A M249 SAW PIP!
temexter
Posts: 397
Joined: 2009-11-23 15:50

Re: How to add a supply crate to a map that doesn't have object spawners in GPO

Post by temexter »

USMC scout sniper wrote:Title says all.How do I do it.This is what the Init.con looks like.Very weird.
First of all: and for the second time: read this thread and name your threads like its says.

Secondly: put code examples in

Code: Select all

 tags so long code examples won't make the message annoyingly long.

Your init.con doesn't look like pr map's should ATM. I suspect file structure changed in version 0.8xx or something...
An example of maps init.con:
[CODE]rem *** Generated by BF2Editor ***

if v_arg1 == BF2Editor

run Heightdata.con
LevelSettings.InitWorld
run Terrain.con BF2Editor
run StaticObjects.con BF2Editor
run Sounds.con
run Sky.con BF2Editor
run Editor/GamePlayObjects.con host
UndergrowthEditable.create
Undergrowth.load Levels\silent_eagle_fdf_mod\
run Overgrowth/Overgrowth.con
Overgrowth.editorEnable 1
run AmbientObjects.con BF2Editor
run Water.con
run TriggerableTemplates.con BF2Editor

else

run Heightdata.con
run Terrain.con v_arg2
run Sky.con v_arg2
run CompiledRoads.con
run Sounds.con
run SoundDistances.con
run tmp.con v_arg1
Undergrowth.load Levels\silent_eagle_fdf_mod\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con
run TriggerableTemplates.con

rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------

run ../../Factions/faction_init.con 1 "ru"
run ../../Factions/faction_init.con 2 "fi"

rem -----------------------------------------------------------------------------

gameLogic.setBeforeSpawnCamera 186/104/-254 28/20/0

if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix "woodland"
else
texturemanager.customTextureSuffix "woodland"
endIf
rem -----------------------------------------------------------------------------

GameLogic.MaximumLevelViewDistance 900

rem -----------------------------------------------------------------------------

gameLogic.setDefaultNumberOfTicketsEx 16 1 350
gameLogic.setDefaultNumberOfTicketsEx 16 2 350
gameLogic.setDefaultNumberOfTicketsEx 32 1 450
gameLogic.setDefaultNumberOfTicketsEx 32 2 450
gameLogic.setDefaultNumberOfTicketsEx 64 1 450
gameLogic.setDefaultNumberOfTicketsEx 64 2 450
gameLogic.setDefaultNumberOfTicketsEx 128 1 50
gameLogic.setDefaultNumberOfTicketsEx 128 2 50
gameLogic.setDefaultTimeToNextAIWave 8
gameLogic.setTicketLossAtEndPerMin 1000
gameLogic.setTicketLossPerMin 1 10
gameLogic.setTicketLossPerMin 2 10
USMC scout sniper wrote:How do I add an object spawner so I can add a supply crate?
Here's an example:
"\mods\your-pr-edit-folder\levels\yourmap\GameModes\gpm_cq\64\GamePlayObjects.con":

Code: Select all

rem [ObjectSpawnerTemplate: rpammo_2]
ObjectTemplate.create ObjectSpawner rpammo_2
ObjectTemplate.activeSafe ObjectSpawner rpammo_2
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.setObjectTemplate 1 fixed_supply_crate_ru
ObjectTemplate.minSpawnDelay 99999
ObjectTemplate.maxSpawnDelay 99999
ObjectTemplate.team 1
ObjectTemplate.teamOnVehicle 1

Code: Select all

rem [ObjectSpawner: rpammo_2]
   Object.create rpammo_2
   Object.absolutePosition -44.107/56.420/1044.324
   Object.rotation 0.000/0.000/0.000
   Object.setControlPointId 4
   Object.layer 2
Image
ImageImageImage
USMC scout sniper
Posts: 487
Joined: 2010-01-03 04:21

Re: How to add a supply crate to a map that doesn't have object spawners in GPO

Post by USMC scout sniper »

ill mess around with it and see what happens.so the code comes after the object spanwe itself?
HELL HAVE NO FURY LIKE ME WITH A M249 SAW PIP!
Rudd
Retired PR Developer
Posts: 21225
Joined: 2007-08-15 14:32

Re: How to add a supply crate to a map that doesn't have object spawners in GPO

Post by Rudd »

I really dunno what your trying to say mate

the code controls what spawns when and where ingame

to add objectspawner, open map in edtior (level editor), right click, objectspawner, give it a name, it'll give you a list of objects (that doesn't work anymore, just select whatever and click ok), select the objectspawner you just created, and in objectTemplate.setObjectTemplate 1 or objectTemplate.setObjectTemplate 2 select the object you want per team, 1 being generally blufor and 2 being generally opfor.

save

then you'll see the stuff in teh GPO file
Image
USMC scout sniper
Posts: 487
Joined: 2010-01-03 04:21

Re: How to add a supply crate to a map that doesn't have object spawners in GPO

Post by USMC scout sniper »

How do i start BF2 editor? There's no shortcut....
Last edited by USMC scout sniper on 2011-09-26 03:11, edited 1 time in total.
HELL HAVE NO FURY LIKE ME WITH A M249 SAW PIP!
Post Reply

Return to “PR:BF2 Community Modding”