akimbo pistols added

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@236 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
arghvark
2006-03-27 21:41:12 +00:00
parent 153464c848
commit 4ffef7d66a
5 changed files with 54 additions and 30 deletions
+8 -9
View File
@@ -155,7 +155,7 @@ void localservertoclient(uchar *buf, int len) // processes any updates from th
else // new client
{
c2sinit = false; // send new players my info again
conoutf("connected: %s", (int)&text);
conoutf("connected: %s", (int)&text);
gun_changed = true;
};
strcpy_s(d->name, text);
@@ -183,7 +183,7 @@ void localservertoclient(uchar *buf, int len) // processes any updates from th
e.y = getint(p)/DMF;
e.z = getint(p)/DMF;
if(gun==GUN_SHOTGUN) createrays(s, e);
int nademillis = 2000/100*getint(p);
int nademillis = 2000/100*getint(p);
if(nademillis<0 || nademillis>100) nademillis = 100;
printf("nadesec: %i\n", nademillis);
shootv(gun, s, e, d, nademillis);
@@ -257,7 +257,6 @@ void localservertoclient(uchar *buf, int len) // processes any updates from th
setspawn(i, true);
if(i>=ents.length()) break;
vec v = { ents[i].x, ents[i].y, ents[i].z };
playsound(S_ITEMSPAWN, &v);
break;
};
@@ -335,12 +334,12 @@ void localservertoclient(uchar *buf, int len) // processes any updates from th
p += mapsize;
changemapserv(text, gamemode);
break;
};
case SV_WEAPCHANGE:
{
players[cn]->gunselect = getint(p);
break;
};
case SV_WEAPCHANGE:
{
players[cn]->gunselect = getint(p);
break;
};
case SV_SERVMSG: