[Bug] Medium-sized mines launched by players have a larger radar blip than default mines created by scripting
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 869
- Forks
- 222
- Avg merge
- 18h 33m
- Merged PRs (30d)
- 1
Description
To make script mines the same size as the player-launched medium:
From d2214eb8b74bde3a4413af8669acf2627b35f593 Mon Sep 17 00:00:00 2001
From: oznogon <oznogon@users.noreply.github.com>
Date: Sun, 14 Jun 2026 12:35:02 -0700
Subject: [PATCH] Align Lua API mine size to default player-launched mine size
---
scripts/api/entity/mine.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/api/entity/mine.lua b/scripts/api/entity/mine.lua
index 8c783d2a8c..1eeafd765e 100644
--- a/scripts/api/entity/mine.lua
+++ b/scripts/api/entity/mine.lua
@@ -11,7 +11,7 @@ function Mine()
local blast_range = 1000.0
local e = createEntity()
e.components.transform = {}
- e.components.radar_trace = {icon="radar/mine.png", min_size=10, max_size = 10}
+ e.components.radar_trace = {icon="radar/mine.png", min_size=16, max_size = 16}
e.components.constant_particle_emitter = {interval=0.4, start_color={1, 1, 1}, end_color={0, 0, 1}, start_size=30.0, end_size=0.0, life_time=10.0}
e.components.radar_signature = {electrical=0.05}
e.components.avoid_object = {range=blast_range*1.2}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in scripts/api/entity/mine.lua and inspect the radar_trace values used by the Mine() Lua API entity. Compare a script-created mine with a player-launched medium mine in the game; done means both produce the same-sized radar blip.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- api, game-dev
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 92/100