The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

372 ratings
[Rep] Enemy Bullet Trails
2
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
368.725 KB
20 Mar, 2023 @ 4:04am
10 Feb @ 1:02pm
11 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
[Rep] Enemy Bullet Trails

In 1 collection by catinsurance
catinsurance classics
9 items
Description
This mod increases projectile/bullet visibility by giving them a pretty trail. It's extremely customizable through the "Dead Sea Scrolls" menu in game. Access it by pressing [C]!

Note for non-REPENTOGON users: For the option that changes the color to be the color of the bullet (which is now the default), it won't work 100% of the time due to technical limitations. In these cases, it'll default to red. I've only found this to be noticeable on Mega Satan. With REPENOTOGON, this issue should not exist.

/////

Modders, this mod has an api!

--- Assign a custom trail color to a projectile sender. ---@param entity integer @EntityType ---@param variant integer ---@param color Color | function @A Color object or a function that returns a Color object. The function is provided the entity. Don't use Color.Default, it's mutable and may cause issues. function BulletTrails:AddEntityTrailColor(entity, variant, color)

/////

--- Blacklist the entity from having any projectile trails. --- If no variant is provided, all variants of the entity will be blacklisted. (Overwriting any previous variant blacklist) --- If no subType is provided, all subtypes of the variant of the entity will be blacklisted. (Overwriting any previous subtype blacklist) ---@param bool boolean @Enable/disable ---@param entity integer @EntityType ---@param variant integer? ---@param subType integer? function BulletTrails:BlacklistEntity(bool, entity, variant, subType)

/////

--- Get a Color object using RGB values. ---@param red number ---@param green number ---@param blue number function BulletTrails:RGBToColor(red, green, blue)

/////

Additionally, you can check if a trail is a trail from the mod by seeing if this is true:
trail:GetData().B_BulletTrail

You can access the blacklist with:
BulletTrails.EntityTrailBlacklist

You can access the entity projectile trail color table with:
BulletTrails.TypeToColors

Make sure you never use Color.Default as one of the colors! This is a mutable color and will have its transparency altered!

--

Please leave feedback in the comments. Bug reports are expected to be detailed, with any errors (red text appearing in the developer console) included.
Thanks to Luni on Discord for the idea to make this mod.
110 Comments
KiTTiE-K@T 28 Mar @ 6:35am 
Most useful mod of all time
catinsurance  [author] 10 Feb @ 1:09pm 
update: If using REPENTOGON, bullets that previously could not have their trail sync colors now can!
DogeTOM 8 Dec, 2024 @ 3:39am 
too laggy
Lumos 29 Oct, 2024 @ 4:54pm 
I noticed that the blue flames from the urn of soul are replaced by red bullets. May be from another mod but this one seems to be the problem. But likes the mod anyway, great work :D
Vincent 8 Aug, 2024 @ 9:53am 
press L instead of c
g*y r*tard 28 Apr, 2024 @ 6:47am 
pressing c to open dead sea scrolls only opens this mods menu, theres no way to config other mods
n0moreCRY | Graphical Designer 28 Jan, 2024 @ 9:10am 
I like this mod. Sometimes it's hard to notice the red bullets from mobs because your bullets are also red, and when they hit an obstacle, they split. This makes it more difficult to avoid taking damage.
sbruzzboi 2 Jan, 2024 @ 3:13am 
what if you had an option where trail length synced with bullet speed :D
admc 3 Sep, 2023 @ 8:21am 
montezuma's corn projectiles have trails
catinsurance  [author] 27 Aug, 2023 @ 1:12am 
gonna release an update soon that fixes a lot of issue with falling rock projectiles, along with missing trail colors