*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@187 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-02-26 19:11:13 +00:00
parent 5b5c7deddb
commit 0aceb28110
8 changed files with 111 additions and 981 deletions
+14 -5
View File
@@ -26,6 +26,8 @@ guninfo guns[NUMGUNS] =
{ S_GRENADE, S_NULL, 1000, 2000, 150, 20, 6, 1, 1, 1, 3, 1, "grenade" },
};
bool gun_changed = false;
//weapon selection
void wup()
@@ -37,7 +39,9 @@ void wup()
else if(player1->gunselect==player1->primary)
player1->gunselect=GUN_KNIFE;
conoutf("%s selected", (int)guns[player1->gunselect].name);
conoutf("%s selected", (int)guns[player1->gunselect].name);
gun_changed = true;
};
void wdw()
@@ -49,22 +53,27 @@ void wdw()
else if(player1->gunselect==GUN_PISTOL)
player1->gunselect=GUN_KNIFE;
conoutf("%s selected", (int)guns[player1->gunselect].name);
conoutf("%s selected", (int)guns[player1->gunselect].name);
gun_changed = true;
};
void primary()
{
player1->gunselect=player1->primary;
player1->gunselect=player1->primary;
gun_changed = true;
};
void secondary()
{
player1->gunselect=GUN_PISTOL;
player1->gunselect=GUN_PISTOL;
gun_changed = true;
};
void melee()
{
player1->gunselect=GUN_KNIFE;
player1->gunselect=GUN_KNIFE;
gun_changed = true;
};
COMMAND(primary,ARG_NONE);