[lua] 2DFX - creating light sources
-
1497967600_2dfx-new-lua.zipDownload (0.46 MB)Password for the archive: libertycity
-
drive.google.comDownloadPassword for the archive: libertycity
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.
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, то не будет проекции.
Recommended files
![](https://files.libertycity.net/download/gtasa_lua/thumbs/2017-07/lua-entrance-sozdanie-markerov-dlja_1685997756_516710.webp)
[Lua] Entrance - creating movement markers
![](https://files.libertycity.net/download/gtasa_study/thumbs/2013-09/sozdanie-2dfx-s-2dfx-tool_1685991144_737266.webp)
Creating 2dfx with 2dfx tool
![](https://files.libertycity.net/download/gtasa_study/thumbs/2018-03/kak-sdelat-2dfx-v-gta-sa-svet_1685999365_228488.webp)
How to make 2dfx in GTA SA [Light]
![](https://files.libertycity.net/download/gtasa_scripts/thumbs/2024-10/car-collision-light_1729732984_222008.webp)
Collision lighting
![](https://files.libertycity.net/download/gtasa_asi/thumbs/2017-02/neon-lights-colormod-by-deep-yurple_1685996788_245611.webp)
Neon Lights Colormod by Deep Yurple
![](https://files.libertycity.net/download/gtasa_scripts/thumbs/1296805253_turrn.webp)
Universal turn signals
![](https://files.libertycity.net/download/gtasa_scripts/thumbs/1320082126_turn1.webp)
Universal turn signals 2.0
![](https://files.libertycity.net/download/gtasa_scripts/thumbs/2012-08/aktivnaja-pribornaja-panel-3-0_1685989402_154168.webp)
Active Dashboard 3.0
![](https://files.libertycity.net/download/gtasa_scripts/thumbs/2012-12/aktivnaja-pribornaja-panel-3-1_1685989936_879820.webp)
Active Dashboard 3.1
![](https://files.libertycity.net/download/gtasa_scripts/thumbs/2013-01/turn-indicators-2-2_1685990000_171700.webp)
Turn Indicators 2.2
![](https://files.libertycity.net/download/gtasa_scripts/thumbs/2013-05/app-3-2b_1685990484_75071.webp)
AMS 3.2b
![](https://files.libertycity.net/download/gtasa_scripts/thumbs/2014-01/app-3-2-full-model-avtokrana_1685991608_379701.webp)
APP 3.2 FULL + Truck Crane Model
![](https://files.libertycity.net/download/gtasa_scripts/thumbs/2014-02/app-3-2-1_1685991740_353223.webp)
AMS 3.2.1
![](https://files.libertycity.net/download/gtasa_objects/thumbs/2024-10/vognishhe_1728848798_219673.webp)
Fireplace
![](https://files.libertycity.net/download/weapon_gtasaassaultrifles/thumbs/2014-03/ak-74s_1642868204_338698.webp)