Can you spawn down?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Can you spawn down?

Post by destos »

i have two questions

1. is their a way to mimic a skydive as you spawn in on a command post? as in you select your character you select a cp, then when u hit spawn, you spawn really high in the sky and then you basicly decend at a decent rate (perhaps you could type in something to the units odf to make it fall slower than normal imitating a parachute?) then after maybe 3 seconds you hit the ground and you can play as normal.

2. can you also make it so that after a few seconds or minutes of play the command post goes from a parachute spawn style to a normal spawn style?
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: can you spawn down?

Post by Frisbeetarian »

1. Yes
2. Yes

Is it reasonable to try this, no. It would take high level Lua coding to accomplish this and it would still be a hack job.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: can you spawn down?

Post by YaNkFaN »

the first one is relatively easy just tilt the green axis of the spawn path down above the ground and the unit should fall towards the ground

giving it sky diving animation would be a different thing

for number 2 i think you could make a timer in the .lua and have 2 spawn paths one that is above the ground and one that is near the ground after the timer elapses you could set the one on the ground as the new spawn path
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: can you spawn down?

Post by Frisbeetarian »

YaNkFaN wrote:the first one is relatively easy just tilt the green axis of the spawn path down above the ground and the unit should fall towards the ground
That's not how spawn points work, you always spawn standing up, but moving the spawn point into the air is the easy part, the harder part is playing around with gravity (the little BF2 actually has) to make it work as he wants, and I'm not sure you can do that for a single unit even.
YaNkFaN wrote:for number 2 i think you could make a timer in the .lua and have 2 spawn paths one that is above the ground and one that is near the ground after the timer elapses you could set the one on the ground as the new spawn path
Are you sure that you can dynamically change spawn paths? I was thinking that you'd have to play around with two CPs in the same spot with different spawn paths.

Regardless, it still wouldn't look good without some aesthetic additions which would add even more scripting.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: can you spawn down?

Post by YaNkFaN »

yea i agree it's possible but very difficult and the effect well the effect probably wouldn't that great

also I got this out of the documentation
PATH EDIT MODE
PATH EDIT MODE is used for creating UNIT SPAWN Paths. Unit SPAWN PATHS consist of a string of SPAWN nodes that contain color axes that indicate the direction the unit will face when spawned. Spawn paths can be named and that name referenced in object instance properties such as in the case of command posts. PATH nodes can be rotated using the standard keyboard and mouse controls and like objects snap to the terrain first. Nodes and paths can have their heights adjusted and locked using the LOCK HEIGHTS button and/or by holding the shift key.
I took that to mean that a unit can be spawned downward i've never tried it but i think it might be possible?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: can you spawn down?

Post by [RDH]Zerted »

1) Just put the CP's spawn points in the air. You can turn off fall damage, give the falling players a health regen, drop them on an invisible slide (that might work), or keep the CP near the ground. You could also drop them into water which would 'soften' the blow and make falling without a parachute seem 'safer'. Only the slide might slow the fall.
2) After a short timer goes off, disable/kill the air CP and enable another ground CP directly below it.

A fun thing you can do is teleport units to an upside down entity (like a ship or something stuck in the air). The players will be appear with the same rotation and direction of the entity. Thus they will be upside down until they land on something. I've never tried to see if you could rotate a spawn point down.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: can you spawn down?

Post by Maveritchell »

[RDH]Zerted wrote:A fun thing you can do is teleport units to an upside down entity (like a ship or something stuck in the air). The players will be appear with the same rotation and direction of the entity. Thus they will be upside down until they land on something. I've never tried to see if you could rotate a spawn point down.
It is fun until you realize that you will be, in a Shel Silverstein-esque manner, falling "up." I'm pretty sure that's what happens when you reverse the orientation of an object like that (I played around with it a little bit).

You can't rotate spawnpoints down to force an orientation change like that, only the rotation on the Z-plane is inherited from a spawn point.
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: can you spawn down?

Post by Frisbeetarian »

Zerted wrote:A fun thing you can do is teleport units to an upside down entity
You don't even have to teleport them, you can just change the rotation of their present matrix (which, I guess, in essence, are the same thing, just without the spacial movement).
Post Reply