sg gib, more restrictive (only gibs at max damage)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5235 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-06-25 21:23:24 +00:00
parent b940559da2
commit 35a9cd7d7c
+1 -1
View File
@@ -67,7 +67,7 @@ void processevent(client *c, shotevent &e)
int damage = rays*guns[e.gun].damage;
bool gib = false;
if(e.gun==GUN_KNIFE || (e.gun==GUN_SHOTGUN && damage >= 100)) gib = true;
if(e.gun==GUN_KNIFE || (e.gun==GUN_SHOTGUN && rays==maxrays)) gib = true;
else if(e.gun==GUN_SNIPER) gib = h.info!=0;
if(e.gun==GUN_SNIPER && gib) damage *= 3;
serverdamage(target, c, damage, e.gun, gib, h.dir);