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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user