serverside shotgun checks, addban function

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7017 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2012-12-31 03:26:52 +00:00
parent 251e9f10b3
commit 43ab63a88a
5 changed files with 54 additions and 17 deletions
+2 -1
View File
@@ -661,7 +661,8 @@ void raydamage(vec &from, vec &to, playerent *d)
lastsgs_hits = numhits;
lastsgs_dmgt = dmgreal;
// conoutf("%d [%.3f%s] DMG with %d hits", lastsgs_dmgt, dmg4r, withBONUS ? "\fs\f3+\fr" : "", lastsgs_hits);
if(numhits) hitpush( dmgreal, o, d, from, to, d->weaponsel->type, lastsgs_hits == SGRAYS*3, dmgreal | (lastsgs_hits << 8));
int info = (withBONUS ? SGDMGBONUS : 0) | (numhits_c << 8) | (numhits_m << 16) | (numhits_o << 24);
if(numhits) hitpush( dmgreal, o, d, from, to, d->weaponsel->type, lastsgs_hits == SGRAYS*3, isbigendian() ? endianswap(info) : info);
// if(numhits) hitpush( dmgreal, o, d, from, to, d->weaponsel->type, dmgreal == SGMAXDMGABS, dmgreal);
if(d==player1) hitted = true;