- Joined
- Jun 25, 2009
- Messages
- 427
When i'm playing 5x5 on my map after some time almost everyone gets disconnected? what is the problem (is it leaks????)? and if you know what can be wrong could you tell me how to fix it (a sollution or something)

Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

Link to the map or send the file to [email protected] and I'll take a look at your code and see if I can offer you some ways to reduce disconnects.









Hard Parts Loop

Events


Time - Every 0.05 seconds of game time

Conditions

Actions


[I][U][B]Set KB_unit_pos = (Position of KB_Unit)[/B]


[B]Set KB_point = (KB_Point_Old offset by (KB_Range / 15.00) towards ((Facing of KB_Unit) + 180.00) degrees)[/B]
[/U][/I] Unit - Move KB_Unit instantly to KB_point

Special Effect - Create a special effect at KB_unit_pos using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl

Special Effect - Destroy (Last created special effect)

[I][U][B]Set KB_Point_Old = KB_point[/B]
[/U][/I] Set KB_RangeLeft = (KB_RangeLeft - (KB_Range / 15.00))

Destructible - Pick every destructible within 125.00 of KB_Point_Old and do (Actions)


Loop - Actions



If (All Conditions are True) then do (Then Actions) else do (Else Actions)




If - Conditions





(Destructible-type of (Picked destructible)) Equal to Ruins Canopy Tree




Then - Actions





Destructible - Kill (Picked destructible)




Else - Actions

If (All Conditions are True) then do (Then Actions) else do (Else Actions)


If - Conditions



KB_RangeLeft Less than or equal to 0.00


Then - Actions



Unit - Unpause KB_Unit



Trigger - Turn off (This trigger)



Trigger - Turn on Hard Parts <gen>



Set KB_Range = 0.00



Set KB_RangeLeft = 0.00



Set KB_Dmg = 0.00



Set KB_Unit = No unit



[B] [U][I]Custom script: call RemoveLocation(udg_KB_unit_pos)




Custom script: call RemoveLocation(udg_KB_point)




Custom script: call RemoveLocation(udg_KB_Point_Old)
[/I][/U][/B] Else - Actions
Hard Parts Loop

Events


Time - Every 0.05 seconds of game time

Conditions

Actions


Set KB_unit_pos = (Position of KB_Unit)


Set KB_point = (KB_Point_Old offset by (KB_Range / 15.00) towards ((Facing of KB_Unit) + 180.00) degrees)


Unit - Move KB_Unit instantly to KB_point


Special Effect - Create a special effect at KB_unit_pos using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl


Special Effect - Destroy (Last created special effect)


Set KB_Point_Old = KB_point


Set KB_RangeLeft = (KB_RangeLeft - (KB_Range / 15.00))


Destructible - Pick every destructible within 125.00 of KB_Point_Old and do (Actions)



Loop - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Destructible-type of (Picked destructible)) Equal to Ruins Canopy Tree





Then - Actions






Destructible - Kill (Picked destructible)





Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




KB_RangeLeft Less than or equal to 0.00



Then - Actions




Unit - Unpause KB_Unit




Trigger - Turn off (This trigger)




Trigger - Turn on Hard Parts <gen>




Set KB_Range = 0.00




Set KB_RangeLeft = 0.00




Set KB_Dmg = 0.00




Set KB_Unit = No unit




Custom script: call RemoveLocation(udg_KB_unit_pos)




Custom script: call RemoveLocation(udg_KB_point)




Custom script: call RemoveLocation(udg_KB_Point_Old)



Else - Actions
[B][I][U] Custom script: call RemoveLocation(udg_KB_unit_pos)

Custom script: call RemoveLocation(udg_KB_point)

Custom script: call RemoveLocation(udg_KB_Point_Old)[/U][/I][/B]








