|
Modding Tutorials Information and tutorials related to modding BF2. |
|
Thread Tools | Display Modes |
2015-08-05, 10:44 | #1 |
PR:BF2 Lead Developer
|
Parachute spawns
There is not a lot to worry about, most is done by python. The planes travel at 50-60m/s (180-216km/h)
The spawner: - MUST have "paradrop" in the name - MUST have the team set else it might create markers for wrong team - MUST have timeToLive of 0 - MUST have distance set - SHOULD be linked to the main base. Make sure flag team matches template team! Examples: This spawner will spawn two planes with 10sec in between that travel 2km before disappearing. Code:
ObjectTemplate.create ObjectSpawner bullseye_blue_paradrop_02 ObjectTemplate.activeSafe ObjectSpawner bullseye_blue_paradrop_02 ObjectTemplate.modifiedByUser "Wouter" ObjectTemplate.isNotSaveable 1 ObjectTemplate.hasMobilePhysics 0 ObjectTemplate.setObjectTemplate 2 paradrop ObjectTemplate.minSpawnDelay 10 ObjectTemplate.maxSpawnDelay 10 ObjectTemplate.TimeToLive 0 ObjectTemplate.Distance 2000 ObjectTemplate.teamOnVehicle 1 ObjectTemplate.maxNrOfObjectSpawned 2 ObjectTemplate.team 2 Code:
ObjectTemplate.create ObjectSpawner bullseye_blue_paradrop ObjectTemplate.activeSafe ObjectSpawner bullseye_blue_paradrop ObjectTemplate.modifiedByUser "Wouter" ObjectTemplate.isNotSaveable 1 ObjectTemplate.hasMobilePhysics 0 ObjectTemplate.setObjectTemplate 2 paradrop ObjectTemplate.minSpawnDelay 99999 ObjectTemplate.maxSpawnDelay 99999 ObjectTemplate.TimeToLive 0 ObjectTemplate.Distance 1000 ObjectTemplate.teamOnVehicle 1 ObjectTemplate.team 2 Some other things to consider: - Make sure the distance is not too long. If it reaches out of the map, the markers will wrap around and show on the wrong side. Always make sure the planes end inside map borders - Make sure to set it high enough so players wont get injured when pulling the parachute. Also make sure it is not on the ground. Forgot to move it into the air on one test and was puzzled why it moved so weirdly - Dont give any other rotation besides yaw (x-value) - Dont place the start of the planes close to a spawn point. It will create the green parachute icon and will look like that spawnpoint is a parachute one. |
Mineral: TIL that Wire-guided missiles actually use wire
|
|
Last edited by [R-DEV]Mats391; 2015-09-03 at 17:21..
|
2015-11-01, 20:57 | #2 |
PR:BF2 Lead Designer
Join Date: Jan 2012
Posts: 8,514
Belgium
|
re: Parachute spawns
New tutorial for setting up parachute spawns for v1.3.5
|
|
|
Tags |
parachute, spawns, tutorial |
|
|