Garry's Mod

Garry's Mod

40 个评价
[TTT] Meme Gun
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 武器
插件标签: 快乐
文件大小
发表于
更新日期
141.897 MB
2023 年 4 月 24 日 上午 5:59
9 月 11 日 上午 4:23
22 项改动说明 ( 查看 )

订阅以下载
[TTT] Meme Gun

在 The Stig 的 2 个合集中
The Stig's TTT Mod List
314 件物品
Pack-a-Punch Upgradeable Weapons!
201 件物品
描述
Heavily based off of the killer snail gun, credit goes to Muzako for creating the original version of this weapon: https://psteamcommunity.yuanyoumao.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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3322146366
8 条留言
Mr. Napkins 2 月 14 日 下午 4:08 
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  [作者] 2 月 14 日 上午 2:53 
@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  [作者] 2 月 14 日 上午 2:53 
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 2 月 14 日 上午 12:20 
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 2024 年 2 月 6 日 上午 8:04 
Aces! All seems good now.
The Stig  [作者] 2024 年 2 月 5 日 上午 8:20 
@GREENki11erRaBiT I added a fix. Hopefully your internet connection is faster than 1000 ping, else this issue might persist. Thanks for the report!
GREENki11erRaBiT 2024 年 2 月 1 日 上午 3:27 
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 2023 年 6 月 17 日 上午 11:14 
sandbox version?