News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > UnrealEngine2 Runtime > Programming

Reply
 
Thread Tools Display Modes
Old 9th Jul 2011, 10:25 AM   #1
firekid
Registered User
 
Join Date: Jul. 9th, 2011
Posts: 2
Combo Support

I am working on a project for a friend, and he needs me to implement combo support.

I understand that I will probably be using InputMatching and ProcessInputMatching in PlayerController and PlayerInput to accomplish this, but I am extremely new to this area of development and to this genre, How would I implement a simple combo (such as down, right, up)?
firekid is offline   Reply With Quote
Old 9th Jul 2011, 11:54 AM   #2
Wormbo
 
Wormbo's Avatar
 
Join Date: Jun. 4th, 2001
Location: Germany
Posts: 5,752
Combos, and also dodging, is detected by monitoring activity and inactivity of directional input. Basically you save the detected input direction and compare it with the direction of the last tick. You store the input direction at the end of processing in a variable either in PlayerController or PlayerInput.
__________________
Wormbo's UT/UT2004/UT3 mods | YouTube channel | PlanetJailbreak/JDN | Unreal Wiki | Liandri Archives
Everything you ever wanted to know about replication| UnrealScript security considerations
<elmuerte> you shouldn't do all-nighters, it's a waste of time and effort
<TNSe> nono
<TNSe> its always funny to find code a week later you dont even remember writing
<Pfhoenix> what's worse is when you have a Star Wars moment
<Pfhoenix> "Luke! I am your code!" "No! Impossible! It can't be!"
Wormbo is online now   Reply With Quote
Old 9th Jul 2011, 12:02 PM   #3
firekid
Registered User
 
Join Date: Jul. 9th, 2011
Posts: 2
So how then would I save input direction and where?

Thanks!
firekid is offline   Reply With Quote
Old 9th Jul 2011, 12:42 PM   #4
Wormbo
 
Wormbo's Avatar
 
Join Date: Jun. 4th, 2001
Location: Germany
Posts: 5,752
Get the UT2004 UScript source code (it's freely available) and have a look at the Engine.PlayerInput class.
__________________
Wormbo's UT/UT2004/UT3 mods | YouTube channel | PlanetJailbreak/JDN | Unreal Wiki | Liandri Archives
Everything you ever wanted to know about replication| UnrealScript security considerations
<elmuerte> you shouldn't do all-nighters, it's a waste of time and effort
<TNSe> nono
<TNSe> its always funny to find code a week later you dont even remember writing
<Pfhoenix> what's worse is when you have a Star Wars moment
<Pfhoenix> "Luke! I am your code!" "No! Impossible! It can't be!"
Wormbo is online now   Reply With Quote
Old 16th Jul 2012, 01:25 PM   #5
VendorX
Registered User
 
VendorX's Avatar
 
Join Date: Aug. 2nd, 2010
Location: BXL/Paris
Posts: 196
Quote:
Originally Posted by Wormbo View Post
Get the UT2004 UScript source code (it's freely available) and have a look at the Engine.PlayerInput class.
Nope, combos imput is in xPlayer.PlayerTick...
__________________
Classified SR-2 | 2x Xeon W5580 - 3.20 GHz | 12x 2GB Kingston KHX2000C9D3T1K3/6GX | 2x ROG MARS760-4GD5 | SAMSUNG 830 MZ-7PC512D/AM 2.5" 512GB SATA III MLC | 4x Spinpoint F3EG HD503HI 500GB 5400 16MB SATA 3.0Gb/s |
VendorX is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:35 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer