Exxsamuari Posted August 26, 2012 Author Share Posted August 26, 2012 **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 ModServerLoopFind Sub Server LoopADD> Dim PT10 As LongUNDER> 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 LongFind> 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> > NextReplace 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 More sharing options...
tslusny Posted August 27, 2012 Share Posted August 27, 2012 Easy edit but no need for anothert tmr, drop of CPS will fix if you add it under tmr25 too Link to comment Share on other sites More sharing options...
Exxsamuari Posted August 27, 2012 Author Share Posted August 27, 2012 10 seemed to do the best rendering wise, for some reason 25 and up wouldn't show the arrow at times when you shoot but 10 seemed to do the trick. Link to comment Share on other sites More sharing options...
tslusny Posted August 27, 2012 Share Posted August 27, 2012 but you added 100ms timer in tutorial not 10ms Link to comment Share on other sites More sharing options...
Exxsamuari Posted August 27, 2012 Author Share Posted August 27, 2012 i fixed it lol sorry bout that. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now