Your Ad Here

Subscribe
 Post #1
 22nd February 2007
GMOD Moderator
mahalis's Avatar
January 2007
5,104 Posts


A fairly simple STool: click something to put it in a crate, break the crate to get the thing out again. :P

Features:
- Crate props, NPCs, pod vehicles, and (new in 1.1) players.
- Configurable crate model (from item crates to milk cartons) and health.
- Crates break realistically when opened.
- Pretty effects.
- (new in 1.1) Crates have an outline and (via tooltip) show what they contain.
- Player-crating can be configured server-side: everyone, admins only, or nobody.

Bugfixes:
- Players don't get kicked when crated.
- Crates now break properly when thrown with the gravity gun, instead of only when punted.
- NPCs no longer uncrate at weird angles.

Many thanks to everyone who's helped me along the way:
- m0dUlator (original idea)
- RBOX (sample code)
- Devenger (ideas and code)
- Darkflamer (server testing)

Instructions: Unzip, and place the CrateMaker folder in your garrysmod/addons folder.

(User was permabanned for this post ("So what's the craziest thing you've done lately?" - cosmic duck))
 Post #2
 22nd February 2007
kartracer00's Avatar
September 2006
173 Posts
Sweet! I love this stool. Making it crate players has just increased my love towards you and your LUA.
 Post #3
 22nd February 2007
TomatoSoup's Avatar
December 2006
1,654 Posts
Making it admin only makes it SuperAdmin only? Or did I just make myself seem like an idiot?

If it is availible to all admins, where should I change the IsAdmin to IsSuperAdmin?

Edit:

By the way, someone was on my server claiming to be you. I'm starting to figure that it actually was you, as an impersonator would not try to keep his guise after coming back several days later.

Anyway, If that was you, Sure, I'll help test the STOOL. I got my server fully dedicated now, by the way.
 Post #4
 22nd February 2007
Gold Member
thespectator's Avatar
January 2006
4,126 Posts
May I ask what happens to the player when they are crated?
Like, what do they see ?

I'll be using this
 Post #5
 22nd February 2007
Gold Member
PredatorKing's Avatar
July 2006
4,472 Posts
Players in crates? Sounds like Left 4 Dead. :excited:
 Post #6
 22nd February 2007
Travers1111's Avatar
January 2007
47 Posts
you should make a birthday cake model, then on someones birthday you can get an alyx bot to jump out of the cake!
 Post #7
 22nd February 2007
Gold Member
Elspin's Avatar
December 2006
5,345 Posts
Travers1111 posted:
you should make a birthday cake model, then on someones birthday you can get an alyx bot to jump out of the cake!
No no no, make it a vortigaunt. The reaction is much more entertaining.
 Post #8
 22nd February 2007
GMOD Moderator
mahalis's Avatar
January 2007
5,104 Posts
By the way, someone was on my server claiming to be you. I'm starting to figure that it actually was you, as an impersonator would not try to keep his guise after coming back several days later.
Yeah, that was me. ;)

May I ask what happens to the player when they are crated?
Like, what do they see ?
They spectate the crate; think what you see when ghosting with ServerSecure or in GM9 Melon Race.
 Post #9
 22nd February 2007
Gold Member
Arsonist's Avatar
October 2005
2,686 Posts
Nice STool! Gold star for you :)
 Post #10
 22nd February 2007
Ghost-19's Avatar
April 2006
464 Posts
Dude, you totally made my day. I can't wait to get home now.
 Post #11
 22nd February 2007
Gold Member
TheCombine's Avatar
February 2007
3,876 Posts
Cool STool!
You got my download.
 Post #12
 22nd February 2007
PackRat's Avatar
August 2005
690 Posts
For any skeptics out there who still doubt the awesomeness of this tool, I submit these screens as evidence:

(They're in a specific order, in case you can't tell from the numbers.)

