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.
[4.14] "Change Texture & Effect" dosn't transfer secret effect
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.
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.
-
- 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
You do not have the required permissions to view the files attached to this post.
-
- 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
The actual transfer is done by 'void TransferSpecial' in p_sectors.cpp
The offending code is in r_defs.h -
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.
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);
}
Code: Select all
gamedata/r_defs.h: SECF_SPECIALFLAGS = SECF_DAMAGEFLAGS|SECF_FRICTION|SECF_PUSH|SECF_EXIT1|SECF_EXIT2|SECF_KILLMONSTERS,
-
- 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
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.
-
- 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
In that case there isn't really anything to do here then.