i do not find the "onPlayerflags" on LFSLapper.lpr and see no way to put many of flags a player can have in the other files before a penalty, i don't find the line to choose penalty for repeating Blue flag
ps : i dont know what version LFSLapper.lpr i have cause i also have the message on top "Lapperscript dedevelopment , something with a message system" .. and the only way to solve it is to ask a friend Lapper.lpr which do not have this message to replace mine with it.
Version 7.0.6.4 never made it to a public version (please correct me if I am wrong Bass-Driver) and must be considered a beta version.
If you are on 7.0.6.3 you are on the latest released version and should be able to do all you want to, including the flags we were talking about earlier in this thread.
The flags are found in lfslapper.lpr (I have version 7.0.4.10 , which isn't the latest version but in a higher version it is as well), see this:
######################################################################################### #Action on Event when player receives a Flag (Yellow/Blue flags and Lag/Missing packets)# ######################################################################################### # The Flags below returns 1 or 0 depends on which flag is received by the user #$YellowFlag: Player receives a YellowFlag #$BlueFlag : Player recieves a BlueFlag #$LagFlag : Player is lagging or is missing carpackets #$Time : ShortTimeFormat,same as GetLapperVar("ShortTime");
$PlayerFlagEvent = -1; #Enable Event 1 = ON / -1 = OFF Event OnPlayerFlags($userName,$YellowFlag,$BlueFlag,$LagFlag,$Time) # Player event /* IF( $YellowFlag == 1) THEN privmsg("^3YELLOW FLAG"); ENDIF IF( $BlueFlag == 1) THEN privmsg("^4BLUE FLAG"); ENDIF IF( $LagFlag == 1) THEN privmsg("^5LAG"); ENDIF */ EndEvent
This /* and this */ means that the code between those two signs is disabled.
Remove both of them and the code will be active on the next reload of Lapper, that can be done by typing this into the LFS chat (if you have admin rights on Lapper, that is): !reload
To get rid of "LAPPERSCRIP DEVELOPEMENT" search for this piece of code in lfslapper.lpr:
################################################# #Connect messages when a player joins the server# #################################################
/p_30 USERNAME :give 30 second time penalty
/p_45 USERNAME :give 45 second time penalty
/p_dt USERNAME :give drive through penalty
/p_sg USERNAME :give stop-go penalty
Over night I have been thinking about how this blue flag penalty could be implemented, but it doesn't seem to be a straight forward thing.
When a player is slow for a reason (skills, technical issue on the car, been in an accident, etc.) the whole field will lap him/her at some point. That means a lot of blue flags will be given, but only counting them isn't doing justice to the player that gets them. I mean, maybe he/she moves out of the way ASAP but since then the next car will appear, the flag count will go up and up. A way to go around that is to count the number of flags within a given time period, but then again, when all the cars are catching up, it still might be too many flags within X seconds.
As far as I know, Lapper can't indicate which players causes you to get a blue flag. It would help to be able to know that Player A gets a blue flag because of Player B and if those are too many, you could apply a penalty. Then the counting starts again when Player A gets a blue flag because of Player C.
I have no idea if there's an Insim packet to get that information and if so, if Bass-Driver would be willing to implement it.
It's in the flag packet already, there's a 'CarBehind' byte which id for the other car. (I don't know if Lapper does anything with it)
Even then though, there's a times when I've gotten the blue flag over and over again for a car that is behind me physically, ahead in the race, but can't catch up. Same car each time, but I'm not doing anything wrong by not parking up and waiting for it to pass
I gave up on penalties because I couldn't discount those situations without more checks than I was willing to invest time into.