http://packrat.plebsquad.com/gmod_st...struct0001.jpg
http://packrat.plebsquad.com/gmod_st...struct0002.jpg
http://packrat.plebsquad.com/gmod_st...struct0003.jpg
http://packrat.plebsquad.com/gmod_st...struct0005.jpg
http://packrat.plebsquad.com/gmod_st...struct0007.jpg
http://packrat.plebsquad.com/gmod_st...struct0015.jpg



Edit:

I think in the next release you need to make these crates duplicator friendly...
 Post #13
 22nd February 2007
Mr Ninja's Avatar
December 2006
91 Posts
YAY. Really cool stool. Great against mingebags
 Post #14
 22nd February 2007
Dennab
February 2006
2,409 Posts
Epic - I get credits for doing effectively nothing. I wouldn't have been offended if you didn't - I appreciate it. Gold Star - now I can go hide my rebel squad in small boxes and RULE THE WORLD!

Suggestions on usage: deployable manhacks (make a turret shoot an item on a numpad press so you can remotely open the crate), makeshift zombie launch device (1 health, attached explosive to lots of zombie-crates welded together. Boom - zombies - GRARGGH)
 Post #15
 22nd February 2007
Enigma49's Avatar
June 2005
16 Posts
This tool is really cool! Awesome job ;)
 Post #16
 22nd February 2007
Gold Member
bassa12's Avatar
September 2005
2,032 Posts
It doesn't work for me the crates are just undestructible.
And whenever I use the crate the object apear at the center of the map frozen.

It also spams this in the console:
Code:
LS: Error: [Scripted Entity Function] entities/m_crate/init.lua:174: attempt to call method 'GetPos' (a nil value)
 Post #17
 22nd February 2007
HamiltonFed's Avatar
August 2006
833 Posts
Very useful stuff
Gold star
 Post #18
 22nd February 2007
MopeChow's Avatar
July 2005
260 Posts
Look! It's a 07'er making crates! Great job I love it.
 Post #19
 22nd February 2007
GMOD Moderator
mahalis's Avatar
January 2007
5,104 Posts
PackRat posted:
I think in the next release you need to make these crates duplicator friendly...
I've been working on it; haven't quite figured it out yet. By the look of it, I'm going to have to restructure a lot of code.

It doesn't work for me the crates are just undestructible.
I can see why - in theory - it shouldn't work, but I'm not sure why it works for everyone else. It'll be fixed in the next release. :)

Look! It's a 07'er making crates!
Be glad I didn't release my first SWEP. ;)
 Post #20
 22nd February 2007
sonic132's Avatar
July 2005
167 Posts
- (new in 1.1) Crates have an outline and (via tooltip) show what they contain.
Is there a checkbox to disable showing whats inside?
I just love putting dumpsters in there, flipping it upside down and watching as someone goes over there and opens it to find that a dumpster drops over them and traps them :)
 Post #21
 22nd February 2007
GMOD Moderator
mahalis's Avatar
January 2007
5,104 Posts
There's a checkbox, but I'm not sure whether it works in multiplayer or not.
 Post #22
 22nd February 2007
Cazull's Avatar
June 2005
1,798 Posts
When I use it on my dedicated server in multi the box turns invisible, only the shadow being able to be seen on the ground most of the time. Sometimes the box is visible though which adds to the frustration factor as I cannot figure out why it's sometimes visible and most of the other times it's not at random. This happens all the time no matter what I crate.

Anyone else experiencing this on their dedicated server in multi?
 Post #23
 23rd February 2007
Dark Link's Avatar
February 2007
458 Posts
Lol, nice. I'm gonna have a fun time crating mingebags...
 Post #24
 23rd February 2007
Man-O-War's Avatar
December 2006
92 Posts
Hurray! Stuff a MingeBag in a crate then throw them to the bottom of that lake in gm_construct!
 Post #25
 23rd February 2007
GMOD Moderator
mahalis's Avatar
January 2007
5,104 Posts
Cazull posted:
When I use it on my dedicated server in multi the box turns invisible, only the shadow being able to be seen on the ground most of the time. Sometimes the box is visible though which adds to the frustration factor as I cannot figure out why it's sometimes visible and most of the other times it's not at random. This happens all the time no matter what I crate.

