A counter-item recommendation script for Deadlock built for the TSUKI framework.
The script analyzes enemy heroes and displays useful defensive or counter items directly in an in-game overlay. Recommendations can be generated for the entire enemy team or for a specific hero selected from the menu.
The script scans all enemy heroes currently in the match and aggregates their recommended counter items.
Items are ranked based on:
The overlay also shows how many enemy heroes each item is useful against.
Select any available hero from the menu to display counter items specifically recommended against that hero.
Each recommendation can include:
Counter items use the following recommendation levels:
RecommendGenerally UsefulUsefulAn optional setting allows the overlay to display only items rated as Recommend.
Items are visually differentiated by their category:
The in-game panel can be customized through the script menu.
Available settings include:
Recommend itemsThe script maintains a counter-item database for individual heroes.
For team recommendations, it checks every enemy hero and counts how many distinct heroes recommend each item. Items that counter the largest portion of the enemy team are displayed first.
The ranking uses the following priority:
The team recommendation list is recalculated approximately once per second.
For hero-specific recommendations, the script uses the selected hero's counter list directly and displays the highest-priority items first.
The hero-specific counter items, recommendation ratings, and matchup explanations are based on counter information from LockBlaze hero counter pages.
Each stored counter contains:
Heroes without dedicated counter data fall back to a small list of generic defensive recommendations.
When no specific counter data exists for a hero, the script falls back to general-purpose options such as:
This ensures the overlay can still provide basic recommendations for newly added or unsupported heroes.
The hero selection menu is generated from the framework's hero_id table.
This allows the dropdown to stay synchronized with the heroes available to the game/framework instead of relying on a manually maintained hero list.
Special display-name overrides are included for heroes whose internal IDs do not translate cleanly into readable names.
Team counter calculations are cached and recomputed at most once per second.
The overlay also measures text dynamically and wraps longer explanations so they stay within the configured panel width.
Panel coordinates are automatically clamped to the screen boundaries to prevent the overlay from being rendered off-screen.
Configure whether you want:
Team-wide recommendations
The recommendation panel will then appear in-game and update automatically.
Counter-item recommendations and matchup explanations are based on information from LockBlaze hero counter pages.
Deadlock is actively developed and balance changes can make item recommendations outdated over time. Keep the script's counter database updated when heroes, items, or game mechanics change.