> For the complete documentation index, see [llms.txt](https://dmitriy-vergasov.gitbook.io/pro-aim-assist/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dmitriy-vergasov.gitbook.io/pro-aim-assist/lyras-integration.md).

# Lyra's Integration

{% embed url="<https://www.youtube.com/watch?v=1n2tAET4kec>" %}

{% hint style="danger" %}
USE IT ONLY IF YOU ARE AN EXPERIENCED C++ PROGRAMMER
{% endhint %}

[**Playable Demo Lyra**](<https://drive.google.com/file/d/1EKhX9SHUXLOdgYm44WLMNo0WIAAkMeL1/view?usp=sharing >)

[**Lyra Project With Aim Assist Integration**](https://drive.google.com/file/d/1JM5eY3cbdYjMc08wd3HbFtrktR8qlBBF/view?usp=sharing)

### All made changes for integration in Lyra project:

#### In ULyraGameplayAbility\_RangedWeapon::PerformLocalTargeting added targeting for aim assist<br>

```
	...
	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**&#x20;

#### ![](/files/8QLXPG6gVIDHMfNpAAuR)

#### Added B\_LyraGameMode asset, selected B\_PlayerController  class

![](/files/RUD6uHvEUA2KswjDM63F)

#### In B\_Hero\_ShooterMannequin added UASAimAssistTargetComponent&#x20;

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

![](/files/16myoma3yL7cazBda02m)

**In IMC\_Default\_Gamepad and IMC\_Default\_KBM added modifiers in look input for Stickiness working**

![](/files/AelnlCGq3QKklcaD9WOK)

![](/files/l6v910F0ISVpUPjnH2Z6)
