Just some Power - Now with a Template!
Power SystemsYes, 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
v1.0
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