Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (mouseJoint != null)
- {
- if (Std.is(_owner.attacker,Player))
- {
- trace("checkpoint 1");
- var ragdollPlayer:Player = cast(_owner.attacker, Player);
- var chainsaw_muzzle:Bone = ragdollPlayer.spine.skeleton.findBone("muzzle");
- bone_src.x = chainsaw_muzzle.worldX;
- bone_src.y = chainsaw_muzzle.worldY;
- trace("checkpoint 2");
- mouseJoint.anchor1 = new Vec2(bone_src.x, bone_src.y);
- trace("checkpoint 3");
- uTorso.body.allowRotation = false;
- head.body.allowRotation = false;
- if (mouseJoint.space != null)
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement