X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.cpp;h=b2bb052e035868fe2ef559d6834e0272c7c2a150;hb=cfdbe0ad0521045b27a60dbb1c963ea6dfdcda5a;hp=bb99362f7e241d59b21f19de7c671a1df06ece5e;hpb=3b278cb284afd5c1538bbd8564f714a576469311;p=lugaru.git diff --git a/Source/Person.cpp b/Source/Person.cpp index bb99362..b2bb052 100644 --- a/Source/Person.cpp +++ b/Source/Person.cpp @@ -400,9 +400,7 @@ void Person::DoBloodBig(float howmuch,int which){ offsetx=Random()%20; } if(which==220||which==215){ - //offsety=Random()%20; offsetx=20; - //offsetx=abs(Random()%80); } @@ -1443,6 +1441,15 @@ void Person::Puff(int whichlabel){ Sprite::MakeSprite(cloudimpactsprite, footpoint,footvel, 1,1,1, .9, .3); } +Joint& Person::getJointFor(int bodypart) { + return skeleton.joints[skeleton.jointlabels[bodypart]]; +} + +void Person::setAnimation(int animation) { + targetanimation=animation; + targetframe=0; + target=0; +} void Person::DoAnimations(){ if(!skeleton.free){