roberthammer 582 Posted July 29, 2013 Have anybody idea how to make a custom weapons to use iron sight zeroing? like on MX etc I have this in my custom class discreteDistance[] = {100,300,400,600,800}; discreteDistanceInitIndex = 1; weaponInfoType = "RscWeaponZeroing"; It is not working and i have no idea why - in OA it worked simple and easy :/ Share this post Link to post Share on other sites
Jackal326 1182 Posted July 29, 2013 Seems to work fine for the weapons I've been working on. The only difference I can see between your code and that which I have been using is that I don't have 'weaponInfoType' defined and instead simply inherit from the 'Rifle_Base_F' class. Share this post Link to post Share on other sites
roberthammer 582 Posted July 29, 2013 Tried it without 'weaponInfoType'​ and still not working - custom weapon is inherited from the 'Rifle_Base_F' class Share this post Link to post Share on other sites
Jackal326 1182 Posted August 1, 2013 (edited) Perhaps its a "feature" BI have added in a recent patch. Do you run the Dev Branch or the 'Stable' branch? I haven't booted up the game in a couple of weeks so my info might be null and void and my code may no longer work either :/ Edit: After booting up the game for the first time in weeks, it must be something BI has "fixed/changed/edited/broken" (delete as appropriate), as zeroing no longer works for the rifles I had coded up (and that previously worked fine). Edited August 1, 2013 by Jackal326 Share this post Link to post Share on other sites
roberthammer 582 Posted August 2, 2013 Yeah - it must be something bugged and yes i got dev branch Share this post Link to post Share on other sites
soul_assassin 1750 Posted August 30, 2013 (edited) I've ran into the same problem. Optics zero fine, however the iron sights not. Maybe a special hardcoded memory point is required? Edit: Actually interestingly the weapon actually zeros. You can try shooting at something close you will see lift in the ballistic arc. Just cant seem to see the distance in the UI. Edited August 30, 2013 by Soul_Assassin Share this post Link to post Share on other sites
soul_assassin 1750 Posted September 3, 2013 latest dev branch changelog mentiones this: "Fixed: Weapons picked up from crates are missing zeroing function" havnt tested as at work atm but this maybe the solution. My test weapons were exclusively from crates Share this post Link to post Share on other sites
roberthammer 582 Posted September 6, 2013 latest dev branch changelog mentiones this:"Fixed: Weapons picked up from crates are missing zeroing function" havnt tested as at work atm but this maybe the solution. My test weapons were exclusively from crates Yes its fixed :) Share this post Link to post Share on other sites