no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1106 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-06-03 19:00:34 +00:00
parent 6708989a51
commit 1299989969
2 changed files with 4 additions and 7 deletions
+3 -6
View File
@@ -460,6 +460,7 @@ void thrownade(playerent *d, const vec &vel, bounceent *p)
p->vel = vel;
p->o.add(dir);
p->o.add(d->o);
loopi(10) moveplayer(p, 10, true, 10);
p->bouncestate = NADE_THROWED;
d->thrownademillis = lastmillis;
@@ -481,10 +482,6 @@ void thrownade(playerent *d, bounceent *p)
thrownade(d, vel, p);
}
// fixme release
VAR(grenadespeed, 0, 27, 100);
VAR(grenaderot, 0, 60, 100);
bounceent *new_nade(playerent *d, int millis = 0)
{
bounceent *p = newbounceent();
@@ -492,8 +489,8 @@ bounceent *new_nade(playerent *d, int millis = 0)
p->millis = lastmillis;
p->timetolife = 2000-millis;
p->bouncestate = NADE_ACTIVATED;
p->maxspeed = (float)grenadespeed;
p->rotspeed = grenaderot/10.0f;
p->maxspeed = 27.0f;
p->rotspeed = 6.0f;
d->inhandnade = p;
d->thrownademillis = 0;