reflectors: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Reflectors in Arma 3 - How to write them)
 
Tag: New redirect
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|= Comments
#REDIRECT [[CfgVehicles_Config_Reference#Reflectors_Class]]
____________________________________________________________________________________________
 
| ofp |= Game name
 
|1.00|= Game version
 
|arg= local |= Arguments in MP
 
|eff= global |= Effects in MP
____________________________________________________________________________________________
 
| Add a light to an object in class cfgvehicles  |= Description
__________________________________________________________________________________________
 
|position: [[memorypoint]] - memory point in the vehicle where the light will show |= Parameter 1
 
____________________________________________________________________________________________
|x1= <code>
class Reflectors
{
class Left
{
position = "L svetlo";
direction = "konec L svetla";
hitpoint = "L svetlo";
selection = "L svetlo";
color[] = {7000,7500,10000};
ambient[] = {70,75,100};
intensity = 50;
size = 1;
innerAngle = 15;
outerAngle = 65;
coneFadeCoef = 10;
useFlare = 1;
flareSize = 10;
flareMaxDistance = 250;
dayLight = 0;
class Attenuation
{
start = 0;
constant = 0;
linear = 1;
quadratic = 1;
hardLimitStart = 100;
hardLimitEnd = 200;
};
};
};
</code> |= Example 1
 
 
 
____________________________________________________________________________________________
 
 
}}
 
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
 
<dd class="notedate">Posted on May 18, 2016 - 11:51
<dt class="note">'''[[User:Eggbeast|Eggbeast]]'''<dd class="note">''Notes for Arma 3:''
 
The memory point you assign to position parameter is where the light source itself will be.
The one you put to direction is the way your light will shine.
The cone itself is set using innerAngle, outerAngle and coneFadeCoef.
innerAngle sets the cone in which the light has it's full intensity.
outerAngle sets the cone outside of which the light has zero intensity.
coneFadeCoef is a coefficient that describes attenuation of the light between innerAngle and outerAngle. 1 equals linear attenuation, higher or lower value changes it, meaning how sharp/blurred will the edge of the lightcone as a whole be.
Note that both the angles represent full angle of the cone, not just "angular offset" from direction of the light. If you set it to 90 degrees, it means the cone is 45 degrees to the "left" and 45 to the "right" of the direction specified by your memory points.
as a spot light, reflectors are not made for cones above 180 degrees.
Some time ago BIS made changes to the lighting system to allow for higher light variety during night time. One of the effects it had on configs of lights was that you need to set higher intensity than before the change to get the same results.
color[] and ambient[] seem to have changed from RGB from 0-1 to way higher values - see example.
 
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>

Latest revision as of 02:07, 22 November 2019