git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@859 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-03-23 20:54:48 +00:00
parent c423ba443e
commit b55b306207
2 changed files with 9 additions and 7 deletions
+7 -5
View File
@@ -353,12 +353,14 @@ void throw_nade(playerent *d, const vec &vel, bounceent *p)
if(!p || !d) return;
playsound(S_GRENADETHROW);
vec throwdir(p->vel = vel);
throwdir.mul(2*d->radius);
p->o = d->o;
p->o.add(throwdir);
p->bouncestate = NADE_THROWED;
vec throwvel(vel);
throwvel.mul(2*d->radius);
p->vel = vel;
p->o = d->o;
p->o.add(throwvel);
p->bouncestate = NADE_THROWED;
d->thrownademillis = lastmillis;
d->inhandnade = NULL;