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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user