Invisible Car Fix (fix invisible cars)
-
Password for the archive: libertycity
Hello everyone! Have you encountered such a problem - you are in some interior (a stadium, for example) and spawned a car. But she is not! Or rather, it is, it just became invisible.
This fix fixes this problem and you can spawn "visible" cars in all interiors.
It can also be turned off by entering the cheat code "fixcars", which will make a characteristic sound.
For those who want to understand how it works...
Now in order. Car spawners do not take into account the fact that players can spawn cars (and not only) in interiors. Because of this, all cars are attached to interior 0(street),
but because we are not in interior 0, then the visible car will only be in interior 0 (that is, it is “invisible” for us). All this is solved by two lines of code after the car spawns.
Example:
:CarCreating //stream name
wait 0 // wait otherwise the game will freeze
if // if
0ADC: test_cheat "elegy" //cheat code written
jump @CarCreating2 //if the cheat code is written, jump to the "CarCreating2" stream
:CarCreating2 //stream name
wait 0 //wait, otherwise the game will freeze
model.load(#elegy) //load model "elegy"(car model)
038B: load_requested_models //register the model in the game (the model won't load without this opcode)
if //if
model.available(#elegy) //model loaded
jf @CarCreating2 //otherwise go to the beginning of the "CarCreating2" stream
Car.create(0@ #elegy 1@ 2@ 3@) //create a car
077E: get_active_interior_to $ACTIVE_INTERIOR //see which interior the player is in
0840: link_car 0@ to_interior $ACTIVE_INTERIOR // "attach" (make it visible to us) car
car.RemoveReferences(0@) //remove car info
jump @CarCreating //jump to the very beginning of the script
where 0@ is the auto itself; #elegy - car model; 1@ 2@ 3@ - variables (in this case - coordinates); $ACTIVE_INTERIOR - interior number variable.
Just these two lines:
077E: get_active_interior_to $ACTIVE_INTERIOR //see which interior the player is in
0840: link_car 0@ to_interior $ACTIVE_INTERIOR // "attach" (make it visible to us) car
where 0@ is the desired vehicle (vehicle); $ACTIVE_INTERIOR - interior number variable.
But if we change the interior, the car will become “invisible”
Всем привет! Вы сталкивались с такой проблемой - вы в каком-нибудь интерьере(стадион, например) и заспавнили машину. Но её нет! Вернее она есть, просто стала невидимой.
Данный фикс исправляет эту проблему и вы можете спавнить «видимые» машины во всех интерьерах.
Также это можно отключить, введя чит-код «fixcars», при этом раздастся характерный звук.
Для тех, кто хочет разобраться, как это работает...
Теперь по порядку. Спавнеры машин не учитывают то, что игроки могут спавнить авто(и не только) в интерьерах. Из-за этого все машины прицепляются к интерьеру 0(улица),
но т.к. мы находимся не в интерьере 0, то и видимой машина будет только в интерьере 0(т.е для нас она «невидима»). Все это решается двумя строчками кода после спавна авто.
Пример:
:CarCreating //наименование потока
wait 0 // ждем, в противному случае игра зависнет
if // если
0ADC: test_cheat «elegy» //чит-код написан
jf @CarCreating //в противном случае переходим в начало потока «CarCreating»
jump @CarCreating2 //если чит-код написан, переходим в поток «CarCreating2»
:CarCreating2 //наименование потока
wait 0 //ждем, в противном случае игра зависнет
model.load(#elegy) //загружаем модель \"elegy\"(модель автомобиля)
038B: load_requested_models //регистрируем модель в игре(без этого опкода модель не загрузится)
if //если
model.available(#elegy) //модель загружена
jf @CarCreating2 //в противном случае переходим в начало потока «CarCreating2»
Car.create(0@ #elegy 1@ 2@ 3@) //создаем машину
077E: get_active_interior_to $ACTIVE_INTERIOR //смотрим, в каком интерьере находится игрок
0840: link_car 0@ to_interior $ACTIVE_INTERIOR //\"прицепляем\"(делаем ее видимой для нас) машину
car.RemoveReferences(0@) //удаляем инфу о машине
jump @CarCreating //переходим в самое начало скрипта
где 0@ - само авто; #elegy - моделька авто; 1@ 2@ 3@ - переменные(в данном случае - координаты); $ACTIVE_INTERIOR - переменная номера интерьера.
Всего вот эти две строчки:
077E: get_active_interior_to $ACTIVE_INTERIOR //смотрим, в каком интерьере находится игрок
0840: link_car 0@ to_interior $ACTIVE_INTERIOR //\"прицепляем\"(делаем ее видимой для нас) машину
где 0@ - нужное ТС(транспортное средство); $ACTIVE_INTERIOR - переменная номера интерьера.
Делают авто «видимым» для нас. Но если мы поменяем интерьер, то машина станет «невидимой»
Recommended files

CJ can fix a car

Wrecked car fix

Vice City fixed cars pack

Fixing bugs with the car in the water

Fixed Police Cars

Fix Car Fire on the Water v1.0.2

Tuned cars on the streets - Tuner Traffic Fix

Fixing abandoned cars - Prop Vehicles Project

Fixing Abandoned Cars - Prop Vehicles Project v1.1

Fixing wheel collisions on cars

Fixed license plate for a police car (ImVehFt adaptation)

Car Air Reaction (fixed)

Improved car crash physics Fixed

Extreme Car Control by xXx2o1o 3.0 FINAL
