crouch footstep fixes, weapon fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1563 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-01-04 20:26:37 +00:00
parent be7e421c88
commit cc585999b0
6 changed files with 49 additions and 57 deletions
+6 -2
View File
@@ -718,7 +718,11 @@ struct grenades : weapon
0);
playsound(S_GRENADEPULL);
}
else if(inhandnade && attackmillis>info.attackdelay && (!owner->attacking || !inhandnade->isalive(lastmillis))) thrownade();
else if(inhandnade && attackmillis>info.attackdelay && (!owner->attacking || !inhandnade->isalive(lastmillis)))
{
vec n(0,0,0);
thrownade(owner->o, n, inhandnade);
}
return true;
}
@@ -792,7 +796,7 @@ struct grenades : weapon
bool selectable() { return weapon::selectable() && !inhand() && mag; }
void reset() { throwmillis = 0; }
void onselecting() { reset(); }
void onselecting() { reset(); playsound(S_GUNCHANGE); }
//void onammopicked() { reset(); }
void onownerdies()
{