Garry's Mod

Garry's Mod

Not enough ratings
TTT - Bomb Transmutation (Improved)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun
File Size
Posted
Updated
140.883 KB
7 Mar, 2022 @ 6:11pm
1 Sep, 2023 @ 10:12am
2 Change Notes ( view )

Subscribe to download
TTT - Bomb Transmutation (Improved)

Description
Modified version of https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=859814945

Github link: https://github.com/The1337Gh0st/TTT-Bomb-Transmutation-Improved/

Changes:
Made the weapon consume ammo upon triggering a bomb rather than placing a bomb
Weapon cannot be used if it doesn't have any ammo
Weapon now has a primary delay upon placing a bomb and triggering a bomb
Changed how the convars worked to ensure that they stay on server restart
Removed "swep_kq_sha_admin_only" convar as it didn't do anything
Added convars for how many charges it starts with, the primary delay, and whether or not it removes something upon bomb activation
Changed the internal name of the weapon to fit better
Gave it a unique ammo type to ensure it doesn't interfere with other weapon types
Fixed damage effect to work properly and be less janky overall
Moved weapon slot to WEAPON_ROLE (8th slot)
Added a backup on weapon drop to delete itself to make the weapon can't be used by other players
Made weapon remove itself upon detonation if clip size is equal to 0

Convars + default values:

"swep_kq_charge_radius", 200, "Radius in which you can charge entity as bomb"

"swep_kq_trigger_radius", 100, "Radius in which charged object will trigger player/npc detonation"

"swep_kq_explosion_radius", 10, "Explosion radius"

"swep_kq_delay", 1, "Delay between trigger (*click* sound) and explosion"

"swep_kq_target_owner", 0, "Enable bomb to detonate it's owner"

"swep_kq_sound_deploy", 0, "Enable `Killer Queen` sound on deploy"

"swep_kq_sound_charge", 1, "Enable `Ichi no bakudan` sound on charge"

"swep_kq_sound_trigger", 1, "Enable *click* sound on trigger"

"swep_kq_remove", 1, "Whether or not the bomb will remove something upon use"

"swep_kq_charges", 3, "How many charges Bomb Transmutation starts with", 0, 100

"swep_kq_primary_delay", 1, "Attack delay after setting a bomb and triggering a bomb", 0, 100
Popular Discussions View All (2)
0
29 Mar, 2022 @ 6:15pm
PINNED: Suggestions
The1337Gh0st
0
29 Mar, 2022 @ 6:15pm
PINNED: Bug Reports
The1337Gh0st
2 Comments
The1337Gh0st  [author] 1 Sep, 2023 @ 10:15am 
@Fakas Should be available in the description now.
Jack Black 31 Aug, 2023 @ 10:49pm 
Do you have the source on GitHub/etc? There's a very small PR I'd like to make to allow setting a flag on entities to make them "unexplodable" - that way developers of other addons can build in compatibility with this.