How to get commands like notarget to behave like variables?
-
Keyboard_Doomer
- Posts: 4
- Joined: Thu Feb 13, 2014 7:17 am
How to get commands like notarget to behave like variables?
I'm looking for a way how to make some console commands like notarget or iddqd to behave like some of the variables, e.g. sv_infiniteammo. What I mean is the effect of the cheat would last throughout the current session of ZDoom until I explicitly unset it but the next time I launch ZDoom it will be disabled.
I see ZDoom have the option to create custom variables, though with zero ACS scripting knowledge I can't even begin to imagine how would I make this work.
Any help appreciated.
I see ZDoom have the option to create custom variables, though with zero ACS scripting knowledge I can't even begin to imagine how would I make this work.
Any help appreciated.
Re: How to get commands like notarget to behave like variabl
I don't think this is possible without editing the source code.
Re: How to get commands like notarget to behave like variabl
I don't understand the issue. They already work like that, don't they?
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
Re: How to get commands like notarget to behave like variabl
I imagine he wants them to be on until he specifically turns them off, persisting between game sessions.
-
Keyboard_Doomer
- Posts: 4
- Joined: Thu Feb 13, 2014 7:17 am
Re: How to get commands like notarget to behave like variabl
I guess I should've explained more thoroughly what I'm asking for. If you die or change the map you have to run these commands again for them to take effect. Variables like sv_infiniteammo continue to work no matter what until you disable them yourself or restart ZDoom.Gez wrote:I don't understand the issue. They already work like that, don't they?
EDIT: And by restart I meant close it and then launch it again later. Apparently even using "restart" in console doesn't unset these variables.
Re: How to get commands like notarget to behave like variabl
This is because the mindset is different between gameplay variables and debug commands. Things like notarget aren't really intended for use in gameplay, but rather development and debugging use, and thus their effects are limited for what they needed to do at the time in the simplest way possible with no real need of session persistence.
-
Keyboard_Doomer
- Posts: 4
- Joined: Thu Feb 13, 2014 7:17 am
Re: How to get commands like notarget to behave like variabl
I see your point, though I can't really say I would agree. For example sv_nomonsters is a variable, yet I don't see much use for it in gameplay. Also, I haven't made any wads myself but I would imagine notarget can be useful in multi-level wads just as it is in single-level ones with similar usage as the aforementioned sv_nomonsters.edward850 wrote:This is because the mindset is different between gameplay variables and debug commands. Things like notarget aren't really intended for use in gameplay, but rather development and debugging use, and thus their effects are limited for what they needed to do at the time in the simplest way possible with no real need of session persistence.
Re: How to get commands like notarget to behave like variabl
Did you forget that deathmatch exists?Keyboard_Doomer wrote:For example sv_nomonsters is a variable, yet I don't see much use for it in gameplay.
-
Keyboard_Doomer
- Posts: 4
- Joined: Thu Feb 13, 2014 7:17 am
Re: How to get commands like notarget to behave like variabl
Heh, true.edward850 wrote:Did you forget that deathmatch exists?Keyboard_Doomer wrote:For example sv_nomonsters is a variable, yet I don't see much use for it in gameplay.
Though, still think that it would be rather useful while testing multi-level wads if commands like notarget, buddha etc. worked like variables.
