![]() |
|
|
#1 |
|
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)? |
|
|
|
|
|
#2 |
|
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 | 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!" |
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jul. 9th, 2011
Posts: 2
|
So how then would I save input direction and where?
Thanks! |
|
|
|
|
|
#4 |
|
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 | 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!" |
|
|
|
|
|
|
#5 |
|
Nope, combos imput is in xPlayer.PlayerTick...
__________________
Classified SR-2 | 2x Xeon W5580 - 3.20 GHz | 12x 2GB Kingston KHX2000C9D3T1K3/6GX | 2x MARS II/2DIS/3GD5 | SAMSUNG 830 MZ-7PC512D/AM 2.5" 512GB SATA III MLC | 4x Spinpoint F3EG HD503HI 500GB 5400 16MB SATA 3.0Gb/s | |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|