don't try to emit particles for grenades/knife

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2510 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-11 00:27:24 +00:00
parent e53f139dae
commit a3dba70c16
2 changed files with 8 additions and 1 deletions
+4
View File
@@ -692,6 +692,8 @@ void grenadeent::onmoved(const vec &dist)
grenades::grenades(playerent *owner) : weapon(owner, GUN_GRENADE), inhandnade(NULL), throwwait((13*1000)/40), throwmillis(0), state(GST_NONE) {}
int grenades::flashtime() const { return 0; }
bool grenades::busy() { return state!=GST_NONE; }
bool grenades::attack(vec &targ)
@@ -1008,6 +1010,8 @@ bool akimbo::timerout() { return akimbomillis && akimbomillis <= lastmillis; }
knife::knife(playerent *owner) : weapon(owner, GUN_KNIFE) {}
int knife::flashtime() const { return 0; }
bool knife::attack(vec &targ)
{
int attackmillis = lastmillis-owner->lastaction;