Weapon accuracy parameters -1 reply

Please wait...

Guest

I didn't make it!

0 XP

 
#1 11 years ago

Hello everyone, I have the following situation: I'd like to modify the Enfield (w_l85.ltx) to have similar accuracy/damage as the GP37 (w_g36.ltx). I'v managed to give the Enfield similar damage, but the accuracy still stays at it's defaults. I've modified the PDM_* and the fire_dispersion_base parameters to be identical between the 2 - still the bar shows different values for the 2 weapons. Can someone please help me ? What are actually the parameters (at the weapon level) that controll it's accuracy (and the bar in the game) ? Thanks in advance :-)




True Evil

I'm too cool to Post

50 XP

4th May 2007

0 Uploads

12 Posts

0 Threads

#2 11 years ago

Public Function GetAccuracy(ByVal fire_dispersion_base As Double, _ ByVal cam_dispersion As Double, ByVal cam_step_angle_horz As Double, _ ByVal rpm As Integer, ByVal k_disp As Double, _ Optional ByVal cam_dispertion_inc As Double = 0, Optional ByVal cam_dispertion_frac As Double = 1) As Integer Dim dAccuracy As Double

If k_disp > 3.5 Then k_disp = 0.3 End If

Dim fir, inc, dis, fra As Double fir = Math.Log10(1 / (fire_dispersion_base * k_disp)) inc = Math.Log10(1 / (cam_dispersion / 10 + cam_dispertion_inc)) dis = Math.Log10(1 / (cam_dispersion * cam_step_angle_horz)) fra = Math.Pow(cam_dispertion_frac, 1.5)

dAccuracy = 30 * fir + 15 * dis * fra + 0.02 * rpm * inc * fra

Return normalize(dAccuracy) End Function

weapon accuracy depend on these values. So you need mod some of these value.




Final Warrior

Just another Ghø$† ¡n †h€ ƒøg

50 XP

4th April 2007

0 Uploads

302 Posts

0 Threads

#3 11 years ago
sigsegv;3668040Hello everyone, I have the following situation: I'd like to modify the Enfield (w_l85.ltx) to have similar accuracy/damage as the GP37 (w_g36.ltx). I'v managed to give the Enfield similar damage, but the accuracy still stays at it's defaults. I've modified the PDM_* and the fire_dispersion_base parameters to be identical between the 2 - still the bar shows different values for the 2 weapons. Can someone please help me ? What are actually the parameters (at the weapon level) that controll it's accuracy (and the bar in the game) ? Thanks in advance :-)

You also want to change the cam_ values. Check niphty's guide.

-- Griffinhart




Guest

I didn't make it!

0 XP

 
#4 11 years ago

Thanks, it works. :)