Hi
I am trying to replicate Strife-style breakable windows.
A functional description of what I am trying to achieve:
Layout:
2 rooms sectors with 1 window sector inbetween
Window sector split by single linedef referencing the same sector on both sides
Splitting line represents glass, set on middle texture
I am able to work with line ids, translucency, texture changes and shard spawning using both Doom in Hexen format (with setlineid + script 1 enter {} initialisation) and UDMF, but would obviously prefer to work with UDMF, where most properties are set directly and not by init-scripts.
There is, however, one thing I can do in Hexen that I have not figured out in UMDF:
Triggering line special upon hitscan attacks crossing the line without impact.
The second-best solution works: Making the window block everything and trigger on projectile impact instead of missile crossing, but I would prefer that the projectile/missile which shatters the window passes unhindered, rather than stopping dead in the "glass".
(Missile tests with rocket launcher and plasma gun trigger projectile/missile crossing specials; projectile tests with shotgun and pistol only trigger impact specials in UDMF as far as I can tell, while in (Doom/Hexen format) all weapons seem capable of excuting the trigger for projectile impact OR crossing line.)
UDMF projectile/missile triggered line specials
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49238
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: UDMF projectile/missile triggered line specials
You need to make it triggerable by both missile crossing and impact. In UDMF trigger types can be freely combined.
Re: UDMF projectile/missile triggered line specials
Have I ever... Now that I applied that I realise that combining those two triggers is exactly the same as the single Hexen trigger. Additionally, I find that it works. I suppose this means that hitscans never cause line-crossing effects, but cause impact effects even when projectiles are not blocked.
Thank you.
Thank you.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49238
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: UDMF projectile/missile triggered line specials
That particular trigger type in Hexen format maps always was a combination of these 2 types so it made no sense to have a separate trigger flag for it in UDMF.