View Revisions: Issue #564

Summary 0000564: Expose WeaponState (WF_*) enum to ZScript
Revision 2017-04-10 22:35 by Xaser
Description I found myself in need of checking if the player's currently-held weapon is ready to fire, then noticed that the WF_ enums used for player.WeaponState aren't exposed to ZScript.

It's technically easy to replicate the enum in-script (or just check "player.WeaponState & 1"), but a canon enum would be nice to have.

[EDIT] For reference, I'm talking 'bout these:
https://github.com/coelckers/gzdoom/blob/master/src/d_player.h#L219
Revision 2017-04-10 21:57 by Xaser
Description I found myself in need of checking if the player's currently-held weapon is ready to fire, then noticed that the WF_ enums used for player.WeaponState aren't exposed to ZScript.

It's technically easy to replicate the enum in-script (or just check "player.WeaponState & 1"), but a canon enum would be nice to have.