View unanswered posts | View active topics It is currently Thu Dec 26, 2024 8:40 pm



Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
 Dispenser [lua] 
Author Message
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Dispenser [lua]
Image

Put ♥♥♥♥ in top.

♥♥♥♥ comes out sides.

Have actors turn it on/off. Stand in dispenser for minimum five seconds.

Ridiculously hard to fiddle with Lua. Finally working after two days.

Will deduct gold, you cheating Anuses.

Credit to Ctrl for the original(?) dispenser mod, CaveCricket for the recent iteration that inspired this, Kyred and TLB for some help on IRC (oh my god kyred breaks breaks breaks) and of course lowestformofwit for always being willing to act as an idea wall when I'm debugging.

And anyone else I'm missing.


Attachments:
Dispensan.rte.zip [40.7 KiB]
Downloaded 723 times
Thu Aug 13, 2009 7:19 am
Profile
User avatar

Joined: Sun May 11, 2008 12:50 pm
Posts: 899
Reply with quote
Post Re: Dispenser [lua]
Very nicely done, I like this. I like how your code is divided into a bunch of functions.


Thu Aug 13, 2009 7:56 am
Profile WWW
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Dispenser [lua]
Awesome. Any ideas for actors? Maybe a full cloner that clones weapons too.


Thu Aug 13, 2009 8:21 am
Profile
User avatar

Joined: Mon Jun 29, 2009 2:40 am
Posts: 610
Location: Deep below The Map of Mars
Reply with quote
Post Re: Dispenser [lua]
This is eliciting a bit of an "omgomgomg" response on my end.
It is my dream realized.
Very, very nice.
It's also fun to toss in a negative-price rock, or a cheap grenade. Or a mine. These make fun door defenders.

[EDIT]
The particle accelerator screws it up, pulls the little progress bar off and makes the whole machine sprite slide when you have enough power. However, the gun is dispensed in the same place.
Also, the sprites eventually go solid, I am still not sure why. It might be when they are forced to move, as that seems to make sense in my head.


Thu Aug 13, 2009 8:26 am
Profile

Joined: Sat Aug 23, 2008 2:51 pm
Posts: 209
Reply with quote
Post Re: Dispenser [lua]
Wait so what does this do?

The "Crap goes in, Crap comes out" doesn't really help me understand this...

Is this similar to the Weapon Dispenser except with clones?


Thu Aug 13, 2009 3:41 pm
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: Dispenser [lua]
You throw a device into the top and the dispenser churns out copies through the bottom.

Very cool, but there should be a better way to deactivate it. If you don't have an actor nearby an an enemy drops there expensive gun into the machine, your funds will start to drain untill you turn it off.


Thu Aug 13, 2009 4:32 pm
Profile

Joined: Sat Aug 23, 2008 2:51 pm
Posts: 209
Reply with quote
Post Re: Dispenser [lua]
Oh so it makes infinite copies and just keeps on going?


Thu Aug 13, 2009 6:55 pm
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: Dispenser [lua]
Every time it makes a gun it takes away gold.


Thu Aug 13, 2009 7:04 pm
Profile
User avatar

Joined: Thu Feb 12, 2009 1:47 am
Posts: 1182
Reply with quote
Post Re: Dispenser [lua]
Grif wrote:
Will deduct gold, you cheating ♥♥♥holes.


No ♥♥♥♥.


Thu Aug 13, 2009 7:12 pm
Profile
User avatar

Joined: Mon May 18, 2009 2:54 am
Posts: 34
Reply with quote
Post Re: Dispenser [lua]
This is cool, I like it better than CaveCrickets dispensers. Although I found a bug, but its not really your fault.
Attachment:
File comment: Coalition GL into a Dummy GL.
Cortex Command 2009-08-13 13-57-24-98.gif
Cortex Command 2009-08-13 13-57-24-98.gif [ 997.77 KiB | Viewed 12815 times ]


Thu Aug 13, 2009 9:27 pm
Profile WWW
User avatar

Joined: Thu Feb 12, 2009 8:14 am
Posts: 110
Reply with quote
Post Re: Dispenser [lua]
This sucked away my money in no time. Cool concept but give it an option to toggle it on or off.

At first I thought it'd be something like put an actor in the top and it's gibs come out the side. A shredder :D.

Not exactly what I expected, later I played with 100k funds, and it just got annoying how many guns started piling up.


Thu Aug 13, 2009 10:51 pm
Profile
User avatar

Joined: Mon Oct 06, 2008 2:04 am
Posts: 1559
Reply with quote
Post Re: Dispenser [lua]
For the record:
-My name is the only one not capitalized!
-I told him to give it a global turn on/off.

So lol @ you Grif.

At least you released it after I passed out.


Thu Aug 13, 2009 11:07 pm
Profile
User avatar

Joined: Fri Sep 14, 2007 9:52 pm
Posts: 304
Location: No.
Reply with quote
Post Re: Dispenser [lua]
Yeah, a key to turn it on and off would be cool, like, say, P, or maybe /. (Not sure if / is possible. Oh well.)


Thu Aug 13, 2009 11:14 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Dispenser [lua]
Specific keybindings are something I have pledged to never do. Sorry.

I could lower the time delay for deactivating it or maybe add a specific room/module/trigger device but I can tell you right now that I will never ever add specific keybindings to anything I make.


Fri Aug 14, 2009 2:48 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: Dispenser [lua]
Grif wrote:
I can tell you right now that I will never ever add specific keybindings to anything I make.

And I approve! I hate specific key bindings. Maybe you can make the dispenser an actor and (fire) would deactivate/activate it.


Fri Aug 14, 2009 2:56 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 18 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.597s | 18 Queries | GZIP : Off ]