Napisano dnia: 2010-12-20 19:03:06
Napisałem skrypt który sprawi że po naciśnięciu klawisza G CJ wsiądzie do najbliższego spotkanego auta na ulicy. Ma on jechać normalnie jak każdy samochód na ulicy w SA. Jednak jak gracz znowu wciśnie G w aucie CJ pogoni kierowce i ma się on spieszyć ignorować pieszych i auta i szybciej jechać. Niestety wsiada dobrze ale nie chce się ruszyć zmiejsca.
Editt: Dodałem parametr driver_behawiour. Ale przez to zamiast jechać ulicami wlecze sie drgoami polnymi. Jaki jest parametr na to aby jechał szosą normalnie?
Editt: Dodałem parametr driver_behawiour. Ale przez to zamiast jechać ulicami wlecze sie drgoami polnymi. Jaki jest parametr na to aby jechał szosą normalnie?
Kod:
{$CLEO .cs}
0000: NOP
:petla1
wait 10
if
Player.Defined($PLAYER_CHAR)
jf @petla1
:petla2
wait 10
if
0AB0: key_pressed 0x47
jf @petla2
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
:petla3
wait 10
if
8038: not 0@ == -1
jf @petla2
05CA: AS_actor $PLAYER_ACTOR enter_car 0@ passenger_seat 0 10000 ms
054C: use_GXT_table 'DRIVETO'
00BC: show_text_highpriority GXT 'TXT0' time 3000 flag 1
0AB6: store_target_marker_coords_to 2@ 3@ 4@
00A9: set_car 0@ to_normal_driver
00AD: set_car 0@ max_speed_to 20.0
00A7: car 0@ drive_to 2@ 3@ 4@
:petla4
wait 10
if
0AB0: key_pressed 0x47
jf @petla5
00BC: show_text_highpriority GXT 'TXT1' time 3000 flag 1
00A8: set_car 0@ to_psycho_driver
00AD: set_car 0@ max_speed_to 80.0
00A7: car 0@ drive_to 2@ 3@ 4@
:petla5
wait 10
if
0103: actor $PLAYER_ACTOR in_sphere 2@ 3@ 4@ radius 3.0 3.0 3.0 sphere 0 stopped_in_car
jf @petla4
00BC: show_text_highpriority GXT 'TXT2' time 3000 flag 1
0109: player $PLAYER_CHAR money -= 100
jump @petla2
0A93: end_custom_thread
0000: NOP
:petla1
wait 10
if
Player.Defined($PLAYER_CHAR)
jf @petla1
:petla2
wait 10
if
0AB0: key_pressed 0x47
jf @petla2
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
:petla3
wait 10
if
8038: not 0@ == -1
jf @petla2
05CA: AS_actor $PLAYER_ACTOR enter_car 0@ passenger_seat 0 10000 ms
054C: use_GXT_table 'DRIVETO'
00BC: show_text_highpriority GXT 'TXT0' time 3000 flag 1
0AB6: store_target_marker_coords_to 2@ 3@ 4@
00A9: set_car 0@ to_normal_driver
00AD: set_car 0@ max_speed_to 20.0
00A7: car 0@ drive_to 2@ 3@ 4@
:petla4
wait 10
if
0AB0: key_pressed 0x47
jf @petla5
00BC: show_text_highpriority GXT 'TXT1' time 3000 flag 1
00A8: set_car 0@ to_psycho_driver
00AD: set_car 0@ max_speed_to 80.0
00A7: car 0@ drive_to 2@ 3@ 4@
:petla5
wait 10
if
0103: actor $PLAYER_ACTOR in_sphere 2@ 3@ 4@ radius 3.0 3.0 3.0 sphere 0 stopped_in_car
jf @petla4
00BC: show_text_highpriority GXT 'TXT2' time 3000 flag 1
0109: player $PLAYER_CHAR money -= 100
jump @petla2
0A93: end_custom_thread