no bullethole sounds for local player

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2021 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-05-17 21:01:18 +00:00
parent bd7d14b807
commit 5e9c27405e
4 changed files with 9 additions and 10 deletions
+4 -4
View File
@@ -809,7 +809,7 @@ bool gun::attack(vec &targ)
void gun::attackfx(const vec &from, const vec &to, int millis)
{
addbullethole(from, to);
addbullethole(owner, from, to);
addshotline(owner, from, to);
particle_splash(0, 5, 250, to);
attacksound();
@@ -834,10 +834,10 @@ bool shotgun::attack(vec &targ)
void shotgun::attackfx(const vec &from, const vec &to, int millis)
{
loopi(SGRAYS) particle_splash(0, 5, 200, sg[i]);
if(addbullethole(from, to))
if(addbullethole(owner, from, to))
{
int holes = 3+rnd(5);
loopi(holes) addbullethole(from, sg[i], 0, false);
loopi(holes) addbullethole(owner, from, sg[i], 0, false);
}
attacksound();
}
@@ -857,7 +857,7 @@ sniperrifle::sniperrifle(playerent *owner) : gun(owner, GUN_SNIPER), scoped(fals
void sniperrifle::attackfx(const vec &from, const vec &to, int millis)
{
addbullethole(from, to);
addbullethole(owner, from, to);
addshotline(owner, from, to);
particle_splash(0, 50, 200, to);
particle_trail(1, 500, from, to);