Garry's Mod

Garry's Mod

4,381 hodnocení
Mystery Box Entity (Sandbox/TTT)
   
Ocenit
Přidat do oblíbených
Oblíbeno
Odebrat z oblíbených
Content Type: Addon
Addon Type: Entity
Addon Tags: Fun, Roleplay
Velikost souboru
Přidáno
Aktualizováno
10.545 MB
5. kvě. 2014 v 20.30
6. dub. 2023 v 14.38
Poznámky ke změnám (26) – zobrazit

Klikněte na „Odebírat“ pro stažení položky
Mystery Box Entity (Sandbox/TTT)

Popis
If you have any questions/comments/concerns, feel free to ask!

Overview
This is a working CoD Zombies Mystery Box entity for GMOD.

Usage
To use it, go to the "CoD Zombies" tab in the entities window on the spawn menu. Spawn one, press "E" (by default). The weapon will then start cycling.

TTT Usage

The addon comes with a built in TTT weapon, "weapon_hoff_mysterybox". This will allow you to spawn one in. Comes with a T menu icon as well.

Please note: class names in TTT are different than in sandbox and other gamemodes, so please read the config section and change accordingly before usage.

To make the box work once, add the convar 'MysteryBox_MaxSpins 1' in your server.cfg file. This will make it work once.

Config

NOTE: IF YOU DON'T HAVE A TXT CONFIG FILE, SPAWN A BOX IN AND IT WILL BE CREATED.

If you're an admin on a server or a single player user, you can configure what shows up in the mystery box via the Utilities menu. Spawning a box creates a txt config file which lets you set the weapons in the box, in garrysmod/garrysmod/data/codzombies/mysterybox.txt. The config looks like this:
http://pastebin.com/raw/21i3cLDV

You can right click on any weapon on your spawn list, and click 'Copy To Clipboard' to copy the weapon class. You can then paste it in the config dropdown, or the text file directly.

Config Video Tutorial
https://www.youtube.com/watch?v=AOxQBoop1rk&feature=youtu.be
Here's the alternate way to configure the box. I explain how to add weapon classes directly to the .txt file


Please do not use regular notepad, use notepad++ or Sublime Text.

Server owners can use resource.AddWorkshop("256934412") to download files to clients

CVars
MysteryBox_MaxSpins (default 0)

Very FAQ
Q. I'm getting the crowbar error! When I use the box I got an error and my weapons don't show up and only a crowbar appears.
A. Here are the two possible causes:
1) The config is incorrect
2) The weapon class doesn't contain an swep table/SWEP.WorldModel value in it. This means the box can't grab a model to display in the box.

Q: How do I limit the amount of spins a player can do before it leaves?
A: Use the cvar MysteryBox_MaxSpins <count>

Q: How do I make some weapons more common than others?
A: Just put the weapon class in the config multiple times and it'll cycle to that more often

Q: Can I change something in the code and reupload my own version?
A: No. The code is my own and thus protected under copyright.

Enjoy
Hoff
Populární diskuze Zobrazit vše (27)
26
11. úno. 2021 v 7.23
Coding for an M9K gun.
Zero Darkpaw
21
25. pro. 2017 v 12.59
Still not working! please help me
VeryBigMan
11
31. bře. 2018 v 9.58
Converting notepad to notepad++
SuperYay
Počet komentářů: 819
ENEMY1ONE1 28. zář. v 9.51 
for some reason it just shows the crow bar
Tbones1208 2. srp. v 14.13 
For some reason sometimes the box just isnt in the entity tab and isnt in utilities but somtimes it is
Gato 4. čvc. v 16.29 
NVM I think I found a fix for it. After adding in my custom mystery box drops, I just changed the file to read only and it seems to have solved my problem.
Gato 3. čvc. v 19.59 
Hey I'm currently having an issue where it forces what is in the box back to it's default set of wonder weapons when I'm playing TTT. I'll customize everything in the file and the box will be working fine with what I've put in it, but if I get off the game and get back on I notice when I place the box down it resets the config file back to it's default drops. If you know a fix for it that would be awesome, otherwise it was fun to use while it lasted and was a great addon for me.
Flopper 12. čvn. v 21.20 
pretty please upload the box model itself to the source filmmaker workshop page and my life is yours
mastur ch33f 23. dub. v 20.46 
can you remove the beam?
NNinja1255 7. dub. v 16.33 
i'm pretty sure you are still able to properly edit the txt files in regular notepad if you know what you are doing.
loneliestNight 23. bře. v 2.51 
I think I've run into an odd issue. It seems like the mystery box copies the question marks and the light from inside whenever you load (or maybe save, I admittedly haven't tested) a save with it? I don't really expect a fix, just so other people know!
Hoff  [autor] 6. led. v 20.34 
Hey unfortunately no, there's no cooldown other than the teddy bear and moving locations. I'll look into adding something like that, but no promises
FruitBerryCrunch 6. led. v 15.37 
Hey long time no speak. Question. Does this come with a cool down feature? Being able to open it without a cool down makes it a bit overpowered. I know there's a feature that limits how many times one can open it but I feel like a cool down feature would be useful.