Changing line special causes explosion

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
lulle
Posts: 152
Joined: Fri May 06, 2022 9:39 pm
Location: Germany

Changing line special causes explosion

Post by lulle »

-Make standard door
-set speed to 128
-put a texture defined as switch in ANIMDEFS on it
-change special, like

Code: Select all

class ModiHandler : StaticEventHandler {
    override void WorldLoaded(WorldEvent e) {
        level.lines[7].special = 49; // breakable glass
    }
}
-use Door->Big BFGBall explosion

Very odd: Only happpens when door speed was set to 128.

Demo Map attached.

Maybe I did something totally wrong and stupid, but at least I found a nice feature for the next joke wad.

https://drive.google.com/file/d/1l3b_xV ... sp=sharing
User avatar
phantombeta
Posts: 2088
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Re: Changing line special causes explosion

Post by phantombeta »

User error.
You're changing the special but not the arguments. The [wiki=GlassBreak]GlassBreak special[/wiki]'s second argument is the SpawnID of the actor to spawn. It "only happens" when door speed is set to 128 because [wiki=Doom_spawn_numbers]that's the SpawnID of the BFG projectile[/wiki].
User avatar
lulle
Posts: 152
Joined: Fri May 06, 2022 9:39 pm
Location: Germany

Re: Changing line special causes explosion

Post by lulle »

Aaaaah tnx.
native int args[5]; <--Totally overseen that. args is one of the words I simply ignore all the times..
So, instead of the glass shards something else is spawned. This also explains why nothing evil happens with 64 &16.
Post Reply

Return to “Closed Bugs [GZDoom]”