RHS Feedback - USAF
View Issue Details
0004134USAF[All Projects] Generalpublic2018-04-26 12:592018-04-26 17:39
Shock 
reyhard 
noneminoralways
closedno change required 
 
 
No
1.82
Yes
JSRS with the RHSUSAF compatibility mod
0004134: RHSUSAF pistol incompatibility JSRS
When combining RHSUSAF with JSRS (RHS compatibility patch), the glock, M9 and M1911A1 gain incorrect firing modes for the AI. They start shootings their pistols out to 500 metres. The reason for this is that their "Single" firing mode isn't defined in the RHS config. It is inherited straight from its parent class (a vanilla Arma 3 pistol). When JSRS changes this firing mode to change the sound, it causes the "Single" firing mode to inherit the characteristics of the "Mode_SemiAuto" firing mode, which goes out to 500 metres.
Load up RHSUSAF and JSRS with the RHSUSAF compatibility mod. Spawn units with glocks/M9s/M1911A1s and have them engage enemy units at ranges beyond 100 metres.
To fix, you have to set the "Single" firing mode in the config. In the rhsusf_c_weapons config, classes rhsusf_weap_m1911a1 and rhsusf_weap_glock17g4, add the following subclass:

class Single : Mode_SemiAuto {
 minRange = 5;
 minRangeProbab = 0.3;
 midRange = 25;
 midRangeProbab = 0.6;
 maxRange = 50;
 maxRangeProbab = 0.1;
 aiRateOfFire = 2;
 aiRateOfFireDistance = 25;
};

You might need to add more in that class, but this will at least fix the AI firing mode issue.
No tags attached.
Issue History
2018-04-26 12:59ShockNew Issue
2018-04-26 13:07reyhardNote Added: 0007711
2018-04-26 13:07reyhardStatusnew => closed
2018-04-26 13:07reyhardAssigned To => reyhard
2018-04-26 13:07reyhardResolutionopen => no change required
2018-04-26 15:12ShockNote Added: 0007712
2018-04-26 16:00reyhardNote Added: 0007713
2018-04-26 16:29ShockNote Added: 0007714
2018-04-26 17:39reyhardNote Added: 0007715

Notes
(0007711)
reyhard   
2018-04-26 13:07   
issue lays in JSRS cfg
(0007712)
Shock   
2018-04-26 15:12   
Are you kidding me? You've misconfigured the pistols by putting their range probabilities in the weapon class itself rather than in the firing mode it actually uses. I've given you the solution on a silver platter!
(0007713)
reyhard   
2018-04-26 16:00   
Is it happening without jsrs?
(0007714)
Shock   
2018-04-26 16:29   
No, but JSRS is not misconfiguring your firing modes. It's just exposing problems with the inheritance of classes. JSRS cannot fix this problem on their end without adding in code to set up the firing modes.
(0007715)
reyhard   
2018-04-26 17:39   
Your solution is invalid but thing that you partially described was fixed in other ticket https://imgur.com/a/kQrQptl [^]