If you meant something like "...to change only one line code...", then you can just use mobjinfo[X].y = z, where X is your mobj's MT_* constant, y is the variable you want to modify and z is its new value.
Example: To add anti-gravity to all the player objects, we have to add to MT_PLAYER's flags variable the MF_NOGRAVITY flag. The result would be:
Nope. The flags variable of a mobj's info only supports MF_* constants (which represent normal mobj flags). mobjinfo tables don't have place for any other type of flag types.
To modify a mobj's flags2 or eflags, you preferably do it through a MobjThinker hook. In case you need it, use this link to see information about MobjThinker hooks.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.