better looking bullet holes distribution with shotgun

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7503 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2013-06-27 22:33:05 +00:00
parent 1fd084441a
commit 30ed9eba7b
+1 -8
View File
@@ -1300,14 +1300,7 @@ void shotgun::attackfx(const vec &from, const vec &to, int millis)
loopi(SGRAYS) particle_splash(PART_SPARK, 5, 200, sgr[i].rv);
if(addbullethole(owner, from, to))
{
loopk(3)
{
int holes = 1+rnd(3);
loopi(holes) addbullethole(owner, from, sgr[k*SGRAYS+i].rv, 0, false);
}
}
loopk(3) loopi(3) addbullethole(owner, from, sgr[k*SGRAYS+i*SGRAYS/3].rv, 0, false);
adddynlight(owner, from, 4, 100, 50, 96, 80, 64);
attacksound();
}