project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding > Modding Tutorials
19 Nov 2019, 00:00:00 (PRT)
Register Developer Blogs Project Reality Members List Search Today's Posts Mark Forums Read
Modding Tutorials Information and tutorials related to modding BF2.

Reply
 
Thread Tools Display Modes
Old 2015-08-05, 11:44   #1
[R-DEV]Mats391
PR:BF2 Lead Developer
Supporting Member

Mats391's Avatar
Default 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
This will only spawn one plane that travels 1km.
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
The direction they move is simply set by the rotation of the ObjectSpawner.
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
Mats391 is offline
Last edited by [R-DEV]Mats391; 2015-09-03 at 18:21..
Reply With Quote
Old 2015-11-01, 20:57   #2
[R-DEV]Mineral
PR:BF2 Lead Designer
Supporting Member
PR Server License Administrator

Mineral's Avatar
Default re: Parachute spawns

New tutorial for setting up parachute spawns for v1.3.5

Mineral is offline Reply With Quote
Reply


Tags
parachute, spawns, tutorial
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 17:31.