Staredit Network > Forums > SC2 Custom Maps > Topic: Mech Combat
Mech Combat
May 5 2010, 3:10 am
By: Centreri  

May 5 2010, 3:10 am Centreri Post #1

Relatively ancient and inactive

Mech Combat
Fight to the death with other Mechs.

Features:
Physics system! Accelerate down ramps, decelerate up them, and fail to climb steep ones.
Environmental changes.
Gorgeous terrain.
Custom GUI (currently nonfunctional. <_<)

Controls:
E to accelerate.
D to decelerate.
S is to turn left.
F is to turn right.
Z to lock/unlock camera (to better use the scouts - no range limit!)
W for nitro (somewhat buggy)(uses energy)
R for repair (usable only when speed == 0) (uses energy)
V for a 180 flip (usable only when speed < 3)
Left click to shoot a basic projectile (needs to be completely redone, temporary - 10 energy)
Right click to set a scout (uses 80 energy)

Plans:
More weapons to switch between, using bar on the bottom.
Nicer-looking health/energy/speed display, no slope display.
14-16 players.
Custom Minimap

Things to try:
Shooting
Imagining how awesome hiding behind bushes, setting up a scout and ambushing someone is.
Abusing the slope system to climb up outrageously steep cliffs at an angle.

Screenshots:



Attachments:
MechCombat.SC2Map
Hits: 17 Size: 421.28kb

Post has been edited 15 time(s), last time on May 24 2010, 4:24 am by Centreri.



None.

May 5 2010, 5:02 am payne Post #2

:payne:

You might be interested in this: http://www.sc2mapster.com/maps/steak-racing/



None.

May 5 2010, 6:00 am Centreri Post #3

Relatively ancient and inactive

Hrrm. So I'm not the first. Same basic acceleration/etc system. Well, at least I'm not behind. And I like my choice of numbers better. I did some more work today, it's going to take some time to make handling of steep ramps proper. I'm basically trying to get it to greatly slow down and eventually turn around and take damage if you hit a steep incline (slope of 2+), but my slope equations and equations that utilize it are giving me issues with division by zero, when I know for a fact that the slope isn't zero. I'll work more on that tomorrow. Then I need to implement slowing without movement (easy), speed increase beyond normal max speed downhill (easyish), and then I go into the nasty, 3D stuff.



None.

May 5 2010, 1:58 pm payne Post #4

:payne:

Just to make sure you knew there was a simple variable named "deceleration" in the data of units. ;)
The problem with it is that we can work around it in many ways.



None.

May 5 2010, 2:08 pm Centreri Post #5

Relatively ancient and inactive

Eh. My system works right now, I'll work with my custom variables instead. Also, update!

It now automatically slows down while not accelerating, slows down/speeds up when going up slopes or down them (Try it! :D), and when it hits a sheer cliff it stops, flips you 180 degrees and makes a nice puff of burrowed zergling. And I added that to slowing down, too - it was a very nice graphical effect used in that streak racing map.

There are still some bugs. For one, it still tells me I'm dividing by zero when you try to go up a cliff and it stops you, I'm still looking into that. Additionally, I had it bug once on me when it wouldn't let me move on an acceptable slope. If anyone figures out if they did something odd for that to happen, let me know. Suggestions or ideas also welcome.

EDIT: Problem was that acceptable slope + normal slowdown was overpowering acceleration. I'm going to need a nitro button :P.



None.

May 5 2010, 4:53 pm LoveLess Post #6

Let me show you how to hump without making love.

Quote from Centreri
I'm going to need a nitro button :P.
Easy as pie. Ask if you need the triggers, it takes 10 seconds to implement.




None.

May 5 2010, 5:04 pm Centreri Post #7

Relatively ancient and inactive

I know, lul.

I'm disappointed that no one's interested enough to try it, though. <_<.



None.

May 5 2010, 5:40 pm ShredderIV Post #8



Could you post the formula you're using that involves slope? It might be possible to move it around to accomodate.



None.

May 5 2010, 5:47 pm Centreri Post #9

Relatively ancient and inactive

