YesNoOk
avatar

IsRageNeko's workshop (Help With Code Needed) (Read 12584 times)

Started by IsRageNeko, August 16, 2019, 03:26:56 am
Share this topic:
Re: IsRageNeko's workshop (Help With Code Needed)
#81  October 20, 2019, 01:53:03 am
  • **
  • Miku-Chan's #1 fan
  • A random guy that exists
    • Chile
If you check DW's other characters for example, they'll usually have specific statedefs for the Projectile's Hitpause.
The Hitspark statetype would usually be present there.

I can't find any of the code you're telling me :\
Current project: Fiona Belli (Delayed), Personal Project
Current CS WIP: Lumei, Personal Project
Project Thread: http://mugenguild.com/forum/topics/isragenekos-workshop-help-wanted-187595.0.html
CS Patches Thread: http://mugenguild.com/forum/topics/isragenekos-cs-patches-187740.0.html
Latest Release: Shingo's CS
Re: IsRageNeko's workshop (Help With Code Needed)
#82  October 20, 2019, 01:55:56 am
  • ****
  • The Quality Assurance Boy
    • UK
Normally in his characters, using Sagat as an example, you'll see a Statedef under the Projectiles in Helpers.cns called Hit Pause, these lines of code, for example, will be present.
Code:
[State 1011, HitSound]
type = PlaySnd
trigger1 = MoveContact = 1 && NumTarget
trigger1 = !(Target, HitShakeOver)
value = ifElse(MoveGuarded, 130, 2), ifElse(MoveGuarded, 0, 6)
channel = 3
ignorehitPause = 1

[State 1011, Hit Spark]
type = Helper
trigger1 = MoveContact = 1 && NumTarget
trigger1 = !(Target, HitShakeOver)
helperType = Normal
stateNo = ifElse(MoveGuarded, 8001, 8013)
ID = 8000
name = "Spark"
posType = P1
pos = ifElse(P2Dist x < 0, 0, ifElse(P2Dist x < 20, ceil(P2Dist x), 20)), 0
ownPal = 1
facing = -1
size.xScale = 1
size.yScale = 1
pauseMoveTime = 65535
superMoveTime = 65535
ignoreHitPause = 1
Obviously you'll have to change the pos though and maybe sound too.
Re: IsRageNeko's workshop (Help With Code Needed)
#83  October 20, 2019, 02:11:13 am
  • **
  • Miku-Chan's #1 fan
  • A random guy that exists
    • Chile
Normally in his characters, using Sagat as an example, you'll see a Statedef under the Projectiles in Helpers.cns called Hit Pause, these lines of code, for example, will be present.
Code:
[State 1011, HitSound]
type = PlaySnd
trigger1 = MoveContact = 1 && NumTarget
trigger1 = !(Target, HitShakeOver)
value = ifElse(MoveGuarded, 130, 2), ifElse(MoveGuarded, 0, 6)
channel = 3
ignorehitPause = 1

[State 1011, Hit Spark]
type = Helper
trigger1 = MoveContact = 1 && NumTarget
trigger1 = !(Target, HitShakeOver)
helperType = Normal
stateNo = ifElse(MoveGuarded, 8001, 8013)
ID = 8000
name = "Spark"
posType = P1
pos = ifElse(P2Dist x < 0, 0, ifElse(P2Dist x < 20, ceil(P2Dist x), 20)), 0
ownPal = 1
facing = -1
size.xScale = 1
size.yScale = 1
pauseMoveTime = 65535
superMoveTime = 65535
ignoreHitPause = 1
Obviously you'll have to change the pos though and maybe sound too.

Thanks, it worked perfectly: https://streamable.com/dkng9
Current project: Fiona Belli (Delayed), Personal Project
Current CS WIP: Lumei, Personal Project
Project Thread: http://mugenguild.com/forum/topics/isragenekos-workshop-help-wanted-187595.0.html
CS Patches Thread: http://mugenguild.com/forum/topics/isragenekos-cs-patches-187740.0.html
Latest Release: Shingo's CS
Re: IsRageNeko's workshop (Help With Code Needed)
#84  October 20, 2019, 02:16:39 am
  • ****
  • The Quality Assurance Boy
    • UK
I feel like those sparks should be a bit higher seeing the projectile's look.
Re: IsRageNeko's workshop (Help With Code Needed)
#85  October 20, 2019, 02:18:14 am
  • **
  • Miku-Chan's #1 fan
  • A random guy that exists
    • Chile
Current project: Fiona Belli (Delayed), Personal Project
Current CS WIP: Lumei, Personal Project
Project Thread: http://mugenguild.com/forum/topics/isragenekos-workshop-help-wanted-187595.0.html
CS Patches Thread: http://mugenguild.com/forum/topics/isragenekos-cs-patches-187740.0.html
Latest Release: Shingo's CS
Re: IsRageNeko's workshop (Help With Code Needed)
#86  October 20, 2019, 07:35:48 pm
  • **
  • Miku-Chan's #1 fan
  • A random guy that exists
    • Chile
Current project: Fiona Belli (Delayed), Personal Project
Current CS WIP: Lumei, Personal Project
Project Thread: http://mugenguild.com/forum/topics/isragenekos-workshop-help-wanted-187595.0.html
CS Patches Thread: http://mugenguild.com/forum/topics/isragenekos-cs-patches-187740.0.html
Latest Release: Shingo's CS
Last Edit: October 20, 2019, 07:52:34 pm by IsRageNeko
Re: IsRageNeko's workshop (Help With Code Needed)
#87  October 20, 2019, 07:52:23 pm
  • ****
  • The Quality Assurance Boy
    • UK
You've gotta change the y coordinate on the pos = line. which is the last 0 most likely.
Re: IsRageNeko's workshop (Help With Code Needed)
#88  October 20, 2019, 07:54:16 pm
  • **
  • Miku-Chan's #1 fan
  • A random guy that exists
    • Chile
Current project: Fiona Belli (Delayed), Personal Project
Current CS WIP: Lumei, Personal Project
Project Thread: http://mugenguild.com/forum/topics/isragenekos-workshop-help-wanted-187595.0.html
CS Patches Thread: http://mugenguild.com/forum/topics/isragenekos-cs-patches-187740.0.html
Latest Release: Shingo's CS
Re: IsRageNeko's workshop (Help With Code Needed)
#89  October 20, 2019, 08:00:20 pm
  • ****
  • The Quality Assurance Boy
    • UK
No it's the pos line in the Hitsparks section like what I posted.
Re: IsRageNeko's workshop (Help With Code Needed)
#90  October 20, 2019, 08:03:09 pm
  • **
  • Miku-Chan's #1 fan
  • A random guy that exists
    • Chile
This?:
Code:
pos = ifElse(P2Dist x < 0, 0, ifElse(P2Dist x < 20, ceil(P2Dist x), 20)), 0
Current project: Fiona Belli (Delayed), Personal Project
Current CS WIP: Lumei, Personal Project
Project Thread: http://mugenguild.com/forum/topics/isragenekos-workshop-help-wanted-187595.0.html
CS Patches Thread: http://mugenguild.com/forum/topics/isragenekos-cs-patches-187740.0.html
Latest Release: Shingo's CS
Re: IsRageNeko's workshop (Help With Code Needed)
#91  October 20, 2019, 08:06:41 pm
  • ****
  • The Quality Assurance Boy
    • UK
Yes, that's where I was hinting at.
Re: IsRageNeko's workshop (Help With Code Needed)
#92  October 20, 2019, 08:08:21 pm
  • **
  • Miku-Chan's #1 fan
  • A random guy that exists
    • Chile
Current project: Fiona Belli (Delayed), Personal Project
Current CS WIP: Lumei, Personal Project
Project Thread: http://mugenguild.com/forum/topics/isragenekos-workshop-help-wanted-187595.0.html
CS Patches Thread: http://mugenguild.com/forum/topics/isragenekos-cs-patches-187740.0.html
Latest Release: Shingo's CS
Re: IsRageNeko's workshop (Help With Code Needed)
#93  October 20, 2019, 08:42:13 pm
  • ****
  • The Quality Assurance Boy
    • UK
The 0 at the end, pos is on the xy axis if that helps for the future.

I think the MFG discord can assist you if necessary, I'm not on there but that's what I always hear.
Re: IsRageNeko's workshop (Help With Code Needed)
#94  October 20, 2019, 09:14:39 pm
  • **
  • Miku-Chan's #1 fan
  • A random guy that exists
    • Chile
Current project: Fiona Belli (Delayed), Personal Project
Current CS WIP: Lumei, Personal Project
Project Thread: http://mugenguild.com/forum/topics/isragenekos-workshop-help-wanted-187595.0.html
CS Patches Thread: http://mugenguild.com/forum/topics/isragenekos-cs-patches-187740.0.html
Latest Release: Shingo's CS
Re: IsRageNeko's workshop (Help With Code Needed)
#95  October 20, 2019, 10:00:14 pm
  • ****
  • The Quality Assurance Boy
    • UK
For the guardsounds, I may suggest adding something like this to the Hit Pause section.
[State 1011, HitSound]
type = PlaySnd
trigger1 = MoveContact = 1 && NumTarget
trigger1 = !(Target, HitShakeOver)
value = ifElse(MoveGuarded, 130, 2), ifElse(MoveGuarded, 0, 6)
channel = 3
ignorehitPause = 1
Re: IsRageNeko's workshop (Help With Code Needed)
#96  October 22, 2019, 09:00:27 pm
  • **
  • Miku-Chan's #1 fan
  • A random guy that exists
    • Chile
Current project: Fiona Belli (Delayed), Personal Project
Current CS WIP: Lumei, Personal Project
Project Thread: http://mugenguild.com/forum/topics/isragenekos-workshop-help-wanted-187595.0.html
CS Patches Thread: http://mugenguild.com/forum/topics/isragenekos-cs-patches-187740.0.html
Latest Release: Shingo's CS