Breakable door?
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!)
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!)
- AshHouswares
- Posts: 145
- Joined: Fri Jun 03, 2022 11:31 am
- Graphics Processor: Not Listed
Breakable door?
I'm trying to implement something different. Most doors are either open, broken off their hinges or locked. I want to include a door that is weak that the player can smash open either with a bullet or a strong melee attack. How does one actually implement a breakable piece of scenery in GZDOOM? I've read about it a lot but I cannot really understand any of what it's trying to explain. Can anyone clarify? So basically, I want a door (that cannot be opened but has a texture with a crack through it) indicating it is weak and the player can shoot it to open it. Any advice?
- AshHouswares
- Posts: 145
- Joined: Fri Jun 03, 2022 11:31 am
- Graphics Processor: Not Listed
Re: Breakable door?
Nothing?
Re: Breakable door?
Simplest way is to set 'door' moving speed to some ridiculously high, so it will move instantly on activation, and set line activation flags ONLY to projectile/hitscan hit in map editor. I.e. on hit it will move into the ground/ceiling. Put several such 'doors' close to each other and you have a 'breakable' doors.
- Sir Robin
- Posts: 537
- Joined: Wed Dec 22, 2021 7:02 pm
- Graphics Processor: Intel (Modern GZDoom)
- Location: Medellin, Colombia
Re: Breakable door?
Hi, I'm looking for the same thing. You're talking about "real" doors, AKA sector doors, right? I'm trying with polyobject doors but I think the process may be similar.
If you're using a UDMF map, see that in custom properties on a line there are Health and HealthGroup settings. This page describes the feature.
If you're using a UDMF map, see that in custom properties on a line there are Health and HealthGroup settings. This page describes the feature.
- Sir Robin
- Posts: 537
- Joined: Wed Dec 22, 2021 7:02 pm
- Graphics Processor: Intel (Modern GZDoom)
- Location: Medellin, Colombia
Re: Breakable door?
I posted an example of a breakable poly object door here
You can use a similar technique to break a real door
You can use a similar technique to break a real door