Working melee (more or less)

Working melee (more or less)

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Working melee (more or less)

Post by imbaczek »

Still not perfect due to pathfinding issues, but:

http://neoteric.pl/~imbaczek/spring/melee_working.avi (xvid codec or download VLC.)

I'll post a patch shortly. (It includes KDR's weaponMuzzlePos patch.)

This is almost stock gundam 1.11. The only difference is in the beamsword weapon - it gained three extra tags:

Code: Select all

minintensity=1.0;
targetborder=1.0;
cylindertargetting=1.0;
minIntensity is a beamlaser-specific tag which allows you to adjust minimum damage (it normally is proportional to distance traveled by the beam.) Not to be confused with intensity tag, which controls visuals.

targetBorder defines a virtual new sphere of radius unit_radius*tag_value, which point closest to the attacker gets aimed at (instead of target's center.)

cylinderTargetting is a float that makes the weapon test range in 2d instead of 3d, but only up to a height difference given by attacker_radius*tag_value. This really needs a picture to explain why it's needed... maybe I'll make one after I prepare the patch.

PF issues can be reduced by using KDR's alternate script (allow attacking from every angle). (I hope ;p)
[KnoX]ElementalGizmo
XTA Developer
Posts: 266
Joined: 24 Aug 2006, 01:33

Post by [KnoX]ElementalGizmo »

NICE ONE!

Animation still needs a lil work but its a big step forward dude! I hear people have been working on melee for quite some time, congrats to all involved :P
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Keep in mind I haven't tested the patch for all weapontypes yert, it shouldn't be committed before that's done.
pintle
Posts: 1763
Joined: 19 Dec 2005, 16:01

Post by pintle »

Awesome
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

KDR: Ok.

A distributed VCS would be of great help now. Tell me when your patch gets committed to svn so I can submit mine without dependencies.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

I haven't submitted it for committing yet. You can include it with your patch but I wanted to warn you to check if all weapontypes work properly.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

Patch submitted in the same place as before - http://spring.clan-sy.com/mantis/view.php?id=550. KDR's patch included only in BeamLaser.cpp, all other weapons still use weaponPos (I'm not sure if it still makes sense, but it worked before, so...)
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

That won't compile, I've defined weaponMuzzlePos in the weapon.h and .cpp.
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Post by 1v0ry_k1ng »

holy crap the gundam building explosions look straight outa C&C 3, nice one. more to the point, MELEE WORKS :D
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

I've run a test through all weapontypes (including Rifle and Melee) AFAIK, none seemed to have messed up.

EDIT: Whoops, it messed emit-sfx up.
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

Most anti climactic video for a feature release ever :P

Massively excited about this one still :)
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

KDR_11k wrote:That won't compile, I've defined weaponMuzzlePos in the weapon.h and .cpp.
I was not precise - your patch is included in weapon.cpp as the changelog states, but only beamlaser actually uses weaponMuzzlePos.
Post Reply

Return to “Game Development”