Slide System problem!

rodead

Active Member
Reaction score
42
i made a slide system but i am having a few problems with it! :S
some people can walk on ice instead of sliding wich is a very big bug any idea why? and how to fix that?


Code:
Slide
    Events
        Time - Every 0.01 seconds of game time
    Conditions
    Actions
        Custom script:   set bj_wantDestroyGroup = true
        Set Sliders = (Units of type Ghoul)
        Unit Group - Pick every unit in Sliders and do (Actions)
            Loop - Actions
                Set Slide_Point = (Position of (Picked unit))
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Terrain type at Slide_Point) Equal to Icecrown Glacier - Dark Ice
                    Then - Actions
                        Set tmp_position = (Slide_Point offset by 3.25 towards (Facing of (Picked unit)) degrees)
                        Unit - Move (Picked unit) instantly to tmp_position
                        Custom script:   call RemoveLocation( udg_tmp_position )
                    Else - Actions
                Custom script:   call RemoveLocation( udg_Slide_Point )
        Custom script:   call DestroyGroup (udg_Sliders)
 

Fluffball

Well-Known Member
Reaction score
35
Maybe pause the unit when it enters the ice?

I can't think of a way that I could fix it, only de-bug.
 

rodead

Active Member
Reaction score
42
what would the pause actually add?? in my opnion nothing..

the problem i think is that the time between picking all players and destroying the group will be too early to let them all slide. but how to fix that>>>
 

Romek

Super Moderator
Reaction score
963
Well, this trigger only allows ghouls to slide.

Are the units which don't slide ghouls?
 

Romek

Super Moderator
Reaction score
963
Are you sure you're using the correct tile everywhere you want?
That means only dark ice, not the light one.

If that doesn't work, can you give more details about when it stops?
 

rodead

Active Member
Reaction score
42
everything is correct i am for sure!

the problem is 1 player slides every where thats player red the rest off the players walk every where on ice no matter where the ice is they jsut walk over it.
 

rodead

Active Member
Reaction score
42
allready did that, but that will cause major lagg/ delay! so that is also not so good :S so any other idea?
 

rodead

Active Member
Reaction score
42
well i know it is leak free but somehow when i turn that trigger of i don't got it and if it is on you need to wait 10 seconds to enter the menu and wait another 10 seconds to go to the Quit menu and another 10 seconds to exit the game.

so i got somehow a delay/lagg caused by that trigger :S
 

rodead

Active Member
Reaction score
42
no but if i set it like 0.05 seconds i still got a little bit delay/lagg and i want no lagg at all and i think it only will be posible if i make like turn the trigger on when it enters the ice or make a slide trigger for each player instead of 1 trigger.

and i don't know if you have an idea of making such a system laggless and without delay?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
You could save some work by not creating / destroying that group every time.
Instead, keep it around, only updated as units die or enter the map.

0.1 should be fast enough too.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top