Football Arena Walls & Bounceoff

Medeam

New Member
Reaction score
3
This should work, you will have to heavily modify it however, it works better then regions/rects.
 

Attachments

  • For your football.w3x
    16.9 KB · Views: 165

Mythes

Member
Reaction score
7
@Kaerf

Ball enters in the range of Ball ?
That would be a infinite loop of events (= crash) or a event that would never happen....

@Medeam

Tried out your map... Will tweak it A LOT but it gave me some ideas of something's that can work...
Thanks =)
Will post here any updts.



@Update

Ok, i got this so far:

Trigger:
  • Arena
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 0 to 11, do (Actions)
        • Loop - Actions
          • Unit - Create 1 WALL for Neutral Passive at ((Center of Arena <gen>) offset by ((-704.00 + (128.00 x (Real((Integer A))))), 704.00)) facing 270.00 degrees
          • Set WallType = (Unit-type of (Last created unit))
          • Unit - Create 1 WALL for Neutral Passive at ((Center of Arena <gen>) offset by ((-704.00 + (128.00 x (Real((Integer A))))), -704.00)) facing 270.00 degrees
          • Set WallType = (Unit-type of (Last created unit))
          • Unit - Create 1 WALL for Neutral Passive at ((Center of Arena <gen>) offset by (704.00, (-704.00 + (128.00 + (Real((Integer A))))))) facing 270.00 degrees
          • Set WallType = (Unit-type of (Last created unit))
          • Unit - Create 1 WALL for Neutral Passive at ((Center of Arena <gen>) offset by (-704.00, (-704.00 + (128.00 + (Real((Integer A))))))) facing 270.00 degrees
          • Set WallType = (Unit-type of (Last created unit))
      • Unit Group - Pick every unit in (Units of type WallType) and do (Actions)
        • Loop - Actions
          • Trigger - Add to Ball kickback <gen> the event (Unit - A unit comes within 128.00 of (Picked unit))


This creates a "Dummy Locust" at each point of a pre-existing wall, and makes them WallType unit-type.
Then, I make a Event for this trigger:

Trigger:
  • Ball kickback
    • Events
    • Conditions
      • (Triggering unit) Equal to Ball
    • Actions
      • Set EnterAngle = (Facing of (Triggering unit))
      • Set ExitAngle = (90.00 - EnterAngle)
      • Unit - Order (Triggering unit) to Stop


I put "Order unit to Stop" to avoid the ball going any further from the wall (didn't try the kickback effect just yet...)
But, for some reason, that isn't working... Ideas?
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
What I meant was:
Trigger:
  • Rebound
    • Events
      • A unit comes within 100.00 of Ball
    • Conditions
      • (Unit-type of (Triggering Unit)) Equal to Barrier
    • Actions
      • Rebounding actions
 

Mythes

Member
Reaction score
7
@Kaerf
Interesting. Shall try right away.
Post results 2morrow or some time soon.


Doesn't work.
When you select "A unit comes within *range* of <Unit>*, this <Unit> must be selected in the map or be preset.
I have no idea how to preset with GUI.
I had an idea for the "single ball" thing that may work...
I was going to make a multi-creation trigger for the ball, thus being something like this:

1 - Ball is created in the center of the map.
2 - A Hero passes near the ball and "acquires it".
3 - Acquiring the ball = the ball is removed from the game and hero who got the ball recieves the buff "Has the Ball".
4 - Heroes have a skill (Shoot!) that can only works if the hero have the ball (thus, if activated when the hero doesn't have the ball, it does nothing).
5 - If heroes activate the Shoot!, it creates a ball right in front of him and he shoots the ball in the direction he is facing.
6 - If the ball comes close to another Hero, we go back to step 2 again.

That would require that a new ball was created every time a hero would shoot it.

But I'll try "hiding" the ball, and, when a player shoots, it'll "unhide the ball" and "move it to front of the shooter".
But this will take some time, and I have none for some while. Sometime soon, I'll post the results.

Thanks again,
Myt.
 

Mythes

Member
Reaction score
7
I'm at a lost... I'm posting my map and hoping that someone can tell me how to fix this...
I'm trying 3 things:

1 - When the ball is on the field and a unit approaches it (being the unit a hero), the ball "disappears" and the player recieves a buff. (already accomplished)

2 - When the player has the buff and uses it's Shoot ability, the ball is launched from him towards the direction he pointed the ability and it loses speed the further it travels (the decaying speed I have accomplished but something about the Shooting isn't quite right. Doesn't work all the time)

3 - When the ball collides against a WALL unit, it is teleported back to the center of the field. (I was hoping to make a bounce-back effect, but I'll do that later).


The map:
View attachment Magic Football Elite 2.w3x


Thanks again,

Myt.
 

Dirac

22710180
Reaction score
147
Event - A unit enters (entire map)
Conditions - Unit type of entering unit equal to Ball
Actions - Add Event to trigger (Unit becomes within 100 of (entering unit))
 

Dirac

22710180
Reaction score
147
Doesn't work.
When you select "A unit comes within *range* of <Unit>*, this <Unit> must be selected in the map or be preset.
I have no idea how to preset with GUI.
that
 

Mythes

Member
Reaction score
7
But I have tried something else.
Read post #26.
I'll try what you said as well, but i'm focusing on #26 right now...
 

Mythes

Member
Reaction score
7
Everything was solved thanks to a friend. If anyone wants, I'll post the triggers.

Thanks again for everything, everyone. Rep+ to all.

Myt.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Could you? I'm thinking about incorporating the rebound system into one of my maps:).
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top