// Generated by DEH_EDGE v1.3

<WEAPONS>

[FIST]
AMMOTYPE = NOAMMO;
AUTOMATIC = TRUE;
BINDKEY = 1;
PRIORITY = 0;
FREE = TRUE;

STATES(UP) =
    PUNG:A:1:NORMAL:RAISE;

STATES(DOWN) =
    PUNG:A:1:NORMAL:LOWER;

STATES(READY) =
    PUNG:A:1:NORMAL:READY;

STATES(ATTACK) =
    PUNG:B:3:NORMAL:NOTHING,
    PUNG:C:3:NORMAL:SHOOT,
    PUNG:D:4:NORMAL:NOTHING,
    PUNG:C:2:NORMAL:NOTHING,#READY;

ATTACK = PLAYER_PUNCH;

[PISTOL]
AMMOTYPE = BULLETS;
AMMOPERSHOT = 1;
AUTOMATIC = TRUE;
BINDKEY = 2;
PRIORITY = 2;
FREE = TRUE;
REFIRE_INACCURATE = TRUE;

STATES(UP) =
    PISG:A:1:NORMAL:RAISE;

STATES(DOWN) =
    PISG:A:1:NORMAL:LOWER;

STATES(READY) =
    PISG:A:1:NORMAL:READY;

STATES(ATTACK) =
    PISG:A:3:NORMAL:NOTHING,
    PUNG:B:0:NORMAL:SHOOT,
    PISG:B:5:NORMAL:SHOOT,
    PISG:C:3:NORMAL:NOTHING,
    PISG:B:4:NORMAL:REFIRE,#READY;

STATES(FLASH) =
    PISF:A:6:BRIGHT:LIGHT1,
    SHTG:E:0:NORMAL:LIGHT0,#REMOVE;

ATTACK = PLAYER_PISTOL;

[SHOTGUN]
AMMOTYPE = SHELLS;
AMMOPERSHOT = 1;
AUTOMATIC = TRUE;
BINDKEY = 3;
PRIORITY = 3;

STATES(UP) =
    SHTG:A:1:NORMAL:RAISE;

STATES(DOWN) =
    SHTG:A:1:NORMAL:LOWER;

STATES(READY) =
    SHTG:A:1:NORMAL:READY;

STATES(ATTACK) =
    SHTG:A:3:NORMAL:NOTHING,
    SHTG:A:7:NORMAL:SHOOT,
    SHTG:B:2:NORMAL:NOTHING,
    SHTG:C:3:NORMAL:NOTHING,
    SHTG:D:5:NORMAL:NOTHING,
    SHTG:C:4:NORMAL:NOTHING,
    SHTG:B:3:NORMAL:NOTHING,
    SHTG:A:2:NORMAL:NOTHING,
    SHTG:A:1:NORMAL:REFIRE,#READY;

STATES(FLASH) =
    SHTF:A:4:BRIGHT:LIGHT1,
    SHTF:B:3:BRIGHT:LIGHT2,
    SHTG:E:0:NORMAL:LIGHT0,#REMOVE;

ATTACK = PLAYER_SHOTGUN;

[CHAINGUN]
AMMOTYPE = BULLETS;
AMMOPERSHOT = 1;
AUTOMATIC = TRUE;
BINDKEY = 4;
PRIORITY = 5;
REFIRE_INACCURATE = TRUE;

STATES(UP) =
    CHGG:A:1:NORMAL:RAISE;

STATES(DOWN) =
    CHGG:A:1:NORMAL:LOWER;

STATES(READY) =
    CHGG:A:1:NORMAL:READY;

STATES(ATTACK) =
    CHGF:A:2:NORMAL:SHOOT,
    CHGF:B:2:BRIGHT:SHOOT,
    CHGG:B:4:NORMAL:REFIRE,
    PISG:D:5:NORMAL:NOTHING,
    PISG:E:12:NORMAL:PLAYSOUND(DBOPN),
    CHGG:B:5:NORMAL:NOTHING,#READY;

STATES(FLASH) =
    CHGF:A:2:BRIGHT:LIGHT1,
    SHTG:E:0:NORMAL:LIGHT0,#REMOVE;

ATTACK = PLAYER_CHAINGUN;

[ROCKET_LAUNCHER]
AMMOTYPE = ROCKETS;
AMMOPERSHOT = 1;
AUTOMATIC = TRUE;
BINDKEY = 5;
PRIORITY = 7;
DANGEROUS = TRUE;

STATES(UP) =
    MISG:A:1:NORMAL:RAISE;

STATES(DOWN) =
    MISG:A:1:NORMAL:LOWER;

STATES(READY) =
    MISG:A:1:NORMAL:READY;

STATES(ATTACK) =
    MISF:B:5:BRIGHT:FLASH,
    MISF:A:5:BRIGHT:SHOOT,
    MISF:C:5:BRIGHT:NOTHING,
    MISF:D:5:BRIGHT:NOTHING,
    MISF:C:0:BRIGHT:REFIRE,#READY;

