Is there such thing as something to "Activate" a gamevar VARNAME x x.
Like we know gamevar VARNAME x x define the var to make the var you add work.
BUT.
Something like a Ifvare blocks the gamevar VARNAME x x until is set.
I wanna do a thing for mainly pre-gamevar set such as weapon stuff etc.
Example if I want an addon to a weapon it set a var so it get to the pre-gamevar and activate them.
like a weapon addon.
Example.
Let say weapon 5 is RPG.
RPG is hard coded and will shoot standard RPG projectile, but hardcoded can be "bypassed" if you add a new WEAPONx SHOOTS thing alongside other pre-gamevars in "http://wiki.eduke32.com/wiki/Pre-defined_gamevars"
Will make the RPG shoot a diff projectile, do diff sound and dmg.
ifvare WEAFIVEADDON 1
{
??????? WEAPON4_FIRESOUND 666 1
??????? WEAPON4_SHOOTS 13662 1
}
I've tried gamevar, no working.
I searched but dunno what is the name for the "alternative to gamevar" that acts just like a gamevar but can work if is inside a ifvare thing.
like myospal works inside a ifvare.
Like 666 is to change the RPG sound.
13662 makes it shoot a diff projectile
??????? not sure what type of defining code to put that works inside the ifvare and acts exactly like a gamevar