Author |
Message |
Aspect
Joined: Mon Apr 28, 2008 1:35 am Posts: 383
|
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 1539 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*
Last edited by Aspect on Tue Apr 07, 2009 2:30 am, edited 13 times in total.
|
Mon Mar 30, 2009 9:07 pm |
|
|
Flammablezombie
Joined: Wed Jan 14, 2009 7:12 pm Posts: 1525 Location: In between your sister's legs, showing her how to use a... PS3 controller!
|
Re: King Assault 2P Gamemode
Great. Now try making a single player version.
|
Mon Mar 30, 2009 9:11 pm |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
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.
|
Tue Mar 31, 2009 12:44 am |
|
|
Aspect
Joined: Mon Apr 28, 2008 1:35 am Posts: 383
|
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.
|
Tue Mar 31, 2009 3:13 am |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
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.
|
Tue Mar 31, 2009 4:31 am |
|
|
Roon3
Joined: Sun May 11, 2008 12:50 pm Posts: 899
|
Re: King Assault 2P Gamemode
Cool, DLing. I might be able to fix some stuff...
|
Tue Mar 31, 2009 7:31 am |
|
|
Aspect
Joined: Mon Apr 28, 2008 1:35 am Posts: 383
|
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
|
Tue Mar 31, 2009 8:01 am |
|
|
Exalion
Joined: Fri Mar 02, 2007 6:59 am Posts: 1726 Location: NSW, Australia
|
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...
|
Tue Mar 31, 2009 8:06 am |
|
|
Roon3
Joined: Sun May 11, 2008 12:50 pm Posts: 899
|
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
Last edited by Roon3 on Tue Mar 31, 2009 8:35 am, edited 1 time in total.
|
Tue Mar 31, 2009 8:28 am |
|
|
Aspect
Joined: Mon Apr 28, 2008 1:35 am Posts: 383
|
Re: King Assault 2P Gamemode
hmm, I'll try reuploading. might have been a bad copy.
|
Tue Mar 31, 2009 8:30 am |
|
|
Exalion
Joined: Fri Mar 02, 2007 6:59 am Posts: 1726 Location: NSW, Australia
|
Re: King Assault 2P Gamemode
Nope, still broken here.
|
Tue Mar 31, 2009 8:32 am |
|
|
Roon3
Joined: Sun May 11, 2008 12:50 pm Posts: 899
|
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
|
Tue Mar 31, 2009 9:29 am |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
Re: King Assault 2P Gamemode
Your end statements should be after the waypoint code, not at the end. http://pastebin.com/m2e851bedAlso pastebin has a lua highlighting mode.
|
Tue Mar 31, 2009 6:48 pm |
|
|
Roon3
Joined: Sun May 11, 2008 12:50 pm Posts: 899
|
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.
|
Tue Mar 31, 2009 7:20 pm |
|
|
numgun
Joined: Sat Jan 13, 2007 11:04 pm Posts: 2932
|
Re: King Assault 2P Gamemode
I dont have anyone to play with so an SP version would be nice. Please!
|
Tue Mar 31, 2009 7:52 pm |
|
|
|