Garry's Mod

Garry's Mod

80 ratings
[TTT/2] Pack-a-Punch Item (Weapon upgrader!)
3
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Comic, Fun
File Size
Posted
Updated
51.119 MB
30 Sep, 2023 @ 7:17am
21 Jun @ 8:54pm
271 Change Notes ( view )

Subscribe to download
[TTT/2] Pack-a-Punch Item (Weapon upgrader!)

In 2 collections by The Stig
The Stig's TTT Mod List
286 items
Pack-a-Punch Upgradeable Weapons!
198 items
Description
A very unique buyable item for TTT!

On purchase, the current weapon you are holding gets upgraded!
Hold the weapon you want to upgrade, open the buy menu, and buy the “Pack-a-Punch” item.
These are hand-crafted unique upgrades for over 300 different weapons available on the Gmod workshop!

Most are much more than a stats upgrade, and may drastically mix up how the weapon works, or add some goofy or fun new features!
Even if a weapon doesn't have a unique upgrade, basic weapons are given a random stats upgrade instead!


Example Upgrades
Crowbar: Double swing speed and minimal push cooldown
Harpoon: Throw 3 harpoons in a fan!
Magneto-stick: Picks up players instead!
Incendiary grenade: Spawned fire is permanent
Holstered: Upgrades yourself!

For the complete list of upgrades, see this:
https://github.com/TheStig294/pack-a-punch/blob/master/README.md#the-great-giant-list-of-upgrades

OR this collection of all upgradable weapons: https://sp.zhabite.com/sharedfiles/filedetails/?id=3400853562



Settings/Convars
You can change this mod's settings in-game via the F1 settings menu.
There you will find a list of all the weapon upgrades in the game, and the ability to enable/disable any of them, and adjust an upgrade's individual settings if it has any.
The F1 menu of course is only available to admins, see it in the screenshots above!

If you're using TTT2 the options menu can be opened in different ways (Since the F1 menu does not work with TTT2)
1. Type /papop in chat, OR
2. Type ttt_pap_options in the console OR
3. Type bind X ttt_pap_options to make the options menu open whenever you press X on your keyboard (Replace "X" with whatever key you want)


Alternatively, if you know what you're doing, add the below convars to your server's server.cfg or listenserver.cfg for peer-to-peer hosted games

ttt_pap_apply_generic_upgrades - Default: 1 - Weapons without upgrades will try to be upgraded with a random "generic" upgrade (Normally a stats upgrade)

ttt_pap_detective - Default: 1 - Detectives can buy PaP (Requires map change)

ttt_pap_traitor - Default: 1 - Traitors can buy PaP (Requires map change)

ttt_pap_upgradeable_indicator - Default: 1 - Try to display an icon over buy menu icons showing if a weapon is upgradeable or not

ttt_pap_apply_generic_shoot_sound - Default: 1 - Apply the generic upgraded shoot sound to weapons (Changes apply to newly upgraded weapons)

For a complete list of all convars, see this:
https://github.com/TheStig294/pack-a-punch/blob/master/README.md#settingsconvars


Upgrades that need other mods to work
Some weapons require another mod to be installed for their upgrades to work! Here is the complete list:

Detective airboat spawner
https://sp.zhabite.com/sharedfiles/filedetails/?id=1861630458
Requires: [simfphys] LUA Vehicles - Base
and: Cozy Coupe (Simfphys)

Moonball
https://sp.zhabite.com/sharedfiles/filedetails/?id=2187847673
Requires: ballin' (SWEP)

Vampire fangs
https://sp.zhabite.com/sharedfiles/filedetails/?id=2421039084
Requires: TTT Homerun Bat
or: Bat

Possum Disguiser
https://sp.zhabite.com/sharedfiles/filedetails/?id=2652805911
Requires: Possum

Shark Trap
https://sp.zhabite.com/sharedfiles/filedetails/?id=2550782000
Requires: Left Shark playermodel
or: Yogscast Sharky Player Model

Comrade Bomb
https://sp.zhabite.com/sharedfiles/filedetails/?id=1908426838
Requires: Custom Roles for TTT Jingle Jam 2021 Roles Pack

