Is it even possible to make this door open with scripting?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
gunrock
Posts: 23
Joined: Sat May 16, 2020 4:19 am

Is it even possible to make this door open with scripting?

Post by gunrock »

door.jpg

How can I make this door split open just like in Quake?
User avatar
Enjay
 
 
Posts: 26517
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Is it even possible to make this door open with scriptin

Post by Enjay »

Not easily. You could fake it with an animated door (animated texture like Strife doors), use a model or construct something with several map sectors and 3D floors.

Using a model would probably get you the closest to the original behaviour.

The other option would be to re-make the texture so that the split in the door was vertical instead of that angled lock-and-key shape and then use standard polyobjects. It would be less impressive visually but it would work very well.
Jarewill
 
 
Posts: 1759
Joined: Sun Jul 21, 2019 8:54 am

Re: Is it even possible to make this door open with scriptin

Post by Jarewill »

I know of two ways to do so:
- Using PolyObjects. (Wiki has a handy tutorial)
- Using Strife's Animated Doors. (Here's an ANIMDEFS wiki link, contains an example of an animated door below)

Edit: Sorry Enjay, didn't see your post when writing.
User avatar
MFG38
Posts: 414
Joined: Sun Apr 14, 2019 8:26 am
Graphics Processor: nVidia (Modern GZDoom)
Location: Finland
Contact:

Re: Is it even possible to make this door open with scriptin

Post by MFG38 »

I don't suppose the door is a 3D model? If not, you could try setting it up as a polyobject, but that would look glitchy as shit at best if you took the actual design into account. It's one of those scenarios where an animated 3D model - perhaps with some custom logic involving DECORATE or ZScript - ultimately works best.
gunrock
Posts: 23
Joined: Sat May 16, 2020 4:19 am

Re: Is it even possible to make this door open with scriptin

Post by gunrock »

Thanks guys. You are the best!!!
Post Reply

Return to “Scripting”