🎯
Pro Aim Assist
  • Main Setup
  • Updates
    • 1.0 Hotfix
  • Lyra's Integration
Powered by GitBook
On this page

Lyra's Integration

Previous1.0 Hotfix

Last updated 2 years ago

USE IT ONLY IF YOU ARE AN EXPERIENCED C++ PROGRAMMER

All made changes for integration in Lyra project:

In ULyraGameplayAbility_RangedWeapon::PerformLocalTargeting added targeting for aim assist

	...
	if (const auto aimAssist = AvatarPawn->Controller->FindComponentByClass<UUASAimAssistComponent>())
	{
		const auto rot = aimAssist->GetRotationToCrosshairDirection(InputData.StartTrace, TEXT("AimAssistObstaclesCheck"));
		InputData.AimDir = rot.Vector();
		InputData.EndAim = InputData.StartTrace + rot.Vector() * WeaponData->GetMaxDamageRange();
	}
	...

Added B_PlayerController asset, added UASAimAssistComponent to controller

Added B_LyraGameMode asset, selected B_PlayerController class

In B_Hero_ShooterMannequin added UASAimAssistTargetComponent

In On Team or Cosmetics Changed event realized logic to enable aim assist only for enemies

In IMC_Default_Gamepad and IMC_Default_KBM added modifiers in look input for Stickiness working

Playable Demo Lyra
Lyra Project With Aim Assist Integration