ForceFeedBack in mugen ?

Started by KOFHƎRO77, August 18, 2018, 02:19:50 PM

Previous topic - Next topic

KOFHƎRO77

I was wondering if i can get my controller to vibrate,for example when i get hit.i saw a thread that has the same topic but its from the winmugen days so think it should be supported by now.

VictorCYBR

In fact, there is a Force Feedback ctrl, but since I play on keyboard I don't know if this works...

KOFHƎRO77

So the character should have the code so it could work ?

VictorCYBR

Yes. An example:


[State 5000, FFB Light]
type = ForceFeedback
trigger1 = anim = 5000
trigger2 = anim = 5010
persistent = 0
time = 6
waveform = square

[State 5000, FFB Medium]
type = ForceFeedback
trigger1 = anim = 5001
trigger2 = anim = 5011
persistent = 0
time = 8
waveform = sinesquare
ampl = 110,-1,-.3

[State 5000, FFB Hard]
type = ForceFeedback
trigger1 = anim = 5012
trigger2 = anim = 5002
trigger3 = anim = 5030
persistent = 0
time = 15
waveform = sinesquare
ampl = 140


As you can probably tell, 5000+ are 'being hit' states.

KOFHƎRO77

So if i put this in a character's cns will it work or its a uncomplete code ?

VictorCYBR

I just 'copy paste' a small part of the code. You'd have to put more FFB ctrls in other hit states of the char. If this works? Well... it should. As I said, I play on keyboard and I can't test it.

Bruizerhands

Did this work for you? I have PS5 controller
"Never argue with an idiot. They will drag you down to their level and beat you with experience." Mark Twain