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.
Is it possible to change a pickups sprite depending on a global variable's value?
And, is it possible to change a weapons projectile depending on the global variable's value?
*EDIT*
Trying to be more specific what I want to do: I have two hand grenades, one for the regular missions, one for the Astrostein mission:
This works perfect for tge regular Grenade but what can I do if I want the Astrostein grenade to be thrown with the same key? It's actually the same kind of powerup, only with a different look.
Should be as simple as a A_jumpif(CallAcs("MyScript"), "MyDesiredstate") in the grenades spawn state. Where MyDesiredState is an alternate spawn state in this case, and MySript does something like..
In that case, all you'd need to do is have some script set the globalvalue to 1 or 0. Then your weapon needs only call a script that sets its own result value to the globalvalue's value. No need for the If statement at all.
@wildweasel - I understand the part with the global value but I have no idea how to implement that call decorate-wise. But...
@Ed - ...I guess this has already been resolved, so thanks to all for the hints and thanks to Ed for implementing it, I will take a closer look to at least understand what's going on