The online racing simulator
Searching in All forums
(6 results)
EHR11
S3 licensed
If Forza Has It... Why not LFS?
EHR11
S3 licensed
Thank you very much, fellow! I'll start to fix this code. Thanks again!
EHR11
S3 licensed
Ok, the code I have so far is this.

<?php 
$yo 
GetPlayerInfo( );#My car
$adelante GetPlayerInfo$yo["UNameBefore"] );#Front car
$difx = ($yo["X"] - $adelante["X"]);
$dify = ($yo["Y"] - $adelante["Y"]);
Catchevent OnDriftScore    #Drift Event Starts
    
    
IF (difx <= 20) and (dify <= 20#If my car is close enough to the front car (rear doesn't matter yet)

    
THEN 
        $multi 
= ((difx+dify)/2)^-1)*(7); #multiplier
        
IF (multi >=5#
        
THEN           # MULTIPLIER LIMIT set to 5
            
multi =5;  #
        
ENDIF
        
$midrift =($yo["DriftScore"]) + (($yo["LastDriftScore"])*multi-($adelante["LastDriftScore"])); #Final drift score
    
ENDIF
?>

Am I going right? I'm missing something? Sorry for the inconvenience. I'm really n00b at this.
Last edited by EHR11, . Reason : Some orthographic errors.
EHR11
S3 licensed
OK, I've seen both !zone and !node values. Now, comes another question. How can I get values from other players?
EHR11
S3 licensed
Thanks, I'll take a look.
Measure distance between cars
EHR11
S3 licensed
Hi all.
I'm new on this of LFSlapper programming and I've wanted to make a Twin drift competition scorer. I've seen in some servers like Lislon DRIFT, a config capable to multiply drift points according to the distance between cars.
Anybody knows how to measure this distance on LFSLapper?
FGED GREDG RDFGDR GSFDG