-
Notifications
You must be signed in to change notification settings - Fork 0
New feature: Grenade Trails
dounai2333 edited this page Jan 26, 2025
·
5 revisions
This is the first feature that I made for testing new APIs, and it works great, so I decided to keep it and default to on.
This feature create a trail following the grenade projectile that player has thrown.
By default the he grenade is red color, flashbang is white, smoke is green, you can configure them in settings.
By default, the mode specified grenades will not have trails (for example the grenades in "Hide & Seek" gamemode), if you wanna add a trail to them you have to do this:
-- Made the cough grenade has trail and the color is orange.
dounai_lib.feature.GrenadeTrails.color.coughsmokegrenade = Color(255, 128, 0)Mode specified grenades list:
coolgrenade (Zombie Zeta, based on flashbang)
guidedgrenade (Hide & Seek, based on hegrenade)
shocksmokegrenade (Hide & Seek, based on smokegrenade)
coughsmokegrenade (Hide & Seek, based on smokegrenade)
changesmokegrenade (Hide & Seek, based on smokegrenade)
healsmokegrenade (Hide & Seek, based on smokegrenade)
ghostsmokegrenade (Hide & Seek, based on smokegrenade)
-- Set to 'false' will disable this feature.
dounai_lib.feature.GrenadeTrails.enable = true
-- Grenade color. Set to `nil` will disable the trails.
dounai_lib.feature.GrenadeTrails.color.hegrenade = Color(255, 100, 100)
dounai_lib.feature.GrenadeTrails.color.flashbang = Color(200, 200, 200)
dounai_lib.feature.GrenadeTrails.color.smokegrenade = Color(100, 255, 100)
-- trail material. Recommended to keep default.
dounai_lib.feature.GrenadeTrails.material = "sprites/laserbeam.vmt"
-- trail width, larger number = thicker.
dounai_lib.feature.GrenadeTrails.width = 15