3D Floor toggle?

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

Locked
User avatar
wildweasel
DRD Team Admin (Inactive)
Posts: 2132
Joined: Wed Jun 29, 2005 22:00
Location: the Admincave!
Contact:

3D Floor toggle?

Post by wildweasel »

I'm interested to know if there's a script or line action that can be used to toggle whether a 3D floor exists in the map or not. The example I'm thinking of is a System Shock style force-bridge that turns on and off when hitting a switch.
smg m7
Posts: 81
Joined: Mon Sep 26, 2005 17:48
Location: Here, I hope.
Contact:

Post by smg m7 »

Yes, just change the heights of the 3D floor until it's beneith the floor with an instant floor/ceiling height script.
User avatar
wildweasel
DRD Team Admin (Inactive)
Posts: 2132
Joined: Wed Jun 29, 2005 22:00
Location: the Admincave!
Contact:

Post by wildweasel »

Am I correct in assuming that it'd work the same way if the 3D floor were placed above the ceiling? I imagine that having it come out of the floor would cause some problems if a monster were below where it was supposed to go.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

If you use a Floor/Ceiling_MoveInstant it shouldn't matter. But putting it above the ceiling might be safer. Moving a platform down is less likely to cause problems than moving it up.
However, the code checking thing positions after the sector movement only acts if the move has altered the nearest floor below the thing and if your move goes above the thing nothing will happen.
Locked

Return to “GZDoom”