physics
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@859 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user