Anyone else experiencing this on their dedicated server in multi?
Interesting... any errors at console? I haven't tried it on a dedicated server, only listen, so I have no idea what might go wrong there.
 Post #26
 25th February 2007
Spaztik06's Avatar
January 2005
21 Posts
I found an interesting little bug. It's not that big of deal but it can scare the crap out of someone if not expecting it.


Also it's a nice little demo video for people still debating to download your file. Your welcome.
 Post #27
 25th February 2007
GMOD Moderator
mahalis's Avatar
January 2007
5,104 Posts
Ha, cool. Shouldn't be hard to fix; if I find any other fixable bugs, I'll roll 'em into another update.

Your welcome.
Thanks. ;)
 Post #28
 25th February 2007
Gold Member
Haxxer's Avatar
February 2007
9,022 Posts
Nonono, don't fix it. I shall fix a LOVELY birthday! :excited:
 Post #29
 25th February 2007
Gold Member
TheCombine's Avatar
February 2007
3,876 Posts
Spaztik06 posted:
I found an interesting little bug. It's not that big of deal but it can scare the crap out of someone if not expecting it.


Also it's a nice little demo video for people still debating to download your file. Your welcome.

How did you discovered that?
 Post #30
 25th February 2007
Spaztik06's Avatar
January 2005
21 Posts
I was using that napalm to destroy the boxes with scanners in it and when the napalm blew up a bunch of scanners came after me.
 Post #31
 25th February 2007
Ghost-19's Avatar
April 2006
464 Posts
Spaz, you beat me to it you son of a gun. I was just getting pics prepared. Lol, I discovered it by messing around with the flamethrower swep and discovered that why have one Alex, when I could have 3x the fun =P.
 Post #32
 25th February 2007
GMOD Moderator
mahalis's Avatar
January 2007
5,104 Posts
Hmm. So is it always three copies, or does it vary from weapon to weapon?
 Post #33
 26th February 2007
Ghost-19's Avatar
April 2006
464 Posts
I got 4 copies, but only once. I think it's kind of cool because it only happens when the box breaks from fire (or explosion? not sure...).

Also, please add other models like soda cans, barrels, big red cargo containers, and the like. I'm not sure if I could do it myself because lua > me lol.
 Post #34
 26th February 2007
Link702's Avatar
January 2006
776 Posts
Thanks for fixing that bug where npcs would spawn at weird angles when you break the box. Awesome script, love it.
 Post #35
 26th February 2007
Dennab
February 2006
10,186 Posts
Much better than before.Downloading..
 Post #36
 2nd March 2007
MuMastr's Avatar
March 2007
37 Posts
mahalis posted:
Ha, cool. Shouldn't be hard to fix; if I find any other fixable bugs, I'll roll 'em into another update.


Thanks. ;)
You could make a slider that changes the # of the crated item that is created when broken.
 Post #37
 2nd March 2007
GMOD Moderator
mahalis's Avatar
January 2007
5,104 Posts
MuMastr posted:
You could make a slider that changes the # of the crated item that is created when broken.
There's really only supposed to be one. :p
 Post #38
 3rd March 2007
Gold Member
Dennab
July 2006
4,120 Posts
Spaztik06 posted:
I found an interesting little bug. It's not that big of deal but it can scare the crap out of someone if not expecting it.


Also it's a nice little demo video for people still debating to download your file. Your welcome.
It's like rabbits. >:3
 Post #39
 11th March 2007
Dennab
January 2007
75 Posts
Can you put a object welded to stuff in their? Like can I put my big fighting robot in there?
 Post #40
 13th March 2007
pain799's Avatar
July 2005
178 Posts
Lua king you rock!
Reply

All times are GMT. The time now is 12:28AM.

Facepunch Studios 2010 - Server 'MARGE'