Skip to content

Add directional shield toggle to AxeSwap#132

Open
LetMePractice wants to merge 1 commit intoclickcrystals-development:mainfrom
LetMePractice:main
Open

Add directional shield toggle to AxeSwap#132
LetMePractice wants to merge 1 commit intoclickcrystals-development:mainfrom
LetMePractice:main

Conversation

@LetMePractice
Copy link
Copy Markdown
Contributor

@LetMePractice LetMePractice commented Apr 14, 2026

Type of change

  • Bug fix
  • New feature

Description

Added a "Directional Shield" setting to AxeSwap. When enabled, the swap only triggers if the enemy is facing you. When disabled, it swaps regardless of direction.

Also added a "Shield FOV" setting to control the detection angle (default 60°). Uses dot product of normalized vectors with Math.cos(Math.toRadians(fov)) for accurate angle detection.

Note: if_blocking in scripting is unaffected and behaves the same as 1.3.7

Related issues

N/A

Checklist:

  • My code follows the style guidelines of ItziSpyder(ImproperIssues).
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.
  • I have joined the ClickCrystals Discord.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant