*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@277 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-04-27 15:34:37 +00:00
parent ce88203921
commit 0509ed6031
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -456,9 +456,10 @@ struct weaponmove
if(player1->gunselect==player1->lastattackgun)
{
int percent_done = timediff*100/attackdelay(player1->gunselect);
int animtime = /*throwingnade ? 5000 : */attackdelay(player1->gunselect);
int percent_done = timediff*100/animtime;
if(percent_done > 100) percent_done = 100.0;
// f(x) = -sin(x-1.5)^3A
// f(x) = -sin(x-1.5)^3
kick = -sin(pow((1.5f/100*percent_done)-1.5f,3));
};