bounce sound for grenades

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2072 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-05-20 20:43:29 +00:00
parent cfc2d63970
commit 445e691331
5 changed files with 11 additions and 5 deletions
+1 -2
View File
@@ -548,7 +548,6 @@ grenadeent::grenadeent (playerent *owner, int millis)
bouncetype = BT_NADE;
maxspeed = 27.0f;
rotspeed = 6.0f;
}
void grenadeent::explode()
@@ -625,7 +624,7 @@ void grenadeent::moveoutsidebbox(const vec &direction, playerent *boundingbox)
void grenadeent::destroy() { explode(); }
bool grenadeent::applyphysics() { return nadestate==NS_THROWED; }
void grenadeent::oncollision() { if(nadestate==NS_THROWED) playsound(S_GRENADEBOUNCE1+rnd(2), this, 0, 0); }
// grenades