Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

FIX for CPS DROP in wabbits range system [3.0]


Exxsamuari
 Share

Recommended Posts

**Here is a simple fix for **wabbits range system [3.0]** **where it killed your cps, this checks for the arrows every tenth of a second instead of every loop.****

In ModServerLoop

Find Sub Server Loop

ADD

> Dim PT10 As Long

UNDER

> Sub ServerLoop()
>
> Dim i As Long, x As Long
>
> Dim Tick As Long, TickCPS As Long, CPS As Long, FrameTime As Long
>
> Dim tmr25 As Long, tmr500 As Long, tmr1000 As Long, tmr20000 As Long
>
> Dim LastUpdateSavePlayers, LastUpdateMapSpawnItems As Long, LastUpdatePlayerVitals As Long

Find

> For i = 1 To Player_HighIndex
>
> If IsPlaying(i) Then
>
> For x = 1 To MAX_PLAYER_PROJECTILES
>
> If TempPlayer(i).ProjecTile(x).Pic > 0 Then
>
> ' handle the projec tile
>
> HandleProjecTile i, x
>
> End If
>
> Next
>
> End If
>
> Next

Replace With This

> If Tick > PT100 Then
>
> For i = 1 To Player_HighIndex
>
> If IsPlaying(i) Then
>
> For x = 1 To MAX_PLAYER_PROJECTILES
>
> If TempPlayer(i).ProjecTile(x).Pic > 0 Then
>
> ' handle the projec tile
>
> HandleProjecTile i, x
>
> End If
>
> Next
>
> End If
>
> PT10 = GetTickCount + 10
>
> Next
>
> End If
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...