fixup! First attempt at AssaultWeapon animations!
This commit is contained in:
@@ -103,7 +103,7 @@ void AssaultWeaponBehaviour::OnReload(ComponentWrapper cWeapon, WeaponInfo& wi)
|
|||||||
// Play animation
|
// Play animation
|
||||||
EntityWrapper modelEntity = wi.FirstPersonEntity.Parent().Parent();
|
EntityWrapper modelEntity = wi.FirstPersonEntity.Parent().Parent();
|
||||||
if (modelEntity.Valid()) {
|
if (modelEntity.Valid()) {
|
||||||
EntityWrapper blendTree = modelEntity.FirstChildByName("PrimaryBlendTree");
|
EntityWrapper blendTree = modelEntity.FirstChildByName("AssaultWeaponBlendTree");
|
||||||
EntityWrapper reloadBlend = blendTree.FirstChildByName("Reload");
|
EntityWrapper reloadBlend = blendTree.FirstChildByName("Reload");
|
||||||
|
|
||||||
Events::AutoAnimationBlend eFireBlend;
|
Events::AutoAnimationBlend eFireBlend;
|
||||||
|
|||||||
Reference in New Issue
Block a user