Added carry mode CARRY_Sword. Similar to CARRY_Belt but attached to a bone which doesn't move while running.

qteditor
Clonkonaut 2016-08-05 01:08:03 +02:00
parent 4bd48242cf
commit 70b124c9d4
1 changed files with 5 additions and 0 deletions

View File

@ -459,6 +459,10 @@ func DoUpdateAttach(bool sec)
else trans = Trans_Mul(Trans_Rotate(160,0,0,1), Trans_Rotate(5,0,1), Trans_Rotate(30,1), Trans_Translate(-2500,0,800), Trans_Scale(700));
iHandMesh[sec] = AttachMesh(obj, pos_belt, bone, trans);
}
else if(iAttachMode == CARRY_Sword)
{
iHandMesh[sec] = AttachMesh(obj, "skeleton_hips", bone, trans);
}
}
public func GetHandMesh(object obj)
@ -479,6 +483,7 @@ static const CARRY_Spear = 6;
static const CARRY_Musket = 7;
static const CARRY_Grappler = 8;
static const CARRY_Belt = 9;
static const CARRY_Sword = 10;
func HasHandAction(sec, just_wear, bool force_landscape_letgo)
{