View unanswered posts | View active topics It is currently Mon Dec 30, 2024 11:14 pm



Reply to topic  [ 5 posts ] 
 Non Lua recursion of gibs? 
Author Message

Joined: Sat Feb 06, 2010 4:18 pm
Posts: 9
Reply with quote
Post Non Lua recursion of gibs?
Hi all!

Just for fun, I decided to create an intentionally game-crashing weapon, as we all do from time to time.
I decided to have a go with recursive gibs; that continue to explode into themselves, increasing in number exponentially.

It didn't work as planned. I chose an AEmitter for the task, but I can't use itself in its definition, if that makes sense. I can't make it gib into itself, and I can't find a working way to make this happen without Lua.
I have seen such objects before, namely the Cancer Bomb.

Is it doable using only an .ini file, or would I have to delve into the world of Lua?
And if that's the case, does anyone have relevant links or code that could help me crash my CC spectacularly?

Thankyou!

-DR


Sun Feb 06, 2011 11:36 am
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post Re: Non Lua recursion of gibs?
Recursive gibbing is done by defining an object in .ini. Then, copy-paste the entire object's code and add itself as a gib, possibly twice.


Sun Feb 06, 2011 11:43 am
Profile WWW
User avatar

Joined: Fri Feb 16, 2007 8:43 pm
Posts: 1695
Location: AH SHIT FUCK AUGH
Reply with quote
Post Re: Non Lua recursion of gibs?
1. Define A
2. Denife B
3. Make B gib A
4. Redefine A (copyof, identical presetname) and make it gib B

That's about it.


Sun Feb 06, 2011 2:34 pm
Profile WWW
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post Re: Non Lua recursion of gibs?
To [hopefully] make what Shook said a little more clear:
Code:
AddDevice = HDFirearm
   PresetName = A
   Buyable = 0
   [...]
AddDevice = HDFirearm
   CopyOf = A
   PresetName = B
   Buyable = 0
   AddGib = Gib
      GibParticle = HDFirearm
         CopyOf = A
      [...]
AddDevice = HDFirearm
   CopyOf = A
   PresetName = A
   Buyable = 1
   AddGib = Gib
      GibParticle = HDFirearm
         CopyOf = B
      [...]
Also, if you want the changing name to be less noticeable for the player in-game, you can just change capitalization, or similar characters such as 1, and l, or O and 0, and so on. This is also good way to confuse yourself, though.

Although, keep in mind that this method will not save devices from the maximum device count, so if you're doing this with a device, (HDFirearm, HeldDevice, TDExplosive) it may disappear after sitting out for too long.


Sun Feb 06, 2011 8:18 pm
Profile

Joined: Sat Feb 06, 2010 4:18 pm
Posts: 9
Reply with quote
Post Re: Non Lua recursion of gibs?
Thanks, all!
With your input I've succeeded in flooding the screen with white pellets in record time!
You've opened a whole new world of possibilities for me! Thankyou.


Mon Feb 07, 2011 2:20 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

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.052s | 13 Queries | GZIP : Off ]