Data Realms Fan Forums
http://45.55.195.193/

Just some Power - Now with a Template!
http://45.55.195.193/viewtopic.php?f=61&t=15023
Page 1 of 4

Author:  Ultric [ Thu May 28, 2009 1:26 pm ]
Post subject:  Just some Power - Now with a Template!

Power Systems

Image

Yes, it's here! The mod that none have you been waiting for!
Ok, maybe a few of you have, but still...
Anyways, on to the description.
This mod allows a power-type system into Cortex Command by use of Lua. In reality, it has very little effects to actual gameplay, other than adding a slightly different objective when playing against another human player. You can use the Generator to power the systems, which currently only include a MedBay. The systems are durable in comparison to the generator because the generator is the real target. Once you destroy it, any medbays powered by it will go offline as indicated by the little empty battery symbol. As a nice little bonus, with a little editing, any module or actor that uses Lua mainly (such as the jump pads in BW and the elevators in MP3) can become a system that requires power.

WARNING: THIS WILL NOT ADD POWER TO ANYTHING BUT THE MEDBAY AT THIS TIME.

v1.01
Image

v1.0
Image

THINGS TO DO:
* Make it possible to power down turrets and other actors. --COMPLETE
* Add more systems.
* Create a template for making a mod into a system. --COMPLETE
* Refine this mod more so it works perfectly.

CREDITS:
Gotcha! for helping me keep my head during my first mod creation, as well as supplying the generator sprite and some inis for me to work off of.
Daman for his brilliant idea that made this mod possible.
TheLastBanana for helping me correct that evil spelling error that plagued me for a day.
Anyone else who I forgot to mention for helping me out.

CHANGES:
v1.01 - 05/29/09
* Added template (Let me know if it doesn't work. I need someone other than me to test it.)
* Added compatibility for turrets (no turrets included though)
* New Generator sprite (thanks again, Gotcha!)

KNOWN BUGS
* At random points, if you damage either the MedBay or the Generator (I don't know which) by making the little bullet marks in it too much, it will shut off and flash the no power symbol. Any wisdom on why this happens is appreciated.

If I wasn't clear enough with this presentation, let me know. It's my first time and I don't expect it to be perfect.

Also, gifs are appreciated in order to show people who are confused about what this exactly is.

P.S. If you don't like the text at the top of the screen displaying the power for the system you have selected, disable it by putting -- before these lines in MedBay.lua:
Code:
   if self:IsPlayerControlled() == true then
      FrameMan:ClearScreenText(self.player);
      FrameMan:SetScreenText("Energy: " .. self.energy .. "/" .. self.energyRequired, tonumber(self.player), 0, 5000, false);
   end

Author:  Gotcha! [ Thu May 28, 2009 1:42 pm ]
Post subject:  Re: Just some Power

Aw, that's a placeholder sprite. Give me a nudge later to have me make another one. :)

Author:  Rawtoast [ Thu May 28, 2009 2:19 pm ]
Post subject:  Re: Just some Power

Oh! Oh! Oh! This is super-neat.

Also good for single player-mode. Could make campaign scenes much more interesting!

Author:  Duh102 [ Thu May 28, 2009 2:19 pm ]
Post subject:  Re: Just some Power

I am Duh102, and I approve of this mod.

Author:  HappyBirthday [ Thu May 28, 2009 2:31 pm ]
Post subject:  Re: Just some Power

In Lua I dont think you can put // in, I think it has to be --.

Author:  Ultric [ Thu May 28, 2009 2:41 pm ]
Post subject:  Re: Just some Power

HappyBirthday wrote:
In Lua I dont think you can put // in, I think it has to be --.

Ah, correct you are. Thank you. Fixed it.

Author:  Flammablezombie [ Thu May 28, 2009 6:33 pm ]
Post subject:  Re: Just some Power

SWEET! Now Numgun can make the AAL reactor actually power anything, and focus on making a brain that doesn't suck!

Author:  Lizardheim [ Thu May 28, 2009 7:02 pm ]
Post subject:  Re: Just some Power

Offical contest anyone?

Someone should atleast make a mission where one would have to protect the generator with the generator making the doors invulnerable and other things.

Author:  Mind [ Thu May 28, 2009 7:06 pm ]
Post subject:  Re: Just some Power

Lizard wrote:
Offical contest anyone?

Someone should atleast make a mission where one would have to protect the generator with the generator making the doors invulnerable and other things.


Official. And nice job, ultric! :)

Author:  Dauss [ Thu May 28, 2009 8:17 pm ]
Post subject:  Re: Just some Power

Something tells me Grif will be very interested in this.

Author:  casey [ Thu May 28, 2009 10:22 pm ]
Post subject:  Re: Just some Power

what would be cool is if there was a space mission, and the generator keeps life support systems running that keeps units from slowly loosing health, and you can also deliver an improvised generator if the first one breaks

Author:  Flammablezombie [ Thu May 28, 2009 10:24 pm ]
Post subject:  Re: Just some Power

Please let this be used for vanilla content. We can have a lua tool that slowly builds a new one on the spot the old one was destroyed.

Author:  Ultric [ Thu May 28, 2009 10:56 pm ]
Post subject:  Re: Just some Power

Dauss wrote:
Something tells me Grif will be very interested in this.

I think so too.
Flammablezombie wrote:
Please let this be used for vanilla content. We can have a lua tool that slowly builds a new one on the spot the old one was destroyed.

Actually, one of the future versions should have a walking drone with less range and less power output.

Author:  Foa [ Thu May 28, 2009 11:42 pm ]
Post subject:  Re: Just some Power

I am hoping for turrets the are powered by the power station. The more power, the faster the reload, no power, no reload?

Author:  MECAGUY03 [ Thu May 28, 2009 11:42 pm ]
Post subject:  Re: Just some Power

Cool idea, this could make for REALLY ♥♥♥♥ AWESOME BASES, now the ALL reactor will be able to power the thermal grids (we need moar grid stuff and/or router stuff!)

Maybe it would have to be connected by a power cable? so that to kill the enemy brain (if there is one) you could dig through the sheething around the cables, cut them, and then watch the brain die in the case :evil: and this would also make it so that reactors (NUCLEAR REACTOR, ♥♥♥♥ YEA) could have a "power limit", really just a limit of how many plugs you have, and maybe have RECHARGEABLE ROBOTS, that would have to find a wall outlet or they shut down if they run out of charge :lol:

Page 1 of 4 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/