Game Development Community

Mount and Blade Combat type

by Jaren Watkins · in General Discussion · 10/02/2008 (12:13 am) · 5 replies

I was just wonderin if it would be possible to make a Mount and Blade combat system for Torque Like swing your sword by clicking your mouse. By the way if you haven't checked out that game Do It! It is a very well made game by and Indie developer With Tons of mods and even ways to make your own.

#1
10/02/2008 (2:34 am)
Yep! You sure can. The melee resource in combination with 3d-diggers horse pack is what I've been working with for something similar.
#2
10/02/2008 (5:50 am)
@Jaren, there's actually a lot more to the M&B combat than just the simplest part of the whole, which is click = swing. That also existed in Diablo, but the games have fundamentally different combat systems. The melee combat resources out there are a good start, but to get a combat system like it is in Mount&Blade, you're going to need to do a few extra things.

1 ) You'll need at least four animations as in M&B.
2 ) You'll need to set up a range for the x/y axes of your mouse movement that will set which animation to play (this is when, in M&B, you see the arrows indicating in which direction your attack will swing).
3) You'll need a good collision setup for your melee weapons, and this is the heart of and difference between many melee setups and M&B(the melee resources out there are somewhat lacking this regard, and this is probably the item which will require the most time investment vs. the others). I suggest using primitives like capsules and such.

The other component of course is the directional blocking. I'm relatively sure that in M&B it exists as basically a boolean sort of thing, where if you block after the attack occurs, it sets the bit to say that a given attack will be blocked from that direction, and sets it off.

Edit: And technically, M&B is a click = pull back, release = swing, method, which is subtly different.

OT: How long have you guys been playing the game? Just curious, since if it's been a while you'd probably recognize my nick from the M&B forums (n00854180t).
#3
10/02/2008 (10:49 am)
Hmm Ok yea thanks for the info Yes Nick I have seen YOu on the Forums I just registered yesterday but Yea I've been browsing the forum for a few months now!
#4
10/02/2008 (1:37 pm)
There is also a resource that gives you directional modifiers depending upon mouse and/or movement direction from the keyboard. You can subtly change the weapon code to give you a "charge up" ability. From which you can do the click->pull back, release-> swing method. The way I did it allows you to enhance the strength of your attack by doing so.

Blocking is a simple exercise in random numbers modified by a defensive skill to give automatic blocking in certain circumstances. Or you can have independent directional blocking by holding a certain key/alt mouse button - looks silly though if you don't a shield or other weapon in which to parry with.

The biggest hurdles to overcome would be the model animations for your attacks and blocking, and of course the collision for the melee weapons would have to be improved from the stock resources but is definitely possible.
#5
10/02/2008 (4:17 pm)
Quote:Blocking is a simple exercise in random numbers modified by a defensive skill to give automatic blocking in certain circumstances.
This is the opposite of how it works in Mount&Blade. It's not just a random die roll that's modified by a skill, just like the attacks aren't. That's most of why the game's combat system is even worthwhile. It doesn't use the played-out MMORPG combat system of "Press a button, get result, you as player have 0 control over the outcome".

Also, if you're going for a Mount&Blade combat, having press = "charge up" (i.e., pulling back and giving more power to the attack) isn't really the same either. In M&B, damage is determined by relative speed (your velocity or weapon velocity (or both) - your enemy's) not based on "how long you charge" sort of mechanic. The initial press merely serves to set your animation into the proper position for the start of the attack.

Now, I'm not saying either of those things are not valid ways to do it. I'm just pointing out that those ways are definitely not the same as those present in M&B.