start player on 3D floor

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

User avatar
solarsnowfall
Persecution Complex
Posts: 363
Joined: Fri Aug 05, 2005 8:51

Post by solarsnowfall »

Another solution might be to have a mapspot at the correct position you want the player to start at, then use one of the teleport functions with no fog to move him there at map start.
User avatar
NeoHippo
Posts: 408
Joined: Tue Sep 13, 2005 0:47
Location: British Columbia Canada

Post by NeoHippo »

solarsnowfall wrote:Another solution might be to have a mapspot at the correct position you want the player to start at, then use one of the teleport functions with no fog to move him there at map start.
Another solution? Isn't that what Nash already suggested?
Nash wrote:What I usually do is I put a map spot with gravity at the 3-d floor, and at the start, use ACS to silently teleport the player to the map spot.
Anyways, that, to me, is a far more elegant way than the dummy sector route. :P
TAtL, tU, aE
User avatar
Syfo-Dyas
Posts: 182
Joined: Sun Oct 09, 2005 21:54
Location: Ohio
Contact:

Post by Syfo-Dyas »

Come to think of it, you can't use Fraggle Script for this anyhow, I forgot we were talking about a player start point and not just an enemy start point.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

XDelusion wrote:I opened the map, it has a floor raised up for the player to stand and start on, but in the game that floor is not there.

how do I do that?

Could save me some scripting time! :)
It's in the script I included in the zip - A simple one-liner to lower the floor instantly. I guess you could even do that "mechanically" by lowering the floor quickly when the player walks off the supporting floor (crossing a floor-lower line of some sort).
User avatar
solarsnowfall
Persecution Complex
Posts: 363
Joined: Fri Aug 05, 2005 8:51

Post by solarsnowfall »

NeoHippo wrote:Isn't that what Nash already suggested?
Do'h!
User avatar
Eriance
Posts: 150
Joined: Wed Mar 29, 2006 19:36
Location: Everywhere and nowhere
Contact:

Post by Eriance »

Just make the starting floor the same height as the 3d floor and have it lower to it's intented height through a OPEN script. That way you wont gat the nudge at the beginning of the map from raising the floor from a level.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

Your suggestion is exactly what the example I posted on the previous page does. You don't get a "nudge" but you do hear a "clunk" when the floor reaches ground level. As I said in my other post, a silent sound sequence would sort that out.
User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

Post by Tormentor667 »

Every suggestion posted here is only a workaround that makes too much trouble in several cases. Just think of a deathmatch map with 3d floors...

I'd suggest adding a second sortiment of player / deathmatch starts to ZDoom/GZDoom that uses this Z-height attribute. Something like a "Player Start (no gravity)" category. And in case of placing 2 player starts of different types (for example player 1 with and without gravity) I'd suggest always using the "with gravity" before using the one without and "voila", we are done and happy ;)
Locked

Return to “GZDoom”