STATES(FLASH) =
    FIRE:A:3:NORMAL:LIGHT1,
    FIRE:A:4:NORMAL:NOTHING,
    FIRE:A:4:NORMAL:LIGHT2,
    FIRE:A:4:NORMAL:LIGHT2,
    SHTG:E:0:NORMAL:LIGHT0,#REMOVE;

ATTACK = PLAYER_MISSILE;

[PLASMA_RIFLE]
AMMOTYPE = CELLS;
AMMOPERSHOT = 1;
AUTOMATIC = TRUE;
BINDKEY = 6;
PRIORITY = 6;

STATES(UP) =
    PLSG:A:1:NORMAL:RAISE;

STATES(DOWN) =
    PLSG:A:1:NORMAL:LOWER;

STATES(READY) =
    PLSG:A:1:NORMAL:READY;

STATES(ATTACK) =
    FIRE:A:2:NORMAL:SHOOT,
    PLSG:B:20:NORMAL:REFIRE,#READY;

STATES(FLASH) =
    PLSF:A:4:BRIGHT:LIGHT1,
    SHTG:E:0:NORMAL:LIGHT0,#REMOVE;

ATTACK = PLAYER_PLASMA;

[BFG_9000]
AMMOTYPE = CELLS;
AMMOPERSHOT = 40;
AUTOMATIC = TRUE;
BINDKEY = 7;
PRIORITY = 8;
DANGEROUS = TRUE;

STATES(UP) =
    BFGG:A:1:NORMAL:RAISE;

STATES(DOWN) =
    BFGG:A:1:NORMAL:LOWER;

STATES(READY) =
    BFGG:A:1:NORMAL:READY;

STATES(ATTACK) =
    BFGG:A:10:NORMAL:PLAYSOUND(BFG),
    BFGG:B:7:NORMAL:FLASH,
    BFGG:B:7:NORMAL:SHOOT,
    BFGG:B:7:NORMAL:REFIRE,#READY;

STATES(FLASH) =
    BFGF:A:11:BRIGHT:LIGHT1,
    BFGF:B:6:BRIGHT:LIGHT2,
    SHTG:E:0:NORMAL:LIGHT0,#REMOVE;

ATTACK = PLAYER_BFG9000;

[CHAINSAW]
AMMOTYPE = NOAMMO;
AUTOMATIC = TRUE;
BINDKEY = 1;
PRIORITY = 1;
NOTHRUST = TRUE;
FEEDBACK = TRUE;
START_SOUND = "SAWUP";
IDLE_SOUND = "SAWIDL";
ENGAGED_SOUND = "SAWFUL";

STATES(UP) =
    SAWG:C:1:NORMAL:RAISE;

STATES(DOWN) =
    SAWG:C:1:NORMAL:LOWER;

STATES(READY) =
    SAWG:C:4:NORMAL:READY,
    SAWG:D:4:NORMAL:READY;

STATES(ATTACK) =
    SAWG:A:4:NORMAL:SHOOT,
    FIRE:D:0:NORMAL:LIGHT2,
    SAWG:B:4:BRIGHT:SHOOT,
    FIRE:C:0:NORMAL:LIGHT1,
    SAWG:B:0:NORMAL:REFIRE,#READY;

ATTACK = PLAYER_SAW;

[SUPER_SHOTGUN]
AMMOTYPE = SHELLS;
AMMOPERSHOT = 2;
AUTOMATIC = TRUE;
BINDKEY = 3;
PRIORITY = 4;

STATES(UP) =
    SHT2:A:1:NORMAL:RAISE;

STATES(DOWN) =
    SHT2:A:1:NORMAL:LOWER;

STATES(READY) =
    SHT2:A:1:NORMAL:READY;

STATES(ATTACK) =
    SHT2:A:3:NORMAL:NOTHING,
    SHT2:A:3:NORMAL:SHOOT,
    SHT2:B:3:NORMAL:NOTHING,
    SHT2:C:3:NORMAL:CHECKRELOAD,
    SHT2:D:4:NORMAL:PLAYSOUND(DBOPN),
    SHT2:E:5:NORMAL:NOTHING,
    SHT2:F:4:NORMAL:PLAYSOUND(DBLOAD),
    SHT2:G:4:NORMAL:NOTHING,
    SHT2:H:3:NORMAL:PLAYSOUND(DBCLS),
    SHT2:A:3:NORMAL:REFIRE,#READY;

STATES(FLASH) =
    SHT2:I:5:BRIGHT:LIGHT1,
    SHT2:J:4:BRIGHT:LIGHT2,
    SHTG:E:0:NORMAL:LIGHT0,#REMOVE;

ATTACK = PLAYER_SHOTGUN2;


