Sup guys. I thought I'd just drop this question here and introduce myself at the same time.
So the nick is Handicap. I'm currently pretty much "the" lead developer of the rather antique mod FinnWars. Yes that is my face in the picture. Also I tend to use the "finnish" way of dealing with social situations. Straight to the point.
I was wondering how can you spawn an airplane midair. No, I do not wish it to plummet like a divine anchor of god, I want to do it like they did it in Forgotten Hope. I do not remember which map it was, but I am quite certain that in one of the pacific maps the japanese had a bomber floating midair, and then diving when a player entered the cockpit by directly spawning in the plane (the funniest part with the plane was that the 9 other players who wanted to spawn in the plane took a dive too). I didn't find any entry which could have contained the code, comments or any mechanisms behind the "float". So I thought that you could tell me the trick behind it. I'm way too busy with two schools, a band, miscellaneous projects and magical cows to just go and experiement.
Any ideas how this "float" could be implemented? The plane seems "regain" it's physical attributes when someone spawns in it, but it gains speed when it dives so the players can continue flying after gaining enough speed. Some maps in FinnWars could benefit from this. The battlefields are occasionally a bit too tight for the planes in FinnWars and besides, the players tend to sit at the airfield way too much.
Making an airplane spawn midair and float around
Making an airplane spawn midair and float around
Last edited by Handicap on Thu May 19, 2011 4:13 pm, edited 1 time in total.
Re: Making an airplane spawn midair and float around
Welcome to the site!
Not seen them but guess they are held in mid air using the hold object command. You can see an example of this with the lcvp's on ships. they are help in the same way.
Bascially you need to have an invisible object in mid air that the plane can hold onto.
If you need more help to achieve it just shout but that would be the best starting point to see how its done.
Not seen them but guess they are held in mid air using the hold object command. You can see an example of this with the lcvp's on ships. they are help in the same way.
Bascially you need to have an invisible object in mid air that the plane can hold onto.
If you need more help to achieve it just shout but that would be the best starting point to see how its done.
Re: Making an airplane spawn midair and float around
The ObjectSpawnTemplate has a line of code:
ObjectTemplate.holdObject 1
When you drag and drop that spawn template [in a map editor such as BattleCraft] in mid-air, the airplane will sit still in the air in-game until a playe or bot hops in and flies it. You then would need to place a spawn point next to that airplane, on a platform or directly on top of the airplane, for the players to spawn. Bots can also use that spawn point, so you'd need to add a line of code to make the AI "enterOnSpawn."
That is the best I can do for you right now. If this is the idea you are looking for, I can go into further detail.
[Edit] Battlegroup '42 has a spawn point on Wake Island where players directly spawn as a skark and swim around. Use that idea, but replace the skark with an airplane. The spawn point is not visible at all until a player spawns, almost as if the player model himself is a shark. A player can exit the shark, since it's only a vehicle.
ObjectTemplate.holdObject 1
When you drag and drop that spawn template [in a map editor such as BattleCraft] in mid-air, the airplane will sit still in the air in-game until a playe or bot hops in and flies it. You then would need to place a spawn point next to that airplane, on a platform or directly on top of the airplane, for the players to spawn. Bots can also use that spawn point, so you'd need to add a line of code to make the AI "enterOnSpawn."
That is the best I can do for you right now. If this is the idea you are looking for, I can go into further detail.
[Edit] Battlegroup '42 has a spawn point on Wake Island where players directly spawn as a skark and swim around. Use that idea, but replace the skark with an airplane. The spawn point is not visible at all until a player spawns, almost as if the player model himself is a shark. A player can exit the shark, since it's only a vehicle.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Re: Making an airplane spawn midair and float around
Thanks for the holdobject tip, I will experiement a bit with it. If it works it will probably do.
In FH the bomber actually floats around the map before a player spawns in it. Any ideas how this is implemented?
In FH the bomber actually floats around the map before a player spawns in it. Any ideas how this is implemented?
Re: Making an airplane spawn midair and float around
The floating bomber moves? it sounds like it's attached to a RotationalBundle.
Remember those rotating spawn points that circle around a map [such as DCX's "BotB Snipers" map]? Those spawn points are attached to a rotational bundle. You should look at that BotB Snipers map if you want an example. I also downloaded a map called "King of the Island" that has a rotating spawn for both teams, and they parachute to the ground.
Remember those rotating spawn points that circle around a map [such as DCX's "BotB Snipers" map]? Those spawn points are attached to a rotational bundle. You should look at that BotB Snipers map if you want an example. I also downloaded a map called "King of the Island" that has a rotating spawn for both teams, and they parachute to the ground.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Re: Making an airplane spawn midair and float around
I think that's all I need. Thanks.