From 1c8d6981217ac12980d1c9a583db23b52bd37d7f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 13 Apr 2017 02:42:31 +0200 Subject: [PATCH] - added WeaponState enum for ZScript. --- wadsrc/static/zscript/constants.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/wadsrc/static/zscript/constants.txt b/wadsrc/static/zscript/constants.txt index 95863452c..5477d24ee 100644 --- a/wadsrc/static/zscript/constants.txt +++ b/wadsrc/static/zscript/constants.txt @@ -1154,3 +1154,19 @@ const TEXTCOLOR_BOLD = "\034+"; const TEXTCOLOR_CHAT = "\034*"; const TEXTCOLOR_TEAMCHAT = "\034!"; + +enum EWeaponState +{ + WF_WEAPONREADY = 1 << 0, // [RH] Weapon is in the ready state and can fire its primary attack + WF_WEAPONBOBBING = 1 << 1, // [HW] Bob weapon while the player is moving + WF_WEAPONREADYALT = 1 << 2, // Weapon can fire its secondary attack + WF_WEAPONSWITCHOK = 1 << 3, // It is okay to switch away from this weapon + WF_DISABLESWITCH = 1 << 4, // Disable weapon switching completely + WF_WEAPONRELOADOK = 1 << 5, // [XA] Okay to reload this weapon. + WF_WEAPONZOOMOK = 1 << 6, // [XA] Okay to use weapon zoom function. + WF_REFIRESWITCHOK = 1 << 7, // Mirror WF_WEAPONSWITCHOK for A_ReFire + WF_USER1OK = 1 << 8, // [MC] Allow pushing of custom state buttons 1-4 + WF_USER2OK = 1 << 9, + WF_USER3OK = 1 << 10, + WF_USER4OK = 1 << 11, +}; \ No newline at end of file