special1 question
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.
- zrrion the insect
- Posts: 2432
- Joined: Thu Jun 25, 2009 1:58 pm
- Location: Time Station 1: Moon of Glendale
special1 question
I see a lot of things use special1, but I see no way to access it. Could someone explain why that is?
Re: special1 question
It's an internal counter used by a selection of Hexen/Heretic actors.
- zrrion the insect
- Posts: 2432
- Joined: Thu Jun 25, 2009 1:58 pm
- Location: Time Station 1: Moon of Glendale
Re: special1 question
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?
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?
Re: special1 question
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.
- zrrion the insect
- Posts: 2432
- Joined: Thu Jun 25, 2009 1:58 pm
- Location: Time Station 1: Moon of Glendale
Re: special1 question
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?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49234
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: special1 question
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.