YesNoOk
avatar

Can you make contact/redirect your own helper? (Read 14296 times)

Started by MGMURROW, October 21, 2024, 11:22:46 pm
Share this topic:
Can you make contact/redirect your own helper?
#1  October 21, 2024, 11:22:46 pm
  • avatar
  • ***
    • https://sites.google.com/site/mgmurrow/
I am coding Ibuki’s bomb v-trigger move and was needing help, I can throw the bomb but I cannot hit the bomb to move it closer to P2. When ibuki throws the bomb P2 can hit it, moving it towards P1 but P1 cannot hit it back towards P2. P2 is hitting the bomb back towards P1 with a hitoverride(don’t know if that’s the issue or best way for it to be coded).

Start at 2:30 in the video


Thanks for any help

MGMURROW
Re: Can you make contact/redirect your own helper?
#2  October 22, 2024, 09:54:25 am
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
Check C18 Z2's blitz fireball. Her projectile can be hit by P1 and P2.

Basically your hitdefs will need to have the "affectteam = " parameter set as B (Both) or have different hitdef conditions depending if the projectile is on screen or not.
Alternatively, you can have the helper bomb to react different based on P1's stateno, movetype and distance from root. In other words, if P1 makes a low kick at a specific distance that would hit the projectile, then move the projectile forward.
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: Can you make contact/redirect your own helper?
#3  October 24, 2024, 12:51:22 am
  • avatar
  • ***
    • https://sites.google.com/site/mgmurrow/
maybe varset will help, can someone tell me how to display a helpers variable to the clipboard? or where i can see a helpers variable?

thanks again

MGMURROW
Re: Can you make contact/redirect your own helper?
#4  October 25, 2024, 09:24:31 am
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
helper(xxx),var(xxx)
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: Can you make contact/redirect your own helper?
#5  October 31, 2024, 05:12:46 am
  • *****
  • Shame on you!
    • USA
You can use displaytoclipboard inside the helper's state. Set it up like normal. use CTRL+D to cycle to the helper. It'll disappear once the helper destroyself's, but when you make a duplicate the displaytoclipboard will show like normal again.
I dont think you'll need a variable to do this. Helpers spawn with Life. You should be able to make a default hitdef for affectteam = method. Then just paste it into all the attacks you think should move it. Set the trigger(s) to that state's hitdef and you should be good.
If you want the bomb to move different speeds and distances you can adjust the hitdef like normal I'd think.
vVv N00bSaibot & Muramasa RoofTop vVv