bullet sounds
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1780 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+4
-4
@@ -1,8 +1,9 @@
|
||||
registersound "player/jump" //S_JUMP
|
||||
registersound "player/step" 60 // S_SOFTLAND
|
||||
registersound "player/land" 40 // S_HARDLAND
|
||||
registersound "weapon/clip_empty" // S_BULLETBOUNCE TODO:NEW SOUND
|
||||
registersound "weapon/clip_empty" // S_BULLETAIR TODO:NEW SOUND
|
||||
registersound "weapon/ric1" // S_BULLETAIR1
|
||||
registersound "weapon/ric2" // S_BULLETAIR2
|
||||
registersound "weapon/ric3" // S_BULLETHIT
|
||||
registersound "weapon/knife" //S_KNIFE
|
||||
registersound "weapon/usp" //S_PISTOL
|
||||
registersound "weapon/pistol_reload" //S_RPISTOL
|
||||
@@ -28,8 +29,7 @@ registersound "player/pain5" //S_PAIN5
|
||||
registersound "player/pain6" //S_PAIN6
|
||||
registersound "player/die1" //S_DIE1
|
||||
registersound "player/die2" //S_DIE2
|
||||
//registersound "weapon/grenade_exp" //S_FEXPLODE
|
||||
registersound "ctf/flagscore" //S_FEXPLODE
|
||||
registersound "weapon/grenade_exp" //S_FEXPLODE
|
||||
registersound "player/splash1" //S_SPLASH1
|
||||
registersound "player/splash2" //S_SPLASH2
|
||||
registersound "ctf/flagdrop" //S_FLAGDROP
|
||||
|
||||
@@ -612,7 +612,7 @@ bool addbullethole(vec &from, vec &to, float radius, bool noisy)
|
||||
o.add(ray.mul(dist));
|
||||
o.add(vec(surface).mul(0.005f));
|
||||
newparticle(o, surface, bulletholettl, 7);
|
||||
if(noisy && bulletbouncesoundrad && o.dist(camera1->o) <= bulletbouncesoundrad) playsound(S_BULLETBOUNCE, NULL, NULL, &o);
|
||||
if(noisy && bulletbouncesoundrad && o.dist(camera1->o) <= bulletbouncesoundrad) playsound(S_BULLETHIT, NULL, NULL, &o);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -660,6 +660,6 @@ void addshotline(dynent *pl, vec &from, vec &to)
|
||||
soundpos.mul(fd/(fd+td)*dist);
|
||||
soundpos.add(from);
|
||||
if(soundpos.dist(camera1->o) > bulletairsoundrad) return; // outside player radius
|
||||
playsound(S_BULLETAIR, NULL, NULL, &soundpos);
|
||||
playsound(S_BULLETAIR1 + rnd(2), NULL, NULL, &soundpos);
|
||||
}
|
||||
|
||||
|
||||
@@ -702,9 +702,8 @@ void playsoundname(char *s, const vec *loc, int vol)
|
||||
if(id < 0) id = addsound(s, vol, 0, false, gamesounds);
|
||||
playsound(id, NULL, NULL, loc);
|
||||
}
|
||||
COMMAND(playsoundname, ARG_3STR);
|
||||
|
||||
void sound(int *n) { playsound(*n); }
|
||||
void sound(int n) { playsound(n); }
|
||||
COMMAND(sound, ARG_1INT);
|
||||
|
||||
void playsoundc(int n)
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ enum
|
||||
{
|
||||
S_JUMP = 0,
|
||||
S_SOFTLAND, S_HARDLAND,
|
||||
S_BULLETBOUNCE, S_BULLETAIR,
|
||||
S_BULLETAIR1, S_BULLETAIR2, S_BULLETHIT,
|
||||
S_KNIFE,
|
||||
S_PISTOL, S_RPISTOL,
|
||||
S_SHOTGUN, S_RSHOTGUN,
|
||||
|
||||
Reference in New Issue
Block a user