Simple Melee System
by James Thompson · 08/17/2006 (12:07 pm) · 185 comments
I know there are many resources on this, but none of them worked with the head or they were hard to integrate so I have packaged up a simple melee system.
This resource includes:
-> All necessary engine code, integrated into stock TGE 1.5.2
-> All necessary script, integrated into stock TGE 1.5.2
-> All player animations
-> A sword
Most of this code is from realmwars and other resources, I have just integrated it into stock TGE and packaged it up.
You need winrar or any .rar extractor to extract. I recommend you use WinMerge to make sure you get all the code copied.
That said, good luck integrating this and good luck with your game :)
Due to filesize limit you can download the file from here
TGEA version can be found here.
Notes
-> If you are using a custom slash animation, you will to have an animation sequence name "look".
-> Each melee weapon needs a "damageStart" node and a "damageEnd" node embedded in the model.
-> Thanks to Ryan Edmar for spotting my stupid error
Updates
-> Updated for integration with TGE 1.5.2 (thanks to James McGhee)
-> 10/08/07 - one or two very minor updates (no reason to re-download)
This resource includes:
-> All necessary engine code, integrated into stock TGE 1.5.2
-> All necessary script, integrated into stock TGE 1.5.2
-> All player animations
-> A sword
Most of this code is from realmwars and other resources, I have just integrated it into stock TGE and packaged it up.
You need winrar or any .rar extractor to extract. I recommend you use WinMerge to make sure you get all the code copied.
That said, good luck integrating this and good luck with your game :)
Due to filesize limit you can download the file from here
TGEA version can be found here.
Notes
-> If you are using a custom slash animation, you will to have an animation sequence name "look".
-> Each melee weapon needs a "damageStart" node and a "damageEnd" node embedded in the model.
-> Thanks to Ryan Edmar for spotting my stupid error
Updates
-> Updated for integration with TGE 1.5.2 (thanks to James McGhee)
-> 10/08/07 - one or two very minor updates (no reason to re-download)
About the author
Been a programmer for a few years, started when I was quite young and got into it so carried on through my life. Currently studying at Kent Uni in Canterbury.
Recent Blogs
• AFXSpellCooldowns• TGEA material.cs Generator
• User Account System
• Check for update
• Save/Load game system
#182
My problem is that when I equip the sword & press the mouse fire button and nothing happens.
I checked out the other posts on this but I'm not sure which ones offer a real answer, as I'm not sure what the problem is or if they apply. I'm using TGEA 1.7.1 & I double checked all the code added to the engine & it's right, no compile errors, it mounts correctly, I don't see any errors in Torsion & the code in script looks correct, Nothing wrong wit the Sword givin in the download, animations for TorqueOrc work in Torque Show Tool Pro. Sooo... lol I'm stumpped ???
EDIT: Nevermind, forgot that this is the TGE fourm not the TGEA fourm sry :)
04/28/2009 (8:19 pm)
HeyMy problem is that when I equip the sword & press the mouse fire button and nothing happens.
I checked out the other posts on this but I'm not sure which ones offer a real answer, as I'm not sure what the problem is or if they apply. I'm using TGEA 1.7.1 & I double checked all the code added to the engine & it's right, no compile errors, it mounts correctly, I don't see any errors in Torsion & the code in script looks correct, Nothing wrong wit the Sword givin in the download, animations for TorqueOrc work in Torque Show Tool Pro. Sooo... lol I'm stumpped ???
EDIT: Nevermind, forgot that this is the TGE fourm not the TGEA fourm sry :)
#183
c:\kopi af afx_combopack\engine\game\player.cc(1431) : error C2086: 'F32 y' : redefinition
1> c:\kopi af afx_combopack\engine\game\player.cc(1422) : see declaration of 'y'
I had problems with copy pasting the bits of codes (all the // SphyxGames -> Melee commented parts) So i copy pasted all of the code from shapeImage.cc into my project... i run tge 1.5.2 and AFX 1.0
07/10/2009 (8:12 am)
I tried to implement into Arcane FX running a* pathfinding resource but after fighting with it for a small time i got it down to only show this error:c:\kopi af afx_combopack\engine\game\player.cc(1431) : error C2086: 'F32 y' : redefinition
1> c:\kopi af afx_combopack\engine\game\player.cc(1422) : see declaration of 'y'
I had problems with copy pasting the bits of codes (all the // SphyxGames -> Melee commented parts) So i copy pasted all of the code from shapeImage.cc into my project... i run tge 1.5.2 and AFX 1.0
#184
11/01/2009 (6:58 pm)
i'm trying to implement this into tgea 1.8.1. i already have it recompiled. I'm wondering wher to put the .cs files
#185
03/22/2010 (9:03 am)
Used portions of this to convert the final code (and other resources) to T3D. Watch for a new resource soon.
Torque Owner Cameron Stitt
any tips??