Up
  • Mods and files
    • All files
    • Exclusives
    • Author files
    • Best files of the week
    • Upload file
  • News
  • Cheats
  • Articles
  • Guides
  • EN
New comments
GTA 6 GTA 5 GTA San Andreas GTA 4 GTA Vice City GTA 3 Red Dead Redemption 2 Red Dead Redemption Other games Mod Development Miscellaneous
  • Mods and files
  • GTA San Andreas
  • Mods
  • Lua scripts
  • [lua] 2DFX - creating light sources

[lua] 2DFX - creating light sources

  • [lua] 2DFX - creating light sources / GTA San Andreas
GTA San Andreas / Mods / Lua scripts
Author:
Vladimir_P
More details
Uploaded:
Vladimir_P Subscribe You are subscribed
Size:
471.37 Kb
Uploaded:
20 June 2017
Downloads:
636
Total downloads: 636
Unique downloads: 218
10 / 10
15 people rated the file
fuwadeus
stalsharik
StreetBoy
Dinar1998
Emsi_Gronson
Aoba_Suzukaze
GideonAW3
Poya
Somik Render
Chel555
RUS777
Nikoljus
FerrumBOY
Vladimir_P
Mor
No one has rated the file yet.
Download Download in Telegram Download in Discord
To favorites In favorites
  • 1497967600_2dfx-new-lua.zip
    Virus check from Virustotal: the file is safe (view report)
    Download (0.46 MB)
  • drive.google.com
    Download

2DFX is a lua script that allows you to easily create light sources in the game. The creation of light sources is carried out through the INI file.

This script is an improved version of my first script.

As an example, the light sources in the bar are registered. (see screenshot)

Possibilities:

- creating a corona of light

- creating a projection of light under the crown

- creating the effect of lighting vehicles and characters

- setting the mode of the light source

- there is no need to number the sections in the ini file in order, the script iterates over sections with numbers 1...9999

Installation: Copy the moonloader folder to the game directory.

INI file setting:

[1] -- Section number. The script reads sections with numbers 1...9999. You can number non-sequentially, as well as with omissions of some numbers. Please note that there should not be several sections with the same number.

X=511.64 -- x coordinate

Y=-85.2194 -- y coordinate

R=64 -- Red 0...255

G=192 -- Green 0...255

B=128 -- Blue 0...255

Dist=20 -- The distance at which the light source will be drawn. (limitation is made to prevent lag. For example: there is no need to draw a light source from huge distances that is in the house. It can only be drawn when the player is nearby)

CoronaRadius=0.4 -- Corona radius

CoronaType=1 -- Type of crown

LightRadius=5.5 -- Player light radius and vehicles

ProjectionRadius=1.5 -- Projection radius

ProjectionAmount=0.1 -- Projection gain (recommended value is 0....0.6 so that the projection is not too bright)

Nightonly=true -- If set to true, then the light will only be on at night. Otherwise, the light will be permanent.

Possible simplifications:

If you do not specify CoronaRadius or CoronaType, then the crown will not be displayed

If you do not specify LightRadius, then there will be no lighting for characters and vehicles

If you do not specify ProjectionRadius or ProjectionAmount, then there will be no projection.

The file name and description have been translated. Show original (RU)Show translation (EN)
[lua] 2DFX - создание источников света

2DFX - lua скрипт, позволяющий без особого труда создавать в игре источники света. Создание источников света осуществляется через INI файл.

Данный скрипт является усовершенствованной версией моего первого скрипта.

В качестве примера прописаны источники света в баре. (смотри скрин)

Возможности:

- создание световой короны

- создание проекции света под короной

- создание эффекта освещения транспорта и персонажей

- настройка режима работы источника света

- нет необходимости нумеровать секции в ini файле по порядку, скрипт поочерёдно перебирает секции с номерами 1...9999

Установка: Папку moonloader скопировать в директорию с игрой.

Настройка INI файла:

[1] -- Номер секции. Скрипт читает секции с номерами 1...9999. Можно нумеровать не последовательно, а также с пропусками некоторых номеров. Учтите, что не должно быть нескольких секций с одним номером.

X=511.64 -- координата x

Y=-85.2194 -- координата y

Z=1001.36 -- координата z

R=64 -- Красный 0...255

G=192 -- Зелёный 0...255

B=128 -- Синий 0...255

Dist=20 -- Дистанция, с которой будет отрисовываться источник света. (ограничение сделано для предотвращения лагов. Например: нет необходимости прорисовывать источник света с огромных расстояний, который находится в доме. Его можно прорисовывать только тогда, когда игрок рядом)

CoronaRadius=0.4 -- Радиус короны

CoronaType=1 -- Тип короны

LightRadius=5.5 -- Радиус освещения игроков и транспорт

ProjectionRadius=1.5 -- Радиус проекции

ProjectionAmount=0.1 -- Коэффициент усиления проекции (рекомендуется значение 0....0.6 для того, чтоб проекция не была слишком яркой)

Nightonly=true -- Если установлено true, то свет будет только ночью. Если иное - свет будет постоянно.

Возможные упрощения:

Если не указать CoronaRadius или CoronaType, то корона не будет отображена

Если не указать LightRadius, то не будет освещение персонажей и транспорта

Если не указать ProjectionRadius или ProjectionAmount, то не будет проекции.

Comments 6
© 2008- LibertyCity
Creator and developer: Evgenii Sokolov
Copying materials without the permission of the administration or the respective owners is strictly prohibited.
Contact us
Mobile version Desktop version
Mods and files News and articles Cheats and guides Users
Click here for advanced file search