Data Realms Fan Forums
http://45.55.195.193/

King Assault Gamemode
http://45.55.195.193/viewtopic.php?f=24&t=14117
Page 1 of 5

Author:  Aspect [ Mon Mar 30, 2009 9:07 pm ]
Post subject:  King Assault Gamemode

King Assault
    a King of the Hill style gamemode.
    Capture over 3 of the 4 Zones to take control of the base.
    Capture Zones by having more bodies in the area than your opponent.
    Hold the base longer than your opponent within the time limit to win!

There is now a single player-esque mode. I don't suggest playing it single player though.

However, all game settings are modifiable in the Cortex Command/King Assault.rte/Assault.lua file.

Attachment:
File comment: Now with a dedicated single player version.
King Assault.rte.rar [80.04 KiB]
Downloaded 1542 times


Randomization of starting player and reinforcements are no longer broken thanks to mail2345
Also AI movement is implemented thanks mostly to mail2345 and roon3
Thanks again to mail2345 for colorizing the screens to show zone control

To Do:
    Random Base Control at Start
    Reinforcements
    Blue Screens to have red or green tinge if zone is controlled
    Alternate Reinforcement Types
    Randomizing Starting Troops
    Other maps(?) *Feel Free to make your own, all the required areas can be found either in the Area Editor or in the Assault.lua file*

Author:  Flammablezombie [ Mon Mar 30, 2009 9:11 pm ]
Post subject:  Re: King Assault 2P Gamemode

Great. Now try making a single player version.

Author:  mail2345 [ Tue Mar 31, 2009 12:44 am ]
Post subject:  Re: King Assault 2P Gamemode

In order for starting randomization to work, looks like the player spawn needs to be put into lua.
Lua doesn't play nice if the teams are changed.

The good thing is that you can give them more random weapons.

EDIT: Got it working

Oh, and what exactly is wrong with the spawn code?

That might help me try to fix it.

Author:  Aspect [ Tue Mar 31, 2009 3:13 am ]
Post subject:  Re: King Assault 2P Gamemode

I had planned on creating the guys at start randomly, but I couldn't get the other spawns to work, so I didn't bother trying to figure it out.
I never found out what the problem was, the error wasn't very specific, it's in the Lua forum if you wanna check it out.

your code looks good, reuploading the revised one.

Author:  mail2345 [ Tue Mar 31, 2009 4:31 am ]
Post subject:  Re: King Assault 2P Gamemode

Got it fixed.

Lua was just forgetting various necessary local variables. And there was a missue used TEAM variable with an incorrect self:.

Didn't have time to add in attacks.

Author:  Roon3 [ Tue Mar 31, 2009 7:31 am ]
Post subject:  Re: King Assault 2P Gamemode

Cool, DLing.
I might be able to fix some stuff...

Author:  Aspect [ Tue Mar 31, 2009 8:01 am ]
Post subject:  Re: King Assault 2P Gamemode

cool, it works like a charm.
I'm doing the attacks now, so don't worry 'bout those.
ok, finished everything.
added a few toggle on off things.
will probably add more options later on

planning on adding multiple types of spawn settings-
heavy weapons
ronin
dummy

Author:  Exalion [ Tue Mar 31, 2009 8:06 am ]
Post subject:  Re: King Assault 2P Gamemode

Isn't working for me: gives a totally uninformative error report when scene is started: literally just says there was a Lua error...

Author:  Roon3 [ Tue Mar 31, 2009 8:28 am ]
Post subject:  Re: King Assault 2P Gamemode

Wait have you fixed the spawning part?
Also tiny syntax error on line 367, its if moneyon = false and needs to be moneyon == false

Author:  Aspect [ Tue Mar 31, 2009 8:30 am ]
Post subject:  Re: King Assault 2P Gamemode

hmm, I'll try reuploading.
might have been a bad copy.

Author:  Exalion [ Tue Mar 31, 2009 8:32 am ]
Post subject:  Re: King Assault 2P Gamemode

Nope, still broken here.

Author:  Roon3 [ Tue Mar 31, 2009 9:29 am ]
Post subject:  Re: King Assault 2P Gamemode

I've been trying to get actors to walk towards Zones on their own, but I think I messed up something in the spawning code because they only spawn as red: http://pastebin.com/m51bf7cc3

Author:  mail2345 [ Tue Mar 31, 2009 6:48 pm ]
Post subject:  Re: King Assault 2P Gamemode

Your end statements should be after the waypoint code, not at the end.

http://pastebin.com/m2e851bed

Also pastebin has a lua highlighting mode.

Author:  Roon3 [ Tue Mar 31, 2009 7:20 pm ]
Post subject:  Re: King Assault 2P Gamemode

Oh thanks.
Also I think the glows can be done by creating MOPixels

Edit: Works fine except for one thing, green actors spawn perfectly but have no waypoints. (and red ones do)
Nevermind, it was syntax error, works now.

Author:  numgun [ Tue Mar 31, 2009 7:52 pm ]
Post subject:  Re: King Assault 2P Gamemode

I dont have anyone to play with so an SP version would be nice. Please! :smile:

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