Уличные гонки
Все мы хорошо помним NFS UNDEGROUND 2, и помним режим, где можно было погонятся со стрит-рейсерами.
Нечто подобное предлагает этот мод.
Каждое авто за искл.(самолетов, лодок, поездов,вертолетов, полиц. машин) может с вами посоревноваться.
Для этого надо сесть в машину - подъехать к тачке и нажать кнопку стрельбы(по умолчанию Ctrl или LMB)
То авто будет нестись со страашной скоростью и вы должны его перегнать(т.е стать у него пред капотом).
CJ дает фору тому кто с ним соревнуется.
Выигрыш 1000$
Вот совсем крошечный скрипт:
:NFS2
0001: wait 0 ms
01C2: remove_references_to_actor $r_driver ;; Like turning an actor into a random pedestrian
01C3: remove_references_to_car $race_car ;; Like turning a car into any random car
;;0004: $race_car = -1 ;; integer values
00D6: if 0
0256: player $PLAYER_CHAR defined
004D: jump_if_false ЈЈNFS2
00D6: if 0
00DF: actor $PLAYER_ACTOR driving
004D: jump_if_false ЈЈNFS2
03C0: $my_car = actor $PLAYER_ACTOR car
00D6: if 6
8137: NOT car $my_car id == 481
8137: NOT car $my_car id == 509
8137: NOT car $my_car id == 510
84C8: NOT actor $PLAYER_ACTOR driving_flying_vehicle
84A9: NOT actor $PLAYER_ACTOR driving_helicopter
84A7: NOT actor $PLAYER_ACTOR driving_boat
89AE: NOT actor $PLAYER_ACTOR driving_train
004D: jump_if_false ЈЈNFS2
00D6: if 0
010A: player $PLAYER_CHAR money > 999
004D: jump_if_false ЈЈNFS2
00D6: if 1
00DF: actor $PLAYER_ACTOR driving
00E1: key pressed 0 17
004D: jump_if_false ЈЈNFS2
0407: create_coordinate $X $Y $Z from_car $my_car offset 20.0 20.0 0.0
0407: create_coordinate $X1 $Y1 $Z1 from_car $my_car offset -20.0 -20.0 0.0
053E: $race_car = get random car with actors -1 in area $X $Y $X1 $Y1
;0186: $m_race_car = create marker above car $race_car
00D6: if 0
80DB: NOT actor $PLAYER_ACTOR in car $race_car
004D: jump_if_false ЈЈNFS2
00D6: if 0
;8038: NOT $race_car == -1
056E: $race_car
004D: jump_if_false ЈЈNFS2
00D6: if 6
8137: NOT car $race_car id == 537
8137: NOT car $race_car id == 449
8137: NOT car $race_car id == 425
8137: NOT car $race_car id == 447
8137: NOT car $race_car id == 460
8137: NOT car $race_car id == 469
004D: jump_if_false ЈЈNFS2
00D6: if 6
8137: NOT car $race_car id == 476
8137: NOT car $race_car id == 487
8137: NOT car $race_car id == 488
8137: NOT car $race_car id == 497
8137: NOT car $race_car id == 511
8137: NOT car $race_car id == 512
8137: NOT car $race_car id == 513
004D: jump_if_false ЈЈNFS2
00D6: if 6
8137: NOT car $race_car id == 519
8137: NOT car $race_car id == 520
8137: NOT car $race_car id == 548
8137: NOT car $race_car id == 553
8137: NOT car $race_car id == 563
8137: NOT car $race_car id == 570
8137: NOT car $race_car id == 577
004D: jump_if_false ЈЈNFS2
00D6: if 1
8137: NOT car $race_car id == 592
8137: NOT car $race_car id == 593
004D: jump_if_false ЈЈNFS2
00D6: if 5
8137: NOT car $race_car id == 596
8137: NOT car $race_car id == 597
8137: NOT car $race_car id == 488
8137: NOT car $race_car id == 598
8137: NOT car $race_car id == 599
8137: NOT car $race_car id == 523
004D: jump_if_false ЈЈNFS2
00D6: if 0
8038: NOT $race_car == $my_car
004D: jump_if_false ЈЈNFS2
00D6: if 0
8119: NOT car $race_car wrecked
004D: jump_if_false ЈЈNFS2
060A: unknown_create_entity 0 $my_group
046C: $r_driver = car $race_car driver
00D6: if 0
056D: carcass_of_actor $r_driver valid
004D: jump_if_false ЈЈNFS2
0441: $model_car = car $race_car model
0174: $ang_car = car $race_car z angle
00AA: store car $race_car position to $car_x $car_y $car_z
0247: request model $model_car
038B: load requested models
:proverka
0001: wait 0 ms
00D6: if 0
0248: model $model_car available
;;0248: model #BMYBU available
004D: jump_if_false ЈЈproverka
00BA: text styled 'BEEFY' 3000 ms 2 ; Beefy Baron
009B: destroy actor instantly $r_driver
00A6: destroy car $race_car
00A5: $race_car = create car $model_car at $car_x $car_y $car_z
0175: set_car $race_car z_angle_to $ang_car
0376: $r_driver = create random actor -1576.88 55.26 8.57
036A: put actor $r_driver in car $race_car
0186: $m_race_car = create marker above car $race_car
00BA: text styled 'BEEFY' 3000 ms 2 ; Beefy Baron
00A9: set_car $race_car to_normal_driver
00AD: set_car $race_car max_speed_to 100.0
060B: unknown_actor_use_entity $r_driver $my_group
0224: set_car $race_car health_to 2000
02AA: set car $race_car immune to nonplayer 1
02AB: set actor $r_driver immunities 1 1 1 1 1
00AE: unknown set car $race_car to ignore traffic lights 2
;0395: clear area 1 at $car_x $car_y $car_z range 50.0
00AF: set car $race_car driver behaviour to 1
01B4: set player $PLAYER_CHAR frozen state 0 (frozen)
0001: wait 2000 ms
01B4: set player $PLAYER_CHAR frozen state 1 (unfrozen)
0002: jump ЈЈ1_1
:1_1
0001: wait 0 ms
0407: create coordinate $vict_x $vict_y $vict_z from car $race_car offset 0.0 7.0 0.0
00D6: if 1
0100: actor $PLAYER_ACTOR near point in car $vict_x $vict_y $vict_z radius 5.0 5.0 5.0 sphere 0
0448: actor $PLAYER_ACTOR in car $my_car
004D: jump_if_false ЈЈ1_2
00BC: text highpriority 'MTIME3' 1000 ms 1 ; ~s~Come back between 9:00 and 17:00.
0002: jump ЈЈpobeda
:1_2
0001: wait 0 ms
00D6: if 2
80EC: NOT actor $PLAYER_ACTOR 0 ()near point $vict_x $vict_y radius 200.0 200.0
0448: actor $r_driver in car $race_car
8119: NOT car $race_car wrecked
004D: jump_if_false ЈЈ1_3
0002: jump ЈЈlost
:1_3
0001: wait 0 ms
00D6: if 1
0119: car $race_car wrecked
82E0: NOT actor $PLAYER_ACTOR aggressive
004D: jump_if_false ЈЈ1_1
0002: jump ЈЈpobeda
:lost
0001: wait 0 ms
0164: disable marker $m_race_car
0249: release model $model_car
02AB: set actor $r_driver immunities 0 0 0 0 0
00AD: set car $race_car max speed to 20.0
00A8: set car $race_car to psycho driver
06C9: remove_actor $r_driver from_group
01C2: remove_references_to_actor $r_driver ;; Like turning an actor into a random pedestrian
01C3: remove_references_to_car $race_car ;; Like turning a car into any random car
00BA: text_styled "M_FAIL" 5000 ms 1
0109: player $PLAYER_CHAR money += -1000
0002: jump ЈЈNFS2
:pobeda
0164: disable marker $m_race_car
0249: release model $model_car
02AB: set actor $r_driver immunities 0 0 0 0 0
00AD: set car $race_car max speed to 20.0
00A8: set car $race_car to psycho driver
06C9: remove_actor $r_driver from_group
01C2: remove_references_to_actor $r_driver ;; Like turning an actor into a random pedestrian
01C3: remove_references_to_car $race_car ;; Like turning a car into any random car
01E3: text_1number_styled "M_PASS" 1000 5000 ms 1 ;; MISSION PASSED! $~1~
0109: player $PLAYER_CHAR money += 1000
0394: play music 1
0002: jump ЈЈNFS2