# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dmitriy-vergasov.gitbook.io/pro-aim-assist/lyras-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
