Fixed AI and Shot Collision Issues
This commit is contained in:
parent
fbff6fdd62
commit
ebb981646d
BIN
EndlessVendetta/Content/AI/Enemy/Basic/BP_BasicEnemyCharacterSwat.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/AI/Enemy/Basic/BP_BasicEnemyCharacterSwat.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/AI/PartyCrowd/Base/BP_PartyArea.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/AI/PartyCrowd/Base/BP_PartyArea.uasset
(Stored with Git LFS)
Binary file not shown.
Binary file not shown.
BIN
EndlessVendetta/Content/BountySystem/ControlsTutorial/GunRangeMechanics/Target/BP_Target.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/BountySystem/ControlsTutorial/GunRangeMechanics/Target/BP_Target.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/Gadgets/CombatGadgets/HeatBlast/CG_HeatBlast.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/Gadgets/CombatGadgets/HeatBlast/CG_HeatBlast.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/Levels/Apartment_hit.umap
(Stored with Git LFS)
BIN
EndlessVendetta/Content/Levels/Apartment_hit.umap
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/StarterContent/Architecture/Floor_400x400.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/StarterContent/Architecture/Floor_400x400.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/StarterContent/Particles/P_Ambient_Dust.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/StarterContent/Particles/P_Ambient_Dust.uasset
(Stored with Git LFS)
Binary file not shown.
@ -37,7 +37,7 @@ EBTNodeResult::Type UBTTask_AttackPlayer::ExecuteTask(UBehaviorTreeComponent& Ow
|
||||
FCollisionObjectQueryParams ObjectQueryParams;
|
||||
ObjectQueryParams.AddObjectTypesToQuery(ECC_Pawn);
|
||||
ObjectQueryParams.AddObjectTypesToQuery(ECC_WorldStatic);
|
||||
ObjectQueryParams.AddObjectTypesToQuery(ECC_WorldDynamic);
|
||||
//ObjectQueryParams.AddObjectTypesToQuery(ECC_WorldDynamic);
|
||||
if (FHitResult HitResult; GetWorld()->LineTraceSingleByObjectType(HitResult, Start, End, ObjectQueryParams, QueryParams))
|
||||
{
|
||||
if (IsValid(HitResult.GetActor()))
|
||||
|
@ -188,7 +188,7 @@ void ABaseWeaponClass::Fire()
|
||||
FCollisionObjectQueryParams ObjectQueryParams;
|
||||
ObjectQueryParams.AddObjectTypesToQuery(ECC_Pawn);
|
||||
ObjectQueryParams.AddObjectTypesToQuery(ECC_WorldStatic);
|
||||
ObjectQueryParams.AddObjectTypesToQuery(ECC_WorldDynamic);
|
||||
//ObjectQueryParams.AddObjectTypesToQuery(ECC_WorldDynamic);
|
||||
GetWorld()->LineTraceSingleByObjectType(outHit, traceStart, traceEnd, ObjectQueryParams, collisionParams);
|
||||
WeaponFired.Broadcast();
|
||||
playerControllerRef->PlayerCameraManager->StartCameraShake(CameraShakeClass, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user