X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FWeapons.cpp;h=a771989102ce77b6d3fdc736611db052f7667e29;hb=9ecb4e37407173333b466b42276a1764589505f0;hp=df2c6cfe35dc736fb4b78cdcc49bceabc8ee3f32;hpb=8a1a91c0a10a37799dc95d423f9db8dc5ff7b965;p=lugaru.git diff --git a/Source/Weapons.cpp b/Source/Weapons.cpp index df2c6cf..a771989 100644 --- a/Source/Weapons.cpp +++ b/Source/Weapons.cpp @@ -108,15 +108,12 @@ void Weapon::DoStuff() { static float elasticity=.4; static XYZ bounceness; static float frictionness; - static float moveamount; - int closestline; static float closestdistance; static float distance; static XYZ point[3]; static XYZ closestpoint; static XYZ closestswordpoint; static XYZ extramove; - static float proportion; static float tempmult; if(owner!=-1){ @@ -218,7 +215,6 @@ void Weapon::DoStuff() { footpoint=DoRotation((player[j].skeleton.joints[player[j].skeleton.jointlabels[abdomen]].position+player[j].skeleton.joints[player[j].skeleton.jointlabels[neck]].position)/2,0,player[j].rotation,0)*player[j].scale+player[j].coords; if(owner==-1&&findDistancefastflat(&position,&player[j].coords)<1.5&&findDistancefast(&position,&player[j].coords)<4&&player[j].weaponstuck==-1&&!player[j].skeleton.free&&j!=oldowner){ if((player[j].aitype!=attacktypecutoff||abs(Random()%6)==0||(player[j].targetanimation!=backhandspringanim&&player[j].targetanimation!=rollanim&&player[j].targetanimation!=flipanim&&Random()%2==0))&&!missed){ - bool caught=0; if((player[j].creature==wolftype&&Random()%3!=0&&player[j].weaponactive==-1&&(player[j].isIdle()||player[j].isRun()||player[j].targetanimation==walkanim))||(player[j].creature==rabbittype&&Random()%2==0&&player[j].aitype==attacktypecutoff&&player[j].weaponactive==-1)){ emit_sound_at(knifedrawsound, player[j].coords, 128.); @@ -310,7 +306,6 @@ void Weapon::DoStuff() { glPopMatrix(); position-=tippoint*.15; XYZ temppoint1,temppoint2,tempforward; - float distance; rotation3=0; smallrotation=90; @@ -566,19 +561,16 @@ void Weapon::DoStuff() { if(distance