My Position for keeping A_ChangeFlag in ZDoom
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.
-
SPZ1
- Posts: 397
- Joined: Wed Aug 02, 2017 3:01 pm
- Location: Illinois
My Position for keeping A_ChangeFlag in ZDoom
Well, basically I have this custom weapon... Lets call it 'Cupid's Bow'... and it converts its target from an enemy and into a friend. It does this with a custom projectile damage type by setting the PainChance of it's damage type to 255 and using A_ChangeFlag to set the "friendly" flag to true in the enemy code. And this is why I think that it should be preserved.
-
Matt
- Posts: 9696
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Re: My Position for keeping A_ChangeFlag in ZDoom
All Decorate is officially deprecated last I heard, so the fact that it's labeled as deprecated doesn't mean any imminent future GZDoom release is going to scrap it altogether - there are far too many old mods that rely on this stuff for that.
For what it's worth, I came up with the ZScript version of what you described in literally a minute, with no changes required for the monsters:
That "bFRIENDLY=true" usage should be available in a Decorate anonymous function as well, so if you really want to go that painstate route that can also be done without A_ChangeFlag:
For what it's worth, I came up with the ZScript version of what you described in literally a minute, with no changes required for the monsters:
Code: Select all
class cupidarrow:rocket replaces rocket{
default{
+hittracer
states{
death:
MISL B 0{
tracer.bFRIENDLY=true;
}
goto super::death;
}
} Code: Select all
actor painfriendly:cyberdemon{
states{
pain:
"----" A 0{
bFRIENDLY=true;
}
goto super::pain
}
} -
Nevander
- Posts: 2254
- Joined: Mon Jan 06, 2014 11:32 pm
Re: My Position for keeping A_ChangeFlag in ZDoom
Did I miss something? A_ChangeFlag is being removed?
-
Mikk-
- Posts: 2274
- Joined: Tue Jun 30, 2009 1:31 pm
Re: My Position for keeping A_ChangeFlag in ZDoom
No. It's just people not understanding what deprecated means in the context of GZDOOM's development.
-
Rachael
- Posts: 13986
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
Re: My Position for keeping A_ChangeFlag in ZDoom
Deprecated means the feature will no longer be enhanced or improved upon.
It does not mean that it will be removed.
It does not mean that it will be removed.
-
Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: My Position for keeping A_ChangeFlag in ZDoom
A_ChangeFlag is deprecated for ZScript, not for DECORATE. The reaason being that in ZScript there's more efficient ways to do the same stuff.