Saurbraten Cube 2 question
Posted: December 22nd, 2010, 5:41 am
Yea I know this is related to sandbox, but I wasn't sure where to put it so I decided to stick it here.
Basically I have been trying, instead of coding my own guns anew, simply heavily editing saurbraten and replacing its guns and models with mine.
Is this possible? I mean my plan to begin with is to dramatically increase the kickback of a particular gun, along with its damage. I dont know how this would effect me playing online: whether I'd have awesome beefed out guns, I couldnt play online, or that I simply couldnt edit the game at all.
Anyway I had a look in game.h and I found this line:
static const struct guninfo { short sound, attackdelay, damage, projspeed, part, kickamount, range; const char *name, *file; } guns[NUMGUNS] =
{
{ S_PUNCH1, 250, 50, 0, 0, 0, 14, "fist", "fist" },
{ S_SG, 1400, 10, 0, 0, 20, 1024, "shotgun", "shotg" }, // *SGRAYS
{ S_CG, 100, 30, 0, 0, 7, 1024, "chaingun", "chaing"},
{ S_RLFIRE, 800, 120, 80, 0, 10, 1024, "rocketlauncher", "rocket"},
{ S_RIFLE, 1500, 100, 0, 0, 30, 2048, "rifle", "rifle" },
{ S_FLAUNCH, 500, 75, 80, 0, 10, 1024, "grenadelauncher", "gl" },
{ S_PISTOL, 500, 25, 0, 0, 9000, 1024, "pistol", "pistol" },
{ S_FLAUNCH, 200, 20, 50, PART_FIREBALL1, 1, 1024, "fireball", NULL },
{ S_ICEBALL, 200, 40, 30, PART_FIREBALL2, 1, 1024, "iceball", NULL },
{ S_SLIMEBALL, 200, 30, 160, PART_FIREBALL3, 1, 1024, "slimeball", NULL },
{ S_PIGR1, 250, 50, 0, 0, 1, 12, "bite", NULL },
{ -1, 0, 120, 0, 0, 0, 0, "barrel", NULL }
};
So I tried to change one of the values in the list (i.e. the 9000 part for the pistol) However apparently this file has no effect on gameplay at all... When I saved this and entered the game NOTHING changed.
I got confused - can anyone help?
Thanks a lot,
Owen.
Basically I have been trying, instead of coding my own guns anew, simply heavily editing saurbraten and replacing its guns and models with mine.
Is this possible? I mean my plan to begin with is to dramatically increase the kickback of a particular gun, along with its damage. I dont know how this would effect me playing online: whether I'd have awesome beefed out guns, I couldnt play online, or that I simply couldnt edit the game at all.
Anyway I had a look in game.h and I found this line:
static const struct guninfo { short sound, attackdelay, damage, projspeed, part, kickamount, range; const char *name, *file; } guns[NUMGUNS] =
{
{ S_PUNCH1, 250, 50, 0, 0, 0, 14, "fist", "fist" },
{ S_SG, 1400, 10, 0, 0, 20, 1024, "shotgun", "shotg" }, // *SGRAYS
{ S_CG, 100, 30, 0, 0, 7, 1024, "chaingun", "chaing"},
{ S_RLFIRE, 800, 120, 80, 0, 10, 1024, "rocketlauncher", "rocket"},
{ S_RIFLE, 1500, 100, 0, 0, 30, 2048, "rifle", "rifle" },
{ S_FLAUNCH, 500, 75, 80, 0, 10, 1024, "grenadelauncher", "gl" },
{ S_PISTOL, 500, 25, 0, 0, 9000, 1024, "pistol", "pistol" },
{ S_FLAUNCH, 200, 20, 50, PART_FIREBALL1, 1, 1024, "fireball", NULL },
{ S_ICEBALL, 200, 40, 30, PART_FIREBALL2, 1, 1024, "iceball", NULL },
{ S_SLIMEBALL, 200, 30, 160, PART_FIREBALL3, 1, 1024, "slimeball", NULL },
{ S_PIGR1, 250, 50, 0, 0, 1, 12, "bite", NULL },
{ -1, 0, 120, 0, 0, 0, 0, "barrel", NULL }
};
So I tried to change one of the values in the list (i.e. the 9000 part for the pistol) However apparently this file has no effect on gameplay at all... When I saved this and entered the game NOTHING changed.
I got confused - can anyone help?
Thanks a lot,
Owen.