Garry's Mod

Garry's Mod

40 ratings
[TTT] Meme Gun
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun
File Size
Posted
Updated
141.890 MB
Apr 24, 2023 @ 5:59am
Feb 25 @ 7:52pm
21 Change Notes ( view )

Subscribe to download
[TTT] Meme Gun

In 2 collections by The Stig
The Stig's TTT Mod List
285 items
Pack-a-Punch Upgradeable Weapons!
196 items
Description
Heavily based off of the killer snail gun, credit goes to Muzako for creating the original version of this weapon: https://steamcommunity.com/sharedfiles/filedetails/?id=2151761122


Get those innocents with some deadly memes!

A traitor weapon that spawns a random meme image at your feet, relentlessly chases your victim down around the map, and kills on touch!

The meme can jump and open doors to reach their victim, and disappears once it reaches them!

This weapon comes with a bunch of navmeshes for some common TTT maps, and will automatically disable itself if the current map doesn't have a navmesh, as it requires the map you're playing on to have one to work.

Adding your own memes
Placing .png or .jpg images in a certain folder in your Garry's Mod install folder will add them to the pool of images the meme gun can display!

First, find the materials folder, if you are locally hosting peer-to-peer, the "materials" folder is located somewhere like: "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\materials"
You will have to create the meme_gun folder in there, and then place your images in.

"...\materials\meme_gun\[whatever name you want].png"

You should now be able to simply place images in this folder, and they will be added to the pool of images the meme gun will use!

Now simply host a game, and enjoy!

If you're using a dedicated server, create the meme_gun folder in your server's materials folder. If the materials folder isn't there, create it first. Normally located at:
"[your server's main folder]\garrysmod\materials\meme_gun\[whatever name you want].png"

Note: Your images need to be small enough to be able to be sent in-game! If your image isn't working, try using this website to shrink it: https://imresizer.com/resize-image-to-500x500-square
(Or use your favourite image editor, e.g. Gimp or Paint .NET, to shrink your meme to a small square resolution, e.g. 512 x 512px)

ConVars
ttt_meme_gun_always_include_default_memes (Default 0)
Whether to always add the default memes to the pool, change to 1 to add the default memes even if you add your own

Meme packs
Add some more memes! Check out the below:

Yogscast Meme Pack
https://steamcommunity.com/sharedfiles/filedetails/?id=3322146366
8 Comments
Mr. Napkins Feb 14 @ 4:08pm 
1, 2, and 3 have all been completed with no change. It did work when the folder was slotted manually for each person. Just to be sure I put "materials/meme_gun/1.png" on every possible level of the server, but no luck. Upon refreshing the shooting error I thought I was having seems to be gone so that was probably just lag. Thanks for the work around!
The Stig  [author] Feb 14 @ 2:53am 
@Mr. Napkins The meme gun doesn't fire unless you hit a player, also unfortunately when there is lag there is a delay in spawning the meme and the gun actually firing.

That error message is perfectly normal and unfortunately a byproduct on how TTT works with custom entities, you can ignore that one.

1. Try creating a materials folder in your server's "garrysmod" folder. So it looks like:
"[your server's main folder]\garrysmod\materials\meme_gun\[whatever name you want].png"

I didn't realise that dedicated servers don't actually have a materials folder by default... my bad. I've updated the mod description to mention this. That alternate directory you shared could work as well, but I haven't tested that.
The Stig  [author] Feb 14 @ 2:53am 
2. Try to shrink your images, and set them to a square size, both of which can help with a server not forcing players to download images: https://imresizer.com/resize-image-to-500x500-square

(Instead of that website, you can also just use your favourite image editor, like Gimp or Paint .NET, any size 512 x 512 or smaller should work)

3. Try is putting ttt_meme_gun_always_include_default_memes in your server console as a command, this will tell you the actual current value of this setting, and if it is 1, then there might be a problem with your server config.

4. Last if all else fails, just give your players the meme_gun folder directly and have them plop it into their Gmod install's materials folder. You will still need the meme_gun folder on your server as well, this just bypasses the need for the server to send the meme images over automatically.
Mr. Napkins Feb 14 @ 12:20am 
So, running this on a dedicated server I can't get it to use custom images and it has a weird firing issue were it has to be clicked multiple times before it eventually fires a default meme.

The only thing I see in the console regarding this is:
"Refusing to load ent_meme_gun because it is missing Type and Base keys!"

Also when you say the server materials folder would it be the one under "\gamemodes\terrortown\content\materials"

I am not a professional server/gmod guy, but I can normally wang-jangle it into working, so maybe I'm just being dumb on this one. Either way, any help would be appreciated. In the last 6 years or I've set up TTT three times for my friends and I just wanna say your level of contribution is insanely appreciated. I hope you get thanked as much as you get asked for a sandbox version.
GREENki11erRaBiT Feb 6, 2024 @ 8:04am 
Aces! All seems good now.
The Stig  [author] Feb 5, 2024 @ 8:20am 
@GREENki11erRaBiT I added a fix. Hopefully your internet connection is faster than 1000 ping, else this issue might persist. Thanks for the report!
GREENki11erRaBiT Feb 1, 2024 @ 3:27am 
Amazing mod, one problem. In the folder, whichever picture is first alphabetically has highest priority (I think by default it's the meme of the soccer guy I'm unfamiliar with). This means that whenever you load a new map that meme will always be the first shot, and every shot after that has a 1/3 chance to be that same picture. I renamed a picture to "aa doge" and the problem persisted with that picture instead.

In short, plz help Mr. The Stig.
40 Above Summer Jun 17, 2023 @ 11:14am 
sandbox version?