YesNoOk
avatar

HitVelSet (SCTRL) Deprecated (Read 6156 times)

Started by Just No Point, October 29, 2015, 11:34:48 pm
Share this topic:
HitVelSet (SCTRL) Deprecated
New #1  October 29, 2015, 11:34:48 pm
  • ******
    • www.justnopoint.com/
This controller is deprecated. Use
Horizontal only
[State VelSet]
type = velset
trigger1 =
x = gethitvar(xvel)* facing
instead.

or
Vertical only
[State VelSet]
type = velset
trigger1 =
y = gethitvar(yvel)
instead.

When the player has been hit, sets the desired components of the player's velocity to the appropriate gethit velocities.

Required parameters:
none

Optional parameters:
x = x_flag (int)
A nonzero flag means to change that x-component of the player's velocity to the gethit velocity.

y = y_flag (int)
A nonzero flag means to change that y-component of the player's velocity to the gethit velocity.

Example Replacement:
Code:
[State VelSet]
type = velset
trigger1 = Time = 0
x = gethitvar(xvel)* facing
y = gethitvar(yvel)

Notes:
Obsolete.
Last Edit: June 23, 2018, 12:08:40 pm by Odb718
Re: HitVelSet SCTRL)
#2  December 02, 2015, 06:49:37 am
  • ***
    • Canada
I have a question with this, If this controller is deprecated then what should I replace it with because the mugen Docs doesn't say what to replace it with unlike MakeDust, and GameMakeAnim were they say to use a Explod in it's place. (I'm assuming it's just a VelSet but I'm not sure)
Re: HitVelSet SCTRL)
#3  December 02, 2015, 09:26:54 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
I haven't used it so it's one of 2 things

targetvelset
or
velset using gethitvar(xvel)

Normally they say what to use instead. I think this is the gethitvar one tbh, it makes more sense with how it's written as it references player rather than target.

If you are in a movetype = H state, use

[State VelSet]
type = velset
trigger1 =
x = gethitvar(xvel)

 to replicate this functionality.

JNP: I would suggest that if possible you edit in the replacement when something is deprecated. If you don't know what it is, maybe mention during the post and someone can point out the correct option.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: HitVelSet SCTRL)
#4  December 02, 2015, 11:14:00 am
  • ******
  • I will absolve you of your original colors.
    • www.bluehitbox.com
gethitvar(xvel) * facing

To be more accurate.
Re: HitVelSet (SCTRL) Deprecated
#5  December 02, 2015, 03:02:29 pm
  • ******
    • www.justnopoint.com/
Added

JNP: I would suggest that if possible you edit in the replacement when something is deprecated. If you don't know what it is, maybe mention during the post and someone can point out the correct option.
I'll look and see if there are more like this. I should also separate them from the list in the master thread.
Re: HitVelSet (SCTRL) Deprecated
#6  December 04, 2015, 03:55:45 am
  • ***
    • Canada
Thanks for answering.
Re: HitVelSet (SCTRL) Deprecated
#7  July 18, 2016, 09:59:44 am
  • ***
    • Canada
Sorry for a double post but I have noticed a problem with the replacement for HitVelSet. I've noticed this in a few characters that I have converted to 1.0  in that whenever I do an attack that uses the replacement for the HitVelSet it does this

The Problem

It seems to make the opponent on one side only screw up the physics (for the case of this Ken In the video when he hits training from the right side, Training falls downwards to the ground but when Ken hit's training on the left side it acts how the move should launch the opponent)

Here's the link to the Ken that I'm editing currently

Re: HitVelSet (SCTRL) Deprecated
#8  July 18, 2016, 04:06:26 pm
  • ***
  • I hate coding helpers.
You should use the multiplier "* facing" only for the horizontal velocities.

x = gethitvar(xvel) * facing

Vertical velocities have to be written without it:

y = gethitvar(yvel)
Re: HitVelSet (SCTRL) Deprecated
#9  July 18, 2016, 09:02:10 pm
  • ***
    • Canada
You should use the multiplier "* facing" only for the horizontal velocities.

x = gethitvar(xvel) * facing

Vertical velocities have to be written without it:

y = gethitvar(yvel)

Works like a charm now, Just No Point should update the first post to say that
Re: HitVelSet (SCTRL) Deprecated
#10  July 27, 2016, 09:52:54 pm
  • ******
    • www.justnopoint.com/
updated the 1st post