Posted by CaveCricket48 in Cortex Command - February 16th, 2014

It took eight builds since Lua was first introduced, but there are now primitive draw functions that allow modders to, well, draw stuff. Things like simple boxes, circles, and lines can be drawn using Lua, instead of having to make a bunch of MOSRotating or MOSParticle objects with the sprites of what the modder wants displayed.

FrameMan:DrawCirclePrimitive(Vector pos, int radius, int color)
FrameMan:DrawCircleFillPrimitive(Vector pos, int radius, int color)
FrameMan:DrawLinePrimitive(Vector start, Vector end, int color)
FrameMan:DrawBoxPrimitive(Vector start, Vector end, int color)
FrameMan:DrawBoxFillPrimitive(Vector start, Vector end, int color)

On the content balancing end of things, we’re aiming on giving each faction there own strengths and weaknesses in terms of durability and weapons, along with a differing play-style for each faction.

Feedback thread and more information here.

FrameMan:DrawCirclePrimitive(Vector pos, int radius, int color)
FrameMan:DrawCircleFillPrimitive(Vector pos, int radius, int color)
FrameMan:DrawLinePrimitive(Vector start, Vector end, int color)
FrameMan:DrawBoxPrimitive(Vector start, Vector end, int color)
FrameMan:DrawBoxFillPrimitive(Vector start, Vector end, int colorssda

You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.


15 Responses to “Lua Draw Functions and More Content Balancing”

  1. HALOMAN - # February 16th, 2014 at 11:24 pm

    wow i been waiting for this

  2. Icchan^ - # February 16th, 2014 at 11:37 pm

    It’s truly great to see that you’re still updateing the CC. It’s wonderful platform to flesh out something perfect and even more unique. I really hope you’ll never stop updating the game 🙂
    And if you do, please… open source it 🙂

  3. Rémi - # February 17th, 2014 at 2:07 am

    Thanks for still taking care of CC.
    +1 for open sourcing your game. (I miss solid collision between actors of the same team)

  4. Data - # February 17th, 2014 at 4:39 am

    note that these recent improvements and posts are all the work of CaveCricket48 and the others on the dev team (weegee, abdul, lizard et al) – major props to them for kicking so much butt!

  5. Data - # February 17th, 2014 at 5:13 am

    (while i’m busy working on the steam workshop publishing GUI.. still)

  6. PFCDev - # February 17th, 2014 at 2:29 pm

    You guys are a great team, this update is shaping up to be really awesome. Maybe with my newfound coding knowledge I can build a mod from scratch for the workshop.

  7. Ptolom - # February 17th, 2014 at 5:16 pm

    Exciting stuff. Cortex Command has been one of my favourite games since 2007, but it seems as though it hasn’t really fulfilled its potential. It still tends to keep me absorbed for days every time I remember about it and try to find the key.

  8. Dinberg - # February 17th, 2014 at 8:43 pm

    Is it Valentines day still cos the love just keeps on coming

  9. IamJamez - # February 17th, 2014 at 11:19 pm

    This post just made my day.
    Thanks for not abandoning this.

  10. Gaggles - # February 18th, 2014 at 5:19 am

    THANK YOU SO MUCH ABOUT BALANCING FACTIONS!!! 😀
    NOW I MIGHT FINALLY HAVE A CHANCE ON KILLING MY FRIENDS STUPID OP BROWNCOAT UNITS!!! 😀

  11. Jabberwok - # February 19th, 2014 at 12:27 pm

    For some reason, I’m denied access to even read the forum thread, now that I’ve registered. I could see it before I had logged in, so not sure what’s going on with that. Anyway, I can see the Silver Man for Techion matching up with the goals in the document, but the Whitebots strike me as too fragile. Although I’m okay with the way things are currently balanced now, as they seem to have very high mobility. And in general, Techion feels good at medium range to me, but they don’t seem to have any good close range weapons. At long range, they have the nanorifle, I guess. The lack of any area-of-effect weapons bugs me somewhat, but perhaps that’s purposeful.

  12. Mikromancer - # February 24th, 2014 at 2:54 am

    D: SQUEEEEE!!! /fangirl

    this is gunna be a great update! keep up the good work guys!

  13. BigWyrm - # February 24th, 2014 at 6:30 am

    Any plans to add new content to the game in the near future (i.e. guns, tools, ships, levels, etc.)?

  14. Nanvinor - # February 24th, 2014 at 8:51 pm

    AWESOME!! Keep on working on this fantastic game! 😀 – I agree with @BIGWYRM 😛 I just hope to see more of everything! 😀 Great work guys!

  15. CaveCricket48 - # February 26th, 2014 at 12:51 am

    New content is definitely something that will be added, but not until all of the current content has been balanced.