Difference between revisions of "Gun Spread Formula"

349 bytes added ,  20:41, 11 November 2009
no edit summary
imported>SnakeChomp
(New formatting)
imported>DomFada
 
(4 intermediate revisions by 3 users not shown)
Line 21: Line 21:




''IsUsingIronSights'' is 1 if the actor is aiming with iron sights and 0 otherwise.
''IsUsingIronSights'' is 1 if the actor is aiming with iron sights and 0 otherwise, but there is no function by this name.


''IsSneaking'' is 1 when the actor is sneaking and 0 otherwise.
''IsSneaking'' is the [[IsSneaking]] function.


''WeaponCondition'' is the condition of the weapon equipped by the actor
''WeaponCondition'' is the condition of the weapon equipped by the actor.
:This value is 1.0 at 100%, 0.5 at 50% and 0.0 at 0%
:This value is 1.0 at 100%, 0.5 at 50% and 0.0 at 0%


Line 31: Line 31:
:The skill value used is specified on the [[Weapons|weapon form]]
:The skill value used is specified on the [[Weapons|weapon form]]


''IsRunning'' is 1 if the actor is running and 0 otherwise.
''IsRunning'' is the [[IsRunning]] function.


''IsWalking'' is 1 if the actor is walking and 0 otherwise.
''IsWalking'' is 1 if the actor is walking and 0 otherwise, but there is no function by this name.


''ArmCondition'' is the condition of the actor's arm.
''ArmCondition'' is the condition of the actor's arm.
Line 68: Line 68:
}}
}}
{{SettingGroupSetting
{{SettingGroupSetting
|Name = fGunSpreadCondBase
|Name = fGunSpreadCondMult
|Default = 0
|Default = 0
|Description = Used when calculating ''ConditionPenalty''
|Description = Used when calculating ''ConditionPenalty''
Line 113: Line 113:
}}
}}
{{SettingGroupFooter}}
{{SettingGroupFooter}}
=== Second spread formula ===
Use of an additional formula for the gun's own spread has been suggested, taking into account the role of Min. Spread and Spread. Until it's been validated and this page changed, see the "Discussion" page for details.


=== Minimum Spread ===
=== Minimum Spread ===
Line 118: Line 122:
The gun spread value used by the game engine will never be less than the "Min Spread" value specified on the [[Weapons|weapon form]] for the equipped weapon. If the value given by the formula is less than the "Min Spread" value, the value from the formula will be ignored and the "Min Spread" value for the weapon will be used instead.
The gun spread value used by the game engine will never be less than the "Min Spread" value specified on the [[Weapons|weapon form]] for the equipped weapon. If the value given by the formula is less than the "Min Spread" value, the value from the formula will be ignored and the "Min Spread" value for the weapon will be used instead.


Most weapons have a non zero value for "Min Spread". Therefore, no matter how skilled you are with the weapon or what perks you have, your weapon will always have a slight amount of spread. One notable exception to this are sniper rifles, which have 0 minimum spread, allowing weapon spread to be eliminated with a small guns skill of 100.
Most weapons have a non zero value for "Min Spread". Therefore, no matter how skilled you are with the weapon or what perks you have, your weapon will always have a slight amount of spread. One notable exception to this are sniper rifles, which have 0 minimum spread, allowing weapon spread to be eliminated with a small guns skill of 100.  The laser pistol and rifle also have 0 min spread.


=== Notes ===
=== Notes ===
Anonymous user