RHS Feedback - USAF
View Issue Details
0004212USAF[All Projects] Generalpublic2018-06-18 17:082018-06-19 14:17
StrohVogel 
reyhard 
noneminorN/A
feedbackreopened 
 
 
Yes
1.82
No
0004212: Inheritance from Vanilla guns
Some USAF weapons (like the M14 or the glock) inherit from vanilla weapons or different weapons.
This creates problems in specific scenarios/BIS scripts.

e.g persistent data related stuff where vanilla parent classes are saved instead of the actual modded classes
=> rhsusf_weap_glock17g4 is saved as hgun_P07_F (its parent)
=> rhsusf_weap_m9 is saved as rhsusf_weap_glock17g4 (its parent)
etc.

Request: remove the inheritance/add base classes for those weapons
Related Scripts:

\a3\missions_f_epa\Campaign_shared\Hubs\initArmory.sqf
\a3\missions_f_epa\Campaign_shared\Functions\fn_camp_onMissionInit.sqf
etc
No tags attached.
Issue History
2018-06-18 17:08StrohVogelNew Issue
2018-06-18 17:27reyhardStatusnew => closed
2018-06-18 17:27reyhardAssigned To => reyhard
2018-06-18 17:27reyhardResolutionopen => duplicate
2018-06-18 17:28reyhardStatusclosed => new
2018-06-18 17:28reyhardResolutionduplicate => reopened
2018-06-18 17:33reyhardNote Added: 0007834
2018-06-18 17:33reyhardStatusnew => feedback
2018-06-18 17:50StrohVogelNote Added: 0007835
2018-06-18 17:50StrohVogelStatusfeedback => new
2018-06-18 18:59reyhardNote Added: 0007836
2018-06-18 18:59reyhardStatusnew => feedback
2018-06-19 12:51StrohVogelNote Added: 0007839
2018-06-19 12:51StrohVogelStatusfeedback => new
2018-06-19 14:17reyhardNote Added: 0007840
2018-06-19 14:17reyhardStatusnew => feedback

Notes
(0007834)
reyhard   
2018-06-18 17:33   
removing inheritance is not an option so if you have an idea what is causing it (some missing parameter) then I might investigate. Otherwise it seems to be fault in script
(0007835)
StrohVogel   
2018-06-18 17:50   
I do have a workaround for my case. No idea whats causing it.
(0007836)
reyhard   
2018-06-18 18:59   
what kind of workaround?
(0007839)
StrohVogel   
2018-06-19 12:51   
creating child classes of the modded guns which inherit everything and using them in the mission files and in custom unit classes. Don't know if this is a long term solution though. Since the script seems to somehow get the parent classes, this should only work for the first save, since the second iteration would then again somehow get the parent classes, which would then be the vanilla classes.
Don't know why or how this is done the script, but since the only guns that happens with are children of vanilla guns, it has to do something with that.

Problem is probably unrelated to the mod directly.
(0007840)
reyhard   
2018-06-19 14:17   
is it only happening with pistols?