Variable - Set P2[(Picked integer)] = P1[(Picked integer)] <-- Point Variable
Variable - Set P1[(Picked integer)] = (Position of Mech[(Picked integer)]) <-- Point Variable
Variable - Set Slope[(Picked integer)] = (((Ground height at P1[(Picked integer)]) - (Ground height at P2[(Picked integer)])) / (Square root(((Power(((X of P1[(Picked integer)]) - (X of P2[(Picked integer)])), 2.0)) + (Power(((Y of P1[(Picked integer)]) - (Y of P2[(Picked integer)])), 2.0)))))) <-- Real Variable
Unit - Set Mech[(Picked integer)] Movement Speed to ((Mech[(Picked integer)] Movement Speed (Current)) - ((Slope[(Picked integer)] * 0.3) + 0.05)) <-- Set Speed
Variable - Set Speed[(Picked integer)] = (Mech[(Picked integer)] Movement Speed (Current)) <-- Update speed variable



None.

May 5 2010, 6:27 pm LostInMyself Post #10



Cool. Gets stuck a lot and gets divide by zero error. Deceleration takes too long in my opinion.
Camera rotation or 3rd person would be nice to have.



None.

May 5 2010, 7:57 pm Centreri Post #11

Relatively ancient and inactive

Updated again, main change is a new nitro. Just press and hold w. It'll be tied with an energy system in place eventually, and I haven't finalized it, this is simply so you have something you can do while testing if you get stuck.



None.

May 5 2010, 8:01 pm Biophysicist Post #12



Definitely needs a bunch of spells. Also, "Mech Combat" sounds odd for a map about Hellions. JUST SAYING DON'T HURT ME K?



None.

May 5 2010, 8:06 pm Centreri Post #13

Relatively ancient and inactive

I'll be adding spells, don't worry. And I like Mech Combat. :(

My triggers are getting messy, I'll need to reorganize everything at some point.



None.

May 6 2010, 2:31 am Biophysicist Post #14



Tried it. It's fun. Kinda like the RC cars little kids play with... which I now want. >.>

But fix the divide by zeroes. Srsly.



None.

May 6 2010, 10:43 pm Biophysicist Post #15



Your choice of hotkeys is really annoying. I always keep accidentally switching back to WASD and being like "wut". It stands to reason that your typical pubbie won't get it at all, then.



None.

May 7 2010, 1:06 am Centreri Post #16

Relatively ancient and inactive

I prefer ESDF, because it makes it easier for everyone to use abilities. I'm hoping more people will follow ESDF, because it really IS superior. Also, fixed the errors by directly checking if denominator is zero. Before, I was just checking if points were identical, but that apparently didn't work, so... yeah. I'm actually very pleased with the 2D stuff now, the only problem left is that it can occasionally get stuck if you go at great speed up a cliff, but that's really unavoidable. I'll just make a suicide button. I'll redo nitro for later, but now it's time to focus on the 3D. I've been telling myself this and putting it off, because it seems hard. :P

Updated version uploaded. There's a hellion for players 1-4 in the corners, making it testable with up to four players. If someone can test if multiplayer works properly, that'd be great - the system I'm using should be extendable for a theoretically infinite amount of mechs, but I'll stick to 16 for sixteen players. When we get the ability to play with 16 players, this should work with that right off the bat.

EDIT: Something malfunctioned when I added players, fixing.
EDIT2: No idea what that was, because it made all of my movement triggers... not work, but whatever it was it suddenly disappeared. Also, two notes: I moved flip function from D to V. You need to be moving very slowly for it to work (purposefully). It basically turns you 180 degrees. And if you're interested in seeing the slope of the ground beneath you, press J. That's my test button for when I'm checking how something's working. Re-uploaded.

Post has been edited 2 time(s), last time on May 7 2010, 1:38 am by Centreri.



None.

May 7 2010, 1:40 am Biophysicist Post #17



You forgot to attach the file.



None.

May 7 2010, 1:42 am Centreri Post #18

Relatively ancient and inactive

I see it...



None.

May 7 2010, 1:44 am Biophysicist Post #19



It wasn't there before, and when I did Ctrl+F and looked for "Attach", nothing came up.

Also, your new control system may be superior, but bnoobs won't get it, and I found it hard to adjust to in testing.

Oh, make the camera follow the Hellion, please.



None.

May 7 2010, 1:47 am Centreri Post #20

Relatively ancient and inactive

Eh. I'm hoping to have a minimum of six abilities. WASD doesn't cut it. It'll force players to move their hands uncomfortably. I'd much rather use ESDF. You're the first one to complain, anyway.

Update. Removed default GUI, added information-dialogs, added camera (unfinished).

Post has been edited 1 time(s), last time on May 7 2010, 2:47 am by Centreri.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
Please log in to shout.


Members Online: Roy