RopNet.ru
PlayGround.ru
ProPlay.ru
---------------------------
Rubattle.net
GTA.ru
FootSim.NET
CStrike.ru
UT2.ru
InfiniteTravel.ru
NWNights.ru
Allods.NET
DungeonSiege.ru
SeriousSam.ru
FireArms.ru
NOLF.PlayGround.ru
THPS.PlayGround.ru
Главная
GTA V
Аккаунт
GTA: Vice City Stories
GTA IV
GTA: Liberty City Stories
GTA: San Andreas
GTA: Vice City
GTA: Chinatown Wars
GTA 3
GTA 2
GTA
Форумы
Сервер
О проекте
Реклама
Новости
GTA.ru Race #2
[0/]
статистика
GTA LEAGUE t/cw | 1 | gta.ru vk.com/gtaleague
[0/30]
GTA LEAGUE t/cw | 2 | gta.ru vk.com/gtaleague
[0/30]
GTA.ru Sniper Madness
[0/30]
GTA.Ru | Map Editor gta.ru:22002
[0/64]
GTA.Ru | Coming Soon | 22000
[0/200]
GTA.Ru | Coming Soon | 33013
[0/32]
GTA.Ru | Stealth Public Server (w/ Stats System)
[2/32]
Имя
GTA.Ru | Race Server
[0/32]
GTA.Ru | One Click Kill Tactics Server | 33004
[0/1]
GTA.ru Freeroam LU Server
[0/64]
GTA.ru TDM Server
[0/30]
Голосовой чат: 0
GTA.ru
>
Форумы
>
GTA: Vice City
>
Моддинг и скриптинг
>
main.sc
main.sc
Tumult
9 декабря 2014 в 19:16
Сколько живу, а для чего он не знаю
// Test script for Industrial level
VAR_INT player
VAR_INT TEST_CAR
VAR_FLOAT x_float_m y_float_m z_float_m player_heading_debug debug_car_heading
VAR_INT magic_car button_press_flag car_colour car_colour2
VAR_INT flag_create_car initial_create_car initial_car_selected counter_create_car
x_float_m = 0.0
y_float_m = 0.0
z_float_m = 0.0
player_heading_debug = 0.0
debug_car_heading = 0.0
magic_car = 0
button_press_flag = 0
car_colour = 0
car_colour2 = 0
flag_create_car = 0
initial_create_car = 0
initial_car_selected = 0
counter_create_car = 151 //CAR_CHEETAH
SCRIPT_NAME mainscr
SET_INTRO_IS_PLAYING FALSE
CREATE_PLAYER 0 -880.0 -646.5 11.2 player
REQUEST_MODEL CAR_CHEETAH
DO_FADE 0 FADE_OUT
LOAD_SCENE -880.0 -646.5 13.2
WHILE NOT HAS_MODEL_LOADED CAR_CHEETAH
WAIT 0
ENDWHILE
CREATE_CAR CAR_CHEETAH -1138.406f -661.471f -100.0f TEST_CAR
MARK_MODEL_AS_NO_LONGER_NEEDED CAR_CHEETAH
DEBUG_ON
//LAUNCH_MISSION debug.sc
DO_FADE 1000 FADE_IN
MainLoop:
WAIT 0
IF IS_PLAYER_PLAYING player
IF IS_BUTTON_PRESSED PAD2 RIGHTSHOULDER1
AND flag_create_car = 0
AND button_press_flag = 0
GET_PLAYER_COORDINATES player x_float_m y_float_m z_float_m
GET_PLAYER_HEADING player player_heading_debug
IF player_heading_debug < 45.0
AND player_heading_debug > 0.0
y_float_m += 5.0
debug_car_heading = 90.0
ENDIF
IF player_heading_debug < 360.0
AND player_heading_debug > 315.0
y_float_m += 5.0
debug_car_heading = 90.0
ENDIF
IF player_heading_debug < 135.0
AND player_heading_debug > 45.0
x_float_m -= 5.0
debug_car_heading = 180.0
ENDIF
IF player_heading_debug < 225.0
AND player_heading_debug > 135.0
y_float_m -= 5.0
debug_car_heading = 270.0
ENDIF
IF player_heading_debug < 315.0
AND player_heading_debug > 225.0
x_float_m += 5.0
debug_car_heading = 0.0
ENDIF
z_float_m = z_float_m + 0.6
GET_GROUND_Z_FOR_3D_COORD x_float_m y_float_m z_float_m z_float_m
REQUEST_MODEL counter_create_car
WHILE NOT HAS_MODEL_LOADED counter_create_car
WAIT 0
PRINT_NOW LOADCAR 100 1 //"Loading vehicle, press pad2 leftshoulder1 to cancel"
IF IS_BUTTON_PRESSED PAD2 LEFTSHOULDER1
//++ counter_create_car
GOTO next_carzzz
ENDIF
ENDWHILE
CREATE_CAR counter_create_car x_float_m y_float_m z_float_m magic_car
SET_CAR_HEADING magic_car debug_car_heading
LOCK_CAR_DOORS magic_car CARLOCK_UNLOCKED
MARK_MODEL_AS_NO_LONGER_NEEDED counter_create_car
MARK_CAR_AS_NO_LONGER_NEEDED magic_car
next_carzzz:
IF initial_create_car = 0
IF counter_create_car = 151
AND initial_car_selected = 0
counter_create_car = 105 //BIKE_BIKE
initial_car_selected = 1
ENDIF
IF counter_create_car = 105
AND initial_car_selected = 0
counter_create_car = 110 //CAR_TAXI
initial_car_selected = 1
ENDIF
IF counter_create_car = 110
AND initial_car_selected = 0
counter_create_car = 128 //CAR_CABBIE
initial_car_selected = 1
ENDIF
IF counter_create_car = 128
AND initial_car_selected = 0
counter_create_car = 116 //CAR_POLICE
initial_car_selected = 1
ENDIF
IF counter_create_car = 116
AND initial_car_selected = 0
counter_create_car = 97 //CAR_FIRETRUCK
initial_car_selected = 1
ENDIF
IF counter_create_car = 97
AND initial_car_selected = 0
counter_create_car = 106 //CAR_AMBULANCE
initial_car_selected = 1
ENDIF
IF counter_create_car = 106
AND initial_car_selected = 0
counter_create_car = 119 //CAR_BANSHEE
initial_car_selected = 1
ENDIF
IF counter_create_car = 119
AND initial_car_selected = 0
counter_create_car = 101 //CAR_INFERNUS
initial_car_selected = 1
initial_create_car = 1
ENDIF
IF counter_create_car = 101
AND initial_car_selected = 0
counter_create_car = 92 //CAR_STINGER
initial_car_selected = 1
initial_create_car = 1
ENDIF
ELSE
++ counter_create_car
IF counter_create_car > 153
counter_create_car = 90
ENDIF
IF counter_create_car = 140 //PLANE_AIRTRAIN
OR counter_create_car = 141 //PLANE_DEADDODO
counter_create_car = 142
ENDIF
IF counter_create_car = 124 //TRAIN_SUBWAY
OR counter_create_car = 125 //HELI_POLICE
counter_create_car = 126
ENDIF
IF counter_create_car = 131 //CAR_RCBANDIT
counter_create_car = 132
ENDIF
IF counter_create_car = 147 //HELI
counter_create_car = 148
ENDIF
ENDIF
flag_create_car = 1
button_press_flag = 1
ENDIF
IF IS_BUTTON_PRESSED PAD2 LEFTSHOULDER1
AND flag_create_car = 1
IF NOT IS_CAR_DEAD magic_car
GENERATE_RANDOM_INT_IN_RANGE 0 88 car_colour2
CHANGE_CAR_COLOUR magic_car car_colour car_colour2 // 0 - 88
++car_colour
IF car_colour > 87
car_colour = 0
ENDIF
ENDIF
ENDIF
IF NOT IS_BUTTON_PRESSED PAD2 RIGHTSHOULDER1
AND button_press_flag = 1
button_press_flag = 0
ENDIF
IF IS_BUTTON_PRESSED PAD2 RIGHTSHOULDER1
AND flag_create_car = 1
AND button_press_flag = 0
IF IS_CAR_DEAD magic_car
DELETE_CAR magic_car
ELSE
IF NOT IS_PLAYER_IN_CAR player magic_car
DELETE_CAR magic_car
ELSE
MARK_CAR_AS_NO_LONGER_NEEDED magic_car
ENDIF
ENDIF
flag_create_car = 0
initial_car_selected = 0
button_press_flag = 1
ENDIF
ENDIF
GOTO MainLoop
TERMINATE_THIS_SCRIPT
longerr2007
9 декабря 2014 в 19:21
Что это?
Tumult
9 декабря 2014 в 19:25
я так понимаю это тестовый первоскрипт для пс
GTA V
GTA: Vice City Stories
GTA IV
GTA: San Andreas
GTA: Vice City
GTA 3
GTA 2
GTA
GTA: Chinatown Wars
GTA: Liberty City Stories
Звуковые архивы: самое интересное и необычное
(14)
Mule и steed
(0)
Секреты и приколы GTA 5
(466)
Пропал трафик в игре что делать?
(1)
GTA5 Мутное заднее стекло и боковое в машине от 1-го лица
(15)
Что за музыка?
(1)
Чит-код активировался сам во время гонки
(6)
Тайны альфа/бета-версии GTA: VC
(228)
Болталка GTA.ru
(544)
Grand Theft Auto 2 намертво зависает - Решение!
(0)
Нет некоторых машин на Xbox 360
(1)
Впечатления от GTA 5 (PC)
(271)
GTA III Re3 + xbox edition re3
(1)
Тайны альфа-/бета-версии GTA: SA
(454)
Помогите найти репак
(2)
Тайны альфа/бета-версии GTA III
(449)
Как вы тратите деньги в GTA IV?
(217)
popcycle.dat в the ballad of gay tony
(1)
Имущество и бизнес в GTA: VCS
(38)
NOOSE Patriot в трафике
(1)
Последние добавленные
Grand Theft Auto: San Andreas "Убийства людей приносят деньги, восстанавливают здоровье и броню, макс. уровень розыска на выбор (SA) 1.0"
101Mb
Grand Theft Auto: San Andreas "Все машины пуленепробиваемые и ударостойкие, но уязвимы к огню и взрывам (SA) 1.0"
335Mb
Grand Theft Auto: San Andreas "Погоня Чужих на вайсидском гермесе за Сиджеем (SA)1.0"
4,981Mb
Grand Theft Auto: San Andreas "Оптимизация для старых ноутбуков (SA) v.1.3"
792Mb
GTA5 "Drift v3.9"
1,078Mb
Grand Theft Auto 4 "PS4/3 DualShock Buttons"
322Mb
Grand Theft Auto: San Andreas "Укрепление макушек всех жителей Сан Андреса на выбор (SA) 1.0"
172Mb
Grand Theft Auto: San Andreas "Всеобщее вооружение всех жителей Сан Андреса на выбор (SA) 1.0"
665Mb
Grand Theft Auto: San Andreas "Травля Сиджея магучими химерами на выбор (SA) 1.0"
7,499Mb
Grand Theft Auto 5 "Language Tool v3.3"
1,955Mb
Самые популярные
Патч GTA 4 v1.0.7.0
(скачано: 198407)
Патч GTA 4 v 1.0.3.1/1.0.4.0 (RU/ENG)
(скачано: 171660)
GTA "SA-MP 0.3.7 R4 (клиент R4 и сервера R2)"
(скачано: 155530)
GTA 4 "Social Club v1.1.3.0"
(скачано: 139990)
Патч GTA 4 v1.0.6.1 Русская версия
(скачано: 130041)
Русификатор Grand Theft Auto IV и Grand Theft Auto: Episodes from Liberty City [Steam]
(скачано: 120760)
Grand Theft Auto 4 (GTA IV): Русификатор (текст) [1.0.7.0]
(скачано: 113695)
GTA MTA:SA v1.3.1
(скачано: 104077)
Патч GTA 4 v1.0.1.0 EN
(скачано: 98324)
Патч GTA 4 v 1.0.2.1/1.0.3.0 (RU/ENG)
(скачано: 91115)
,
save для Grand Theft Auto: Liberty City Stories
,
продать игру Wanted: Weapons of Fate
,
демо игры Resident Evil: Revelations
Copyright ©
наверх |
главная |
e-mail
Сколько живу, а для чего он не знаю
VAR_INT player
VAR_INT TEST_CAR
VAR_FLOAT x_float_m y_float_m z_float_m player_heading_debug debug_car_heading
VAR_INT magic_car button_press_flag car_colour car_colour2
VAR_INT flag_create_car initial_create_car initial_car_selected counter_create_car
x_float_m = 0.0
y_float_m = 0.0
z_float_m = 0.0
player_heading_debug = 0.0
debug_car_heading = 0.0
magic_car = 0
button_press_flag = 0
car_colour = 0
car_colour2 = 0
flag_create_car = 0
initial_create_car = 0
initial_car_selected = 0
counter_create_car = 151 //CAR_CHEETAH
SCRIPT_NAME mainscr
SET_INTRO_IS_PLAYING FALSE
CREATE_PLAYER 0 -880.0 -646.5 11.2 player
REQUEST_MODEL CAR_CHEETAH
DO_FADE 0 FADE_OUT
LOAD_SCENE -880.0 -646.5 13.2
WHILE NOT HAS_MODEL_LOADED CAR_CHEETAH
WAIT 0
ENDWHILE
CREATE_CAR CAR_CHEETAH -1138.406f -661.471f -100.0f TEST_CAR
MARK_MODEL_AS_NO_LONGER_NEEDED CAR_CHEETAH
DEBUG_ON
//LAUNCH_MISSION debug.sc
DO_FADE 1000 FADE_IN
MainLoop:
WAIT 0
IF IS_PLAYER_PLAYING player
IF IS_BUTTON_PRESSED PAD2 RIGHTSHOULDER1
AND flag_create_car = 0
AND button_press_flag = 0
GET_PLAYER_COORDINATES player x_float_m y_float_m z_float_m
GET_PLAYER_HEADING player player_heading_debug
IF player_heading_debug < 45.0
AND player_heading_debug > 0.0
y_float_m += 5.0
debug_car_heading = 90.0
ENDIF
IF player_heading_debug < 360.0
AND player_heading_debug > 315.0
y_float_m += 5.0
debug_car_heading = 90.0
ENDIF
IF player_heading_debug < 135.0
AND player_heading_debug > 45.0
x_float_m -= 5.0
debug_car_heading = 180.0
ENDIF
IF player_heading_debug < 225.0
AND player_heading_debug > 135.0
y_float_m -= 5.0
debug_car_heading = 270.0
ENDIF
IF player_heading_debug < 315.0
AND player_heading_debug > 225.0
x_float_m += 5.0
debug_car_heading = 0.0
ENDIF
z_float_m = z_float_m + 0.6
GET_GROUND_Z_FOR_3D_COORD x_float_m y_float_m z_float_m z_float_m
REQUEST_MODEL counter_create_car
WHILE NOT HAS_MODEL_LOADED counter_create_car
WAIT 0
PRINT_NOW LOADCAR 100 1 //"Loading vehicle, press pad2 leftshoulder1 to cancel"
IF IS_BUTTON_PRESSED PAD2 LEFTSHOULDER1
//++ counter_create_car
GOTO next_carzzz
ENDIF
ENDWHILE
CREATE_CAR counter_create_car x_float_m y_float_m z_float_m magic_car
SET_CAR_HEADING magic_car debug_car_heading
LOCK_CAR_DOORS magic_car CARLOCK_UNLOCKED
MARK_MODEL_AS_NO_LONGER_NEEDED counter_create_car
MARK_CAR_AS_NO_LONGER_NEEDED magic_car
next_carzzz:
IF initial_create_car = 0
IF counter_create_car = 151
AND initial_car_selected = 0
counter_create_car = 105 //BIKE_BIKE
initial_car_selected = 1
ENDIF
IF counter_create_car = 105
AND initial_car_selected = 0
counter_create_car = 110 //CAR_TAXI
initial_car_selected = 1
ENDIF
IF counter_create_car = 110
AND initial_car_selected = 0
counter_create_car = 128 //CAR_CABBIE
initial_car_selected = 1
ENDIF
IF counter_create_car = 128
AND initial_car_selected = 0
counter_create_car = 116 //CAR_POLICE
initial_car_selected = 1
ENDIF
IF counter_create_car = 116
AND initial_car_selected = 0
counter_create_car = 97 //CAR_FIRETRUCK
initial_car_selected = 1
ENDIF
IF counter_create_car = 97
AND initial_car_selected = 0
counter_create_car = 106 //CAR_AMBULANCE
initial_car_selected = 1
ENDIF
IF counter_create_car = 106
AND initial_car_selected = 0
counter_create_car = 119 //CAR_BANSHEE
initial_car_selected = 1
ENDIF
IF counter_create_car = 119
AND initial_car_selected = 0
counter_create_car = 101 //CAR_INFERNUS
initial_car_selected = 1
initial_create_car = 1
ENDIF
IF counter_create_car = 101
AND initial_car_selected = 0
counter_create_car = 92 //CAR_STINGER
initial_car_selected = 1
initial_create_car = 1
ENDIF
ELSE
++ counter_create_car
IF counter_create_car > 153
counter_create_car = 90
ENDIF
IF counter_create_car = 140 //PLANE_AIRTRAIN
OR counter_create_car = 141 //PLANE_DEADDODO
counter_create_car = 142
ENDIF
IF counter_create_car = 124 //TRAIN_SUBWAY
OR counter_create_car = 125 //HELI_POLICE
counter_create_car = 126
ENDIF
IF counter_create_car = 131 //CAR_RCBANDIT
counter_create_car = 132
ENDIF
IF counter_create_car = 147 //HELI
counter_create_car = 148
ENDIF
ENDIF
flag_create_car = 1
button_press_flag = 1
ENDIF
IF IS_BUTTON_PRESSED PAD2 LEFTSHOULDER1
AND flag_create_car = 1
IF NOT IS_CAR_DEAD magic_car
GENERATE_RANDOM_INT_IN_RANGE 0 88 car_colour2
CHANGE_CAR_COLOUR magic_car car_colour car_colour2 // 0 - 88
++car_colour
IF car_colour > 87
car_colour = 0
ENDIF
ENDIF
ENDIF
IF NOT IS_BUTTON_PRESSED PAD2 RIGHTSHOULDER1
AND button_press_flag = 1
button_press_flag = 0
ENDIF
IF IS_BUTTON_PRESSED PAD2 RIGHTSHOULDER1
AND flag_create_car = 1
AND button_press_flag = 0
IF IS_CAR_DEAD magic_car
DELETE_CAR magic_car
ELSE
IF NOT IS_PLAYER_IN_CAR player magic_car
DELETE_CAR magic_car
ELSE
MARK_CAR_AS_NO_LONGER_NEEDED magic_car
ENDIF
ENDIF
flag_create_car = 0
initial_car_selected = 0
button_press_flag = 1
ENDIF
ENDIF
GOTO MainLoop
TERMINATE_THIS_SCRIPT