// weapon.cpp: all shooting and effects code
#include "cube.h"
struct guninfo { short sound, attackdelay, damage, projspeed, part; char *name; };
const int MONSTERDAMAGEFACTOR = 4;
const int SGRAYS = 20;
const float SGSPREAD = 2;
vec sg[SGRAYS];
guninfo guns[NUMGUNS] =
{
{ S_PUNCH1, 250, 50, 0, 0, "fist" },
{ S_SG, 1400, 10, 0, 0, "shotgun" }, // *SGRAYS
{ S_CG, 100, 30, 0, 0, "chaingun" },
{ S_RLFIRE, 800, 120, 80, 0, "rocketlauncher" },
{ S_RIFLE, 1500, 100, 0, 0, "rifle" },
{ S_FLAUNCH, 200, 20, 50, 4, "slimeball" },
{ S_ICEBALL, 200, 40, 30, 6, "iceball" },
{ S_SLIMEBALL, 200, 30, 160, 7, "slimeball" },
{ S_PIGR1, 250, 50, 0, 0, "bite" },
};
this is from the source.zip+weapon.cpp so wheres the real weapon file?
|