Maclunkey
https://sp.zhabite.com/sharedfiles/filedetails/?id=1960689564
Requires: Custom Roles for TTT
(Or any mod that adds a "Jester" role like TTT2 or Town of Terror)

Overwatch Guns
https://sp.zhabite.com/sharedfiles/filedetails/?id=2451435560
Requires: D.Va mech w/English voice actor
Requires: Overwatch Tracer: Abilities
Requires: Ashe and Bob PM
Optional: Tracer Playermodel
Optional: Mercy Playermodel
Optional: Reaper Playermodel

Spongifier (Custom Roles role weapon)
https://sp.zhabite.com/workshop/filedetails/?id=2421039084
Requires: SpongeBob SquarePants Playermodel!

Sharkulon Summoner
https://sp.zhabite.com/sharedfiles/filedetails/?id=3242992182
Requires: Shark Trap

Spartan Laser
https://sp.zhabite.com/sharedfiles/filedetails/?id=1836493806
Requires: Master Chief Playermodel

Ender Pearl
https://sp.zhabite.com/sharedfiles/filedetails/?id=3173929747
Requires: Enderman Playermodel

Kamehameha
https://sp.zhabite.com/sharedfiles/filedetails/?id=1599710095
Requires: Jump Force - Goku (PM+NPC)

Pusher
https://sp.zhabite.com/sharedfiles/filedetails/?id=1727089051
Requires: Yogscast Lewis Playermodel


Credits
Too many to list here! See this link instead:
https://github.com/TheStig294/pack-a-punch/blob/master/README.md#credits


Making your own upgrades
Mod makers can make their own upgrades by making a lua script inside a “lua/pack_a_punch/upgrades” directory in your own mod. (You could say, include this in your own weapon mod to make an upgrade for it!)

Have a look at some of the upgrade lua files in this directory in the mod’s source code for examples:
https://github.com/TheStig294/pack-a-punch/tree/master/lua/pack_a_punch/upgrades

(Also look at the sh_upgrade_metatable.lua file for all the fancy functions and properties available when making a weapon upgrade!)
https://github.com/TheStig294/pack-a-punch/blob/master/lua/pack_a_punch/sh_upgrade_metatable.lua
70 Comments
The Stig  [author] 21 Jun @ 8:56pm 
@Eternal Happy! If you disable the upgrade for a generic weapon like the double barrel, it will now default to applying a generic upgrade, if you have generic upgrades enabled.
Eternal Happy! 20 Jun @ 6:36pm 
Just wondering would it be possible to have a option to make upgrade-able weapons into generic upgrade weapons? Example being so I could have stuff like the double barrel get the generic upgrade pool instead of being turned into the "LMAO Bang"
regunkyle 30 May @ 9:08pm 
i didnt mean like that i meant a version that just increases the fire rate of a weapon and maybe gives it a new damage type and maybe if you feel like doing it then make a proper PAP version of a weapon.
The Stig  [author] 30 May @ 6:50pm 
@regunkyle That would be an insane amount of work to create and maintain. TTT, Custom Roles, and TTT2 is as much as I’m willing to maintain.
regunkyle 28 May @ 2:11pm 
have you ever thought of creating a sandbox compatible version?
Breezy ♠ 27 Feb @ 4:14pm 
@The Stig Wow, thanks you are an absolute legend.
The Stig  [author] 27 Feb @ 2:29am 
@Breezy ♠ I added convar for you:

ttt_pap_apply_generic_shoot_sound 0
Apply the generic upgraded shoot sound to weapons (Changes apply to newly upgraded weapons)
The Stig  [author] 27 Feb @ 12:30am 
@Breezy ♠ I can add a convar to disable automatically trying to give the generic PaP shoot sound to weapons, but some upgrades change the sound of weapons specifically, which wouldn't be practical to disable.

Is the generic PaP shoot sound what you're referring to?
Breezy ♠ 26 Feb @ 11:26pm 
Great mod, but is there any way to keep the sounds of the original weapon?
The Stig  [author] 4 Jan @ 10:12pm 
@DasLucas Here you go, a collection of all upgradable weapons:
https://sp.zhabite.com/sharedfiles/filedetails/?id=3400853562