{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 

:start
wait 0 
if and
   Actor.DrivingVehicleType($PLAYER_ACTOR, #COGNO)
00E1:   player 0 pressed_key 4 
else_jump @start 

0@ = Actor.CurrentCar($PLAYER_ACTOR)

wait 0
if
010F:   player $PLAYER_CHAR wanted_level > 0
jf @wl1
jump @go
:wl1
010D: set_player $PLAYER_CHAR wanted_level_to 1
:go

0208: 7@ = random_float_in_ranges -2.5 2.5 
0208: 8@ = random_float_in_ranges -2.5 2.5 

0407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset 7@ 100.0 8@ 
0407: store_coords_to 4@ 5@ 6@ from_car 0@ with_offset 0.0 0.4 1.48 

06BC: create_M4_shoot_from 4@ 5@ 6@ target 1@ 2@ 3@ energy 600 
09F1: play_audio_at_actor $PLAYER_ACTOR event 1157 

066C: 19@ = attach_particle "GUNFLASH" to_car 0@ with_offset 0.0 0.4 1.48 rotation 0.0 90.0 0.0 type 1
066C: 20@ = attach_particle "GUNSMOKE" to_car 0@ with_offset 0.0 0.4 1.48 rotation 0.0 90.0 0.0 type 1 
064C: make_particle 19@ visible
064C: make_particle 20@ visible 
 
wait 100 
064F: remove_references_to_particle 19@
064F: remove_references_to_particle 20@  
wait 100 
jump @start