/* P_pspr.c */

#include "doomdef.h"
#include "p_local.h"

#define	LOWERSPEED		FRACUNIT*7
#define	RAISESPEED		FRACUNIT*7

#define	WEAPONX		    (0)*FRACUNIT
#define WEAPONBOTTOM	(96)*FRACUNIT	//old 128
#define WEAPONTOP		(0)*FRACUNIT	//old 32

#define RECOILPITCH     0x2AA8000

#define	BFGCELLS		40			/* plasma cells for a bfg attack */

#define LASERRANGE          (4096*FRACUNIT)
#define LASERAIMHEIGHT      (40*FRACUNIT)
#define LASERDISTANCE       (30)

extern int ArtifactLookupTable[8];

/*============================================================================= */

int		ticremainder[MAXPLAYERS]; // 800A5E70

/*
===============================================================================

PSPRITE ACTIONS

===============================================================================
*/

weaponinfo_t	weaponinfo[NUMWEAPONS] = // 8005AD80
{
    {	/* saw */
/* ammo 		*/	am_noammo,
/* upstate 		*/	S_708,//S_SAWUP,
/* downstate 	*/	S_707,//S_SAWDOWN,
/* readystate 	*/	S_705,//S_SAW,
/* atkstate 	*/	S_709,//S_SAW1,
/* flashstate 	*/	S_000 //S_NULL
	},

	{	/* fist */
/* ammo 		*/	am_noammo,
/* upstate 		*/	S_714,//S_PUNCHUP,
/* downstate 	*/	S_713,//S_PUNCHDOWN,
/* readystate 	*/	S_712,//S_PUNCH,
/* atkstate 	*/	S_715,//S_PUNCH1,
/* flashstate 	*/	S_000 //S_NULL
	},

	{	/* pistol */
/* ammo 		*/	am_clip,
/* upstate 		*/	S_722,//S_PISTOLUP,
/* downstate 	*/	S_721,//S_PISTOLDOWN,
/* readystate 	*/	S_720,//S_PISTOL,
/* atkstate 	*/	S_724,//S_PISTOL2,
/* flashstate 	*/	S_728 //S_PISTOLFLASH
	},

	{	/* shotgun */
/* ammo 		*/	am_shell,
/* upstate 		*/	S_731,//S_SGUNUP,
/* downstate 	*/	S_730,//S_SGUNDOWN,
/* readystate 	*/	S_729,//S_SGUN,
/* atkstate 	*/	S_733,//S_SGUN2,
/* flashstate 	*/	S_738 //S_SGUNFLASH1
	},

    {	/* super shotgun */
/* ammo 		*/	am_shell,
/* upstate 		*/	S_741,//S_DSGUNUP,
/* downstate 	*/	S_740,//S_DSGUNDOWN,
/* readystate 	*/	S_739,//S_DSGUN,
/* atkstate 	*/	S_742,//S_DSGUN1,
/* flashstate 	*/	S_752 //S_DSGUNFLASH1
    },

	{	/* chaingun */
/* ammo 		*/	am_clip,
/* upstate 		*/	S_755,//S_CHAINUP,
/* downstate 	*/	S_754,//S_CHAINDOWN,
/* readystate 	*/	S_753,//S_CHAIN,
/* atkstate 	*/	S_756,//S_CHAIN1,
/* flashstate 	*/	S_759 //S_CHAINFLASH1
	},

	{	/* missile */
/* ammo 		*/	am_misl,
/* upstate 		*/	S_763,//S_MISSILEUP,
/* downstate 	*/	S_762,//S_MISSILEDOWN,
/* readystate 	*/	S_761,//S_MISSILE,
/* atkstate 	*/	S_764,//S_MISSILE1,
/* flashstate 	*/	S_767 //S_MISSILEFLASH1
	},

	{	/* plasma */
/* ammo 		*/	am_cell,
/* upstate 		*/	S_773,//S_PLASMAUP,
/* downstate 	*/	S_772,//S_PLASMADOWN,
/* readystate 	*/	S_771,//S_PLASMA,
/* atkstate 	*/	S_775,//S_PLASMA1,
/* flashstate 	*/	S_000 //S_NULL
	},

	{	/* bfg */
/* ammo 		*/	am_cell,
/* upstate 		*/	S_783,//S_BFGUP,
/* downstate 	*/	S_782,//S_BFGDOWN,
/* readystate 	*/	S_781,//S_BFG,
/* atkstate 	*/	S_784,//S_BFG1,
/* flashstate 	*/	S_788 //S_BFGFLASH1
	},

    {	/* laser rifle */
/* ammo 		*/	am_cell,
/* upstate 		*/	S_793,//S_LASERUP,
/* downstate 	*/	S_792,//S_LASERDOWN,
/* readystate 	*/	S_791,//S_LASER,
/* atkstate 	*/	S_794,//S_LASER1,
/* flashstate 	*/	S_796 //S_LASERFLASH
	}
};

