<?php
CatchEvent OnSplit1( $userName ) # Player event
IF ( $DriftScore > 0 )
THEN
$DriftScore=0
ENDIF
IF ( $LastDriftScore > 0 )
THEN
$LastDriftScore=0
ENDIF
EndCatchEvent
?>
<?php
3/16/2012 8:05:35 PM -> Syntax error in cfg file "./includes/driftmeter.lpr" at line #232
Function not defined...closeButtonRegex
Function 'ondriftscore./includes/driftmeter.lpr-50' script aborted
3/16/2012 8:05:39 PM -> Syntax error in cfg file "./includes/driftmeter.lpr" at line #116
Function not defined...closeButtonRegex
Function 'ondriftscore./includes/driftmeter.lpr-50' script aborted
3/16/2012 8:05:40 PM -> Syntax error in cfg file "./includes/driftmeter.lpr" at line #232
Function not defined...closeButtonRegex
Function 'ondriftscore./includes/driftmeter.lpr-50' script aborted
3/16/2012 8:05:43 PM -> Syntax error in cfg file "./includes/driftmeter.lpr" at line #116
Function not defined...closeButtonRegex
Function 'ondriftscore./includes/driftmeter.lpr-50' script aborted
3/16/2012 8:05:45 PM -> Syntax error in cfg file "./includes/driftmeter.lpr" at line #116
Function not defined...closeButtonRegex
Function 'ondriftscore./includes/driftmeter.lpr-50' script aborted
3/16/2012 8:05:45 PM -> Syntax error in cfg file "./includes/driftmeter.lpr" at line #349
Function not defined...closeButtonRegex
Function 'ondriftresetscore./includes/driftmeter.lpr-348' script aborted
?>
<?php
driftmeter_TDS01 = "^8?";
driftmeter_TDS11 = "^0:(";
driftmeter_TDS21 = "^2+";
driftmeter_TDS31 = "^3++";
driftmeter_TDS41 = "^4*";
driftmeter_TDS51 = "^5**";
driftmeter_TDS61 = "^6:)";
driftmeter_TDS62 = "^6*";
driftmeter_TDS71 = "^7!";
driftmeter_TDS81 = "^8!!";
driftmeter_TDS91 = "^1:)";
?>
<?php
CatchEvent OnDriftScore( $userName ) # This is the section for displaying the Drift Meter and Drift Messages
$AngleVelocity = GetCurrentPlayerVar( "AngleVelocity" );
$DriftScore = GetCurrentPlayerVar( "DriftScore" );
$LastDriftScore = GetCurrentPlayerVar( "LastDriftScore" );
IF ($MinimumDriftSpeed <25)
THEN
closePrivButton( "mylogo",5,138,22,3,1,-1,16,langEngine( "%{driftmeter_mylogo}%" ));
closePrivButton( "driftboxback",5,137,22,35,4,-1,16," ");
closePrivButton( "driftanglebox",6,146,10,20,4,-1,16," ");
closePrivButton( "driftcombbox",16,146,10,10,3,-1,16," ");
closePrivButton( "driftscorebox",16,156,10,10,3,-1,16," ");
closePrivButton( "driftangleboxtext",6,146,10,5,3,-1,0,langEngine( "%{driftmeter_driftangleboxtext}%" ));
closePrivButton( "driftcomboboxtext",16,146,10,5,3,-1,0,langEngine( "%{driftmeter_driftcomboboxtext}%" ));
closePrivButton( "driftscoreboxtext",16,156,10,5,3,-1,0,langEngine( "%{driftmeter_driftscoreboxtext}%" ));
closePrivButton( "TDSM",6,140,20,4,2,-1,16,langEngine( "%{driftmeter_TDSM}%" ) );
closePrivButton( "driftcomboboxtexttop",85,1,30,7,4,-1,96,langEngine( "%{driftmeter_driftcomboboxtexttop}%" , $DriftScore ) );
ELSE
openPrivButton( "mylogo",5,138,22,3,1,-1,16,langEngine( "%{driftmeter_mylogo}%" ));
openPrivButton( "driftboxback",5,137,22,35,4,-1,16," ");
openPrivButton( "driftanglebox",6,146,10,20,4,-1,16," ");
openPrivButton( "driftcombbox",16,146,10,10,3,-1,16," ");
openPrivButton( "driftscorebox",16,156,10,10,3,-1,16," ");
openPrivButton( "driftangleboxtext",6,146,10,5,3,-1,0,langEngine( "%{driftmeter_driftangleboxtext}%" ));
openPrivButton( "driftcomboboxtext",16,146,10,5,3,-1,0,langEngine( "%{driftmeter_driftcomboboxtext}%" ));
openPrivButton( "driftscoreboxtext",16,156,10,5,3,-1,0,langEngine( "%{driftmeter_driftscoreboxtext}%" ));
openPrivButton( "TDSM",6,140,20,4,2,-1,16,langEngine( "%{driftmeter_TDSM}%" ) );
openPrivButton( "driftcomboboxtexttop",85,1,30,7,4,-1,96,langEngine( "%{driftmeter_driftcomboboxtexttop}%" , $DriftScore ) );
ENDIF
?>
<?php
##################
#Drifting options#
##################
# This is the filepath for a file containing the collected data.
# This file will be created if it doesnt exist yet.
# You must ensure read/write access to this path.
#-------------------------------------------------------------------
/*
$DriftDatabase = "./DriftPB";
$MinimumDriftSpeed = 50; # Minimum speed in km/h to maintain. Driving below that speed will reset score
$MinimumDriftAngle = 15; # Minimum angel to maintain. When angle is below value, score is reset
$MaximumDriftAngle = 130; # Maximum angel to maintain. When angle is above value, score is reset
# Actions to do on new personal best drift lap.
Event OnDriftPB( $userName ) # Player event
EndEvent
# Actions to do to when total lap drift score is higher or equal to MinimumDriftScore.
Event OnDriftLap( $userName ) # Player event
EndEvent
Event OnDriftScore( $userName ) # Player event
EndEvent
$GoodDriftScore = 4000; # Value to be reached to execute action on good drift score
Event OnGoodDrift( $userName ) # Player event
EndEvent
$MinimumDriftScore = 1000; # Minimum drift score required
# Actions to do at end of lap if MinimumDriftScore is not achieved.
Event OnDriftTooLow( $userName ) # Player event
EndEvent
# Actions to do when drift score is resette to zero when to low speed.
Event OnDriftResetScore( $userName ) # Player event
EndEvent
*/
?>
<?php
privRcm( langEngine( "%{main_onnewpb_rank2}%" ,GetCurrentPlayerVar("Car"),GetCurrentPlayerVar("PosAbs") ) );
?>
<?php
#privRcm( langEngine( "%{main_onnewpb_rank2}%" ,GetCurrentPlayerVar("Car"),GetCurrentPlayerVar("PosAbs") ) );
?>