PDA

View Full Version : Snow on visor/screen


sinanju
1st February 2010, 20:30
Just for a laugh, I've "developed" a system that will show 'snow' on your visor/screen (depending how you view when driving).

Should have been mud, but couldn't get right colour!

For a bigger laugh, I've set this sample in Fern Bay (shouldn't imagine they normally have to worry about snow).

Assuming you have some experience with the LFSLapper.lpr file, add this part in beside the RegisterNodeAction section

RegisterNodeAction( "FE2" , 431, SE_snow,"" );
RegisterNodeAction( "FE2" , 41, SE_snow1,"" );
RegisterNodeAction( "FE2" , 151, SE_snow2,"" );
RegisterNodeAction( "FE2" , 214, SE_snow3,"" );
RegisterNodeAction( "FE2" , 332, SE_snow4,"" );Next part beside the subs underneath but in the same section

Sub SE_snow($userName) # A Sinanju Event - snow on visor
openPrivButton( "snow_1",0,0,20,20,1,-1,0,"• •");
openPrivButton( "snow_2",180,180,40,40,1,-1,0,"• • •");
openPrivButton( "snow_3",0,30,30,30,1,-1,0,"• • •");
openPrivButton( "snow_4",120,120,80,80,1,-1,0,"• •");
openPrivButton( "snow_5",50,70,70,70,1,-1,0,"• •");
EndSub

Sub SE_snow1($userName) # A Sinanju Event - more snow on visor
openPrivButton( "snow_6",0,40,40,20,1,-1,0,"• • •");
openPrivButton( "snow_7",60,60,60,60,1,-1,0,"• •");
openPrivButton( "snow_8",0,30,30,40,1,-1,0,"• •");
openPrivButton( "snow_9",140,140,70,70,1,-1,0,"• •");
openPrivButton( "snow_10",70,50,80,80,1,-1,0,"• •");
EndSub

Sub SE_snow2($userName) # A Sinanju Event - even more snow on visor
openPrivButton( "snow_11",80,80,40,40,1,-1,0,"• •");
openPrivButton( "snow_12",0,0,80,80,1,-1,0,"• • •");
openPrivButton( "snow_13",160,100,60,60,1,-1,0,"• • •");
openPrivButton( "snow_14",100,160,50,50,1,-1,0,"• • • •");
openPrivButton( "snow_15",20,90,70,70,1,-1,0,"• •");
EndSub

Sub SE_snow3($userName) # A Sinanju Event - do we need so much snow on visor
openPrivButton( "snow_16",0,10,20,20,1,-1,0,"• •");
openPrivButton( "snow_17",130,150,70,70,1,-1,0,"• • •");
openPrivButton( "snow_18",0,0,80,80,1,-1,0,"• • • •");
openPrivButton( "snow_19",170,110,40,40,1,-1,0,"• • • • •");
openPrivButton( "snow_20",30,160,60,60,1,-1,0,"• • •");
EndSub

Sub SE_snow4($userName) # A Sinanju Event - do we really need so much snow on visor
openPrivButton( "snow_21",0,10,120,120,1,-1,0,"• •");
openPrivButton( "snow_22",0,10,30,40,1,-1,0,"• • •");
openPrivButton( "snow_23",100,20,70,70,1,-1,0,"• •");
openPrivButton( "snow_24",170,150,40,40,1,-1,0,"• • • •");
openPrivButton( "snow_25",5,65,30,30,1,-1,0,"• •");
EndSub

Next, search for
Event OnFinish( $userName ) # Player event
and under that line, but before EndEvent, insert these lines
closePrivButton("snow_1&snow_2&snow_3&snow_4&snow_5&snow_6&snow_7&snow_8&snow_9&snow_10&snow_11&snow_12&snow_13&snow_14&snow_15");
closePrivButton("snow_16&snow_17&snow_18&snow_19&snow_20&snow_21&snow_22&snow_23&snow_24&snow_25");

Not very random spread, and some dots may be too big/small, but might be surprise to anyone that hasn't seen them!

Warning: Very hard to drive with 'snow' on visor (same as real life, probably!), as you can't see through.

Krayy
1st February 2010, 20:50
Cute. Maybe you could apply it when the racer gets a yellow flag with the dots having different fade out times to simulate the drops flying off as they speed up.

sinanju
1st February 2010, 21:15
Or after someone crashes, anyone following gets covered in black (oil) blobs.

Or if you're one of these drivers that can get close to WR times, you get big multicoloured blobs on your screen to give the rest of us some chance of catching up.

morpha
2nd February 2010, 03:19
I've done something similar some time ago, unfortunately players avoided it by simply having the chat message box ("T") open, which temporarily removes all buttons; even INST_ALWAYS_ON ones.

I also did what was later dubbed Acid mode, it would simply put random letters in random colours in buttons with random backgrounds in random sizes at random positions on the screen; in an endless loop with 250ms sleep between buttons :razz:

Fire_optikz001
2nd February 2010, 04:44
INST_ALWAYS_ON

:O lapper need these this is EXACTLY what i need

emit-nl
2nd February 2010, 07:46
LOL!! Great!

sinanju
2nd February 2010, 15:17
I've done something similar some time ago, unfortunately players avoided it by simply having the chat message box ("T") open, which temporarily removes all buttons; even INST_ALWAYS_ON ones.

I also did what was later dubbed Acid mode, it would simply put random letters in random colours in buttons with random backgrounds in random sizes at random positions on the screen; in an endless loop with 250ms sleep between buttons :razz:

Just put it on my Sin'rs server, but unfortunately, server won't accept UTF-8 format text so have had to change my discs to asterisks (*), and I've made it like people paintballing off track.

Because I'm a keyboarder, opening the chat message box while moving means I slow down - lapper expects me to input text with keys, not use a key as accelerator!