spectator fixes, recoil tuning

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1450 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-12-01 17:34:05 +00:00
parent 5b7890d820
commit e63d35c4c0
6 changed files with 33 additions and 22 deletions
+1 -1
View File
@@ -705,7 +705,7 @@ void spreadandrecoil(vec &from, vec &to, playerent *d)
}
// kickback
d->vel.add(vec(unitv).mul(rcl/dist).mul(d->crouching ? 0.5 : 1.0f));
d->vel.add(vec(unitv).mul(rcl/dist).mul(d->crouching ? 0.75 : 1.0f));
// recoil
d->pitchvel = min(pow(d->shots/(float)(g.recoilincrease), 2.0f)+(float)(g.recoilbase)/10.0f, (float)(g.maxrecoil)/10.0f);