Update Control Rig to Use Inverse Kinematics
This commit is contained in:
parent
d932cd7e70
commit
975818c157
BIN
EndlessVendetta/Content/AI/Enemy/Basic/BP_BasicEnemyCharacter.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/AI/Enemy/Basic/BP_BasicEnemyCharacter.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/Characters/Mannequins/Meshes/SK_Mannequin.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/Characters/Mannequins/Meshes/SK_Mannequin.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/Characters/Mannequins/Rigs/CR_Mannequin_BasicFootIK.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/Characters/Mannequins/Rigs/CR_Mannequin_BasicFootIK.uasset
(Stored with Git LFS)
Binary file not shown.
@ -59,10 +59,15 @@ void AEnemyCharacter::SetLocalAlertLevel(int NewAlertLevel) const
|
|||||||
DelegatedControlHub->SetAlertLevel(NewAlertLevel);
|
DelegatedControlHub->SetAlertLevel(NewAlertLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AEnemyCharacter::EquipWeapon_Implementation()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void AEnemyCharacter::HuntPlayer(FVector PlayerLastKnownLocation)
|
void AEnemyCharacter::HuntPlayer(FVector PlayerLastKnownLocation)
|
||||||
{
|
{
|
||||||
if (!IsValid(this)) return;
|
if (!IsValid(this)) return;
|
||||||
if (!IsValid(GetController())) return;
|
if (!IsValid(GetController())) return;
|
||||||
SetAlertLevel(2);
|
SetAlertLevel(2);
|
||||||
|
EquipWeapon();
|
||||||
Cast<AAIController>(GetController())->GetBlackboardComponent()->SetValueAsVector("LastKnownLocation", PlayerLastKnownLocation);
|
Cast<AAIController>(GetController())->GetBlackboardComponent()->SetValueAsVector("LastKnownLocation", PlayerLastKnownLocation);
|
||||||
}
|
}
|
||||||
|
@ -29,6 +29,10 @@ public:
|
|||||||
void SubscribeToGroupAIEvents(class AAIControlHub* ControlHub);
|
void SubscribeToGroupAIEvents(class AAIControlHub* ControlHub);
|
||||||
void SetLocalAlertLevel(int NewAlertLevel) const;
|
void SetLocalAlertLevel(int NewAlertLevel) const;
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintNativeEvent)
|
||||||
|
void EquipWeapon();
|
||||||
|
virtual void EquipWeapon_Implementation();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
FDelegateHandle AlertLevelDelegateHandle;
|
FDelegateHandle AlertLevelDelegateHandle;
|
||||||
FDelegateHandle HuntPlayerDelegateHandle;
|
FDelegateHandle HuntPlayerDelegateHandle;
|
||||||
|
Loading…
Reference in New Issue
Block a user