[lua] 2DFX - creating light sources
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.
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.
Category:
Section:
Author:
Vladimir_P
E-mail / website:
Unknown
File size:
471.37 Kb
File replaces:
Unknown
Uploaded:
Downloads:
611
Download file
Download From Telegram
fast and easy
fast and easy
-
1497967600_2dfx-new-lua.zipDownload (0.46 MB)Password: libertycity
-
drive.google.comDownloadPassword: libertycity
Recommended files
29 July 2011
GTA San Andreas
San Andreas - New roads HQ
Are you tired of the old, already so hackneyed roads in San Andreas? Do you want something new and very high quality? Then this mod is for you! This modification replaces absolutely all roads throughout the state of San Andreas. In addition to roads,...
9 April 2012
GTA San Andreas
Road captain biker
High-quality biker skin! Replaces bikdrug. The screenshot shows how fat he is With a beard, angry, etc. etc. Play for health.
6 August 2019
GTA San Andreas
HQ Road Signs - HQ Roadsigns
New and improved road signs in HQ quality. You may also like other HD road signs . Installing via modloader.
Schrader
3199
2.10 MB
4 March 2018
GTA San Andreas
RR | Roads Revolution 2.0
Well, here is the second version of my roads. Unlike the first version, which was very buggy, here I tried to work out everything to the maximum, do it without bugs, and also add my own features. Roads have been replaced everywhere. Approximately 2 ...
27 February 2013
GTA San Andreas
New Roads for GTA San Andreas
New roads in Los Santos, San Fierro and Las Venturas. More details can be found in the ReadMe.txt file. Have a good game!
16 November 2012
GTA San Andreas
Los Santos Roads HD
Beautiful and realistic roads for Los Santos in high definition and quality.
13 March 2024
GTA San Andreas
HD road textures
Road Texture HD GTA SA This modification, improves the quality of roads in the state. Features: High quality textures; HD textures; High weight. Enjoy the game.
12 November 2019
GTA San Andreas
Roads like in the USA
US Roads for GTA SA! This mod replaces the standard roads with better and more detailed ones, in addition, beautiful markings will appear, like on US roads.
12 October 2012
GTA San Andreas
New roads
New road textures in GTA SA. Replace or go. Good quality textures.
26 November 2018
GTA San Andreas
Realistic roads in HQ (Corrected version)
Real HQ Roads. Corrected version of this mod , which replaces roads and most sidewalks across the state. Textures in 1024x1024 resolution. What's in the new version: - Added mip-maps - Texture compression applied - Fixed ground textures in some ...
24 July 2013
GTA San Andreas
New quality roads
Features: Replaced absolutely all roads in the state (in all 3 cities and their environs). High-quality textures of roads and curbs. Installation instructions: Using IMGTool 2.0 or Crazy IMG Editor, import files from the "Import to IMG" folder into t...
1 March 2024
GTA San Andreas
GTA 5 style roads
GTA V Roads for San Andreas Features: High quality textures; Proper markup; Doesn't look bad in-game; Road replaced not everywhere. Enjoy the game.
15 December 2024
GTA San Andreas
Busy Pedestrians: Peds Events Project
This modification is a combination of a large number of my modifications related to people, enlivening the world around us and adding huge variety to the game. The modifications are combined into one common ifp file, but each is located in a separat...
23 October 2024
GTA San Andreas
Void Weapon Wheel
A simple and convenient weapon wheel that does not stand out from the general style of the game. Features: Works both on the key and using the mouse wheel; Compatible with gamepads (needs GInput); Compatible with SAMP; Compatible with lo...
Comments 6