special1 question

Archive of the old editing forum
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.
Locked
User avatar
zrrion the insect
Posts: 2432
Joined: Thu Jun 25, 2009 1:58 pm
Location: Time Station 1: Moon of Glendale

special1 question

Post by zrrion the insect »

I see a lot of things use special1, but I see no way to access it. Could someone explain why that is?
User avatar
edward850
Posts: 5890
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: special1 question

Post by edward850 »

It's an internal counter used by a selection of Hexen/Heretic actors.
User avatar
zrrion the insect
Posts: 2432
Joined: Thu Jun 25, 2009 1:58 pm
Location: Time Station 1: Moon of Glendale

Re: special1 question

Post by zrrion the insect »

Yes. That is indeed what special1 is, but that's not what I was asking about. I'm wanting to know why it isn't accessible to anything other than the few functions that use it.
I see no way to do anything with it directly in a manner resembling A_SetArg(0,special1) or A_JumpIf(special1 > 0, "See") or something of that nature. I'm assuming that is because special1 is, well, special and shouldn't be mucked with, but why is that?
User avatar
edward850
Posts: 5890
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: special1 question

Post by edward850 »

No, and there is no reason for you to either. You have another, vastly more up to date, method. Special1 is antiquated and specifically non-specific (for lack of a better term) and should be left to those native functions.
User avatar
zrrion the insect
Posts: 2432
Joined: Thu Jun 25, 2009 1:58 pm
Location: Time Station 1: Moon of Glendale

Re: special1 question

Post by zrrion the insect »

So the reason it isn't accessible is because I shouldn't want to access it in lieu of better options and not because there's actually anything about special1 that makes accessing it difficult/bug-prone/it breaks things?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: special1 question

Post by Graf Zahl »

It's used for various internal thing, depending on the actor class that uses it. So unless you have some detailed knowledge of what's up it's close to useless as part of an A_Jump expression. Moreover, this is an implementation detail that's subject to change at any given time, if a problem or a clash is detected.
Locked

Return to “Editing (Archive)”