[4.14] "Change Texture & Effect" dosn't transfer secret effect

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.
Blue Phoenix
Posts: 3
Joined: Mon May 03, 2021 6:37 pm
Graphics Processor: nVidia with Vulkan support
Location: Iceland

[4.14] "Change Texture & Effect" dosn't transfer secret effect

Post by Blue Phoenix »

In other Boom ports having a voodoo doll cross a 153:W1 Change Texture and Effect copies secret effect to the tagged sector (without increasing total secrets).
I use this effect to make pulling a switch count as a secret.
You do not have the required permissions to view the files attached to this post.
User avatar
Rachael
Posts: 13886
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [4.14] "Change Texture & Effect" dosn't transfer secret effect

Post by Rachael »

The actual transfer is done by 'void TransferSpecial' in p_sectors.cpp

Code: Select all

void TransferSpecial(sector_t *sector, sector_t *model)
{
	sector->special = model->special;
	sector->damageamount = model->damageamount;
	sector->damagetype = model->damagetype;
	sector->damageinterval = model->damageinterval;
	sector->leakydamage = model->leakydamage;
	sector->Flags = (sector->Flags&~SECF_SPECIALFLAGS) | (model->Flags & SECF_SPECIALFLAGS);
}
The offending code is in r_defs.h -

Code: Select all

gamedata/r_defs.h:      SECF_SPECIALFLAGS = SECF_DAMAGEFLAGS|SECF_FRICTION|SECF_PUSH|SECF_EXIT1|SECF_EXIT2|SECF_KILLMONSTERS,
I am not sure if it was intentional to omit the secret flag from this or not. I would need to know from either Marisa H or Graf what the most desired outcome for handling this would be.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49211
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [4.14] "Change Texture & Effect" dosn't transfer secret effect

Post by Graf Zahl »

This was intentional because one of Heretic's original maps has 2 sectors where this creates bad secrets. The change is also quite old so reverting it now will likely cause similar problems in some more recent maps.
User avatar
Rachael
Posts: 13886
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [4.14] "Change Texture & Effect" dosn't transfer secret effect

Post by Rachael »

In that case there isn't really anything to do here then.

Return to “Closed Bugs [GZDoom]”