YesNoOk
avatar

Projectile Reflection (Read 13018 times)

Started by SSJBJ69, July 14, 2005, 02:11:05 am
Share this topic:

SSJBJ69

Projectile Reflection
#1  July 14, 2005, 02:11:05 am
100% reliable!! :)

Reversal
Code:
[State Reversal]
type = reversaldef
trigger1 = !movehit
reversal.attr = SCA, AP
p2stateno = 1901

Change Direction and Reset
Code:
[Statedef 1901];projectile reflected

[State Turn]
type = turn
trigger1 = !time

[State Selfstate]
type = selfstate
trigger1 = 1
value = prevstateno
ignorehitpause = 1

Application--var(59) even = P2 reversal, var(59) odd = P1 reversal/sending  Use (var(59)%2)=1 for enemy projectile hitdefs and use (var(59)%2)=0 for friendly attacking projectiles.
Code:
[Statedef 1601];projectile state
[...]
ctrl    = 0*((var(0):=root, anim) + (var(59):=var(59) + 1))

Own reversal
Code:
[State Double Reflect]
type = changestate
trigger1 = (var(59)%2) = 0;facing != root,facing
trigger1 = root, stateno = 1900 && (root, animelem = 7 || root, animelem = 8 || root, animelem = 9) && abs(pos X -root, pos X) = [0,140]
trigger1 = pos Y = [-30,90]
value = 1901
Notice the pos x/y ranges mimic his collisions during his reversal move.

I have to thank GCNMario for his Guile and reversal code for which I copied directly initially.  If it's originally his that is. :P ;D  I'm not so sure !movehit is needed, but I left it there anyway.  I tried it on Evil Ryu as another character just in case I was only getting Vega vs. Vega results and ;) I wasn't.  Though ER would need to consider to adjust the position for when the helper gets mirrored and affectteam = F when inverted.  But friendly reversal won't work for teammates. :(
 
Re: Projectile Reflection
#2  July 14, 2005, 05:12:42 am
  • ******
  • Video Game Veteran
  • Can you do it? SUREYOUCAN!
    • USA
    • gcnmario.free.fr
Oh, My, GOD..... What has happened to the community?  :o

"You must defeat my flaming
dragon punch to stand a chance."
Re: Projectile Reflection
New #3  July 14, 2005, 05:56:01 am
  • avatar
  • ******
Oh, My, GOD..... What has happened to the community? :o

I believe you read the sentences where he talks about you incorrectly. :P
It should read:

"I have to thank GCNMario for his Guile and reversal code for which I copied directly initially.  If it's originally his that is." :P  ;D
"I'm not so sure !movehit is needed, but I left it there anyway."

And NOT: "I have to thank GCNMario for his Guile and reversal code for which I copied directly initially.  If it's originally his that is. I'm not so sure !".
Last Edit: July 14, 2005, 05:57:46 am by BlackJack
Re: Projectile Reflection
#4  July 14, 2005, 06:07:12 am
  • ******
  • Video Game Veteran
  • Can you do it? SUREYOUCAN!
    • USA
    • gcnmario.free.fr
Yes, I know what he's supposed to mean. But in a way I look at it, it looked like he wanted to take/steal the code and use it for himself. Which is where my reply statement comes in. :P

"You must defeat my flaming
dragon punch to stand a chance."
Re: Projectile Reflection
#5  July 14, 2005, 07:10:07 am
  • avatar
  • ******
To me, the only thing that looks like that is "which I copied directly initially" (and it implies there have been enough modifications not to be called "code theft").

But since I didn't look at your code, can you tell us if this code is indeed too similar to yours?
Re: Projectile Reflection
#6  July 14, 2005, 10:09:20 am
  • ***
  • The last son of Krypton...
    • www.presstart.cjb.net
He tweaked the code a great deal. So I see no problem!
Won't you let creators use this code Mario??

Proper credit is given, isn't it enough??
Re: Projectile Reflection
New #7  July 18, 2005, 01:25:24 am
  • avatar
  • ******
@Erradicator: please calm down. I'm positive Messatsu and GCNMario will come to an agreement and in the end everyone will benefit from their searches/works. :angel:

EDIT: OFFTOPIC: While you're here, Erradicator, were you going to update Hulk any time soon?
IINM he never publically released the updated Hulk I sent him, but I could be wrong, it's been long (2 years  :o ) since we last talked about that: http://www.mugenguild.com/forumx/index.php?topic=4610.msg45408#msg45408 :P
Last Edit: July 18, 2005, 01:27:00 am by BlackJack
Re: Projectile Reflection
#8  July 18, 2005, 04:11:31 am
  • ******
  • Video Game Veteran
  • Can you do it? SUREYOUCAN!
    • USA
    • gcnmario.free.fr
Well.... I guess I can leave my source code open source. It's just that something like this was a bit un-expected. ;)

"You must defeat my flaming
dragon punch to stand a chance."
Re: Projectile Reflection
#9  July 22, 2005, 06:35:49 am
  • ****
  • Lost all his MUGEN stuff in hard disk crash. :(
  • CHIKARA TO EIKOU!!!
    • Philippines
    • Skype - o_hermanm
    • www.rotbrc.com
I don't know if the bug is still there, but last time I tried to send the same reversed helper AGAINST its master, the reversaldef still kept attacking the already-reversed helper if the clsn 1 and 2 is still in range.

Orochi Herman: MUGEN Creator, Producer Video Editor and Web Programmer

And possibly more other shady things lol

https://www.facebook.com/OrochiHerman/

PerfectAngel

Re: Projectile Reflection
New #10  July 23, 2005, 04:35:38 am
I'm guessing you aren't disabling the projectile correctly during the inversion.  You can use my excact implementation to test in various cases since my Vega has an inversion that is also capable of attacking the enemy and a reversable projectile.
http://home.comcast.net/~messatsu/MUGEN/Vega9.rar

To make things easier on me, send your comments or Orochi character to me at messatsu@gmail.com.  Proxy servers are worse than going back 2 56K. --;  And that's not even considering that my location becomes teh bombed. --; --;
 
Last Edit: July 24, 2005, 02:37:32 am by Byakko