######################################################################## ########################OLD DriftScore Code############################# ######################################################################## ######################## managepacket.cs @ line 1090 ######################## #region write current drift score && event on drift reset score if (currInfoPlayer.driftticks == 0 && currInfoPlayer.lastdriftscore > 0 && currInfoPlayer.totaldriftscore > 0) { { string[] args = new string[1]; args[0] = currInfoPlayer.userName; newCfg.executeFunction("OnDriftScore", currInfoPlayer, args); } if (currInfoPlayer.lastdriftscore >= newCfg.varsLapper.GoodDriftScore) { string[] args = new string[1]; args[0] = currInfoPlayer.userName; newCfg.executeFunction("OnGoodDrift", currInfoPlayer, args); } currInfoPlayer.lastdriftscore = 0; } if (currInfoPlayer.isDriftReset) // Drift score reset due to low speed { { string[] args = new string[1]; args[0] = currInfoPlayer.userName; newCfg.executeFunction("OnDriftResetScore", currInfoPlayer, args); } } #endregion ######################## infoplayer.cs @ line 312 ######################## if (speed < minspeed) // Reset drift { if( totaldriftscore != 0 ) this.isDriftReset = true; else this.isDriftReset = false; this.driftticks = 0; this.totaldriftscore = 0; this.lastdriftscore = 0; } else { this.isDriftReset = false; if (this.absangle > minangle && this.absangle < maxangle) { this.driftticks++; this.lastdriftscore += driftscoreinthistick; this.totaldriftscore += driftscoreinthistick; //System.Console.WriteLine(string.Format("DRIFT: {0} {1} {2} {3} score: {4}", this.UserName, this.NickName, this.UniqueID, this.ConnectionNumber, this.driftscore)); } else { this.driftticks = 0; } } ######################################################################## ########################New DriftScore Code############################# ######################################################################## ######################## managepacket.cs ######################## #region write current drift score && event on drift reset score if (currInfoPlayer.totaldriftscore > 0 && currInfoPlayer.driftticks > 0) //NEW (Realtime driftscoring) { { string[] args = new string[1]; args[0] = currInfoPlayer.userName; newCfg.executeFunction("OnDriftScore", currInfoPlayer, args); } //Stop spamming gooddrift event if (currInfoPlayer.lastdriftscore >= newCfg.varsLapper.GoodDriftScore) { if (currInfoPlayer.showedgooddriftscore == false) //IF event isnt executed yet then execute event. { string[] args = new string[1]; args[0] = currInfoPlayer.userName; currInfoPlayer.showedgooddriftscore = true; newCfg.executeFunction("OnGoodDrift", currInfoPlayer, args); } } else { currInfoPlayer.showedgooddriftscore = false; } } if (currInfoPlayer.isDriftReset) // Drift score reset due to low speed TRUE { { string[] args = new string[1]; args[0] = currInfoPlayer.userName; newCfg.executeFunction("OnDriftResetScore", currInfoPlayer, args); } } #endregion ######################## infoplayer.cs ######################## Add the next variable under the text "// Drift Infos" @ line 127; public bool showedgooddriftscore = false; if (speed < minspeed) // Reset drift { if (totaldriftscore != 0) this.isDriftReset = true; else this.isDriftReset = false; this.lastdriftscore = 0; this.totaldriftscore = 0; } else { this.isDriftReset = false; if (this.absangle > minangle && this.absangle < maxangle) { this.driftticks++; this.lastdriftscore += driftscoreinthistick; this.totaldriftscore += driftscoreinthistick; } else { this.lastdriftscore = 0; this.driftticks = 0; } }