Using a script in CoC 1.4.22 how do I
Q1. Distinguish the scope type that is attached to a weapon?
Using stpk_utils the weapon addon_flags has 1 for scope, but how do I tell which scope type is attached?
Q2. Once I determine what attachments a weapon has, how do I remove the attachments from the weapon?
I did try finding the mechanic script as an example (since attachment are removed when you upgrade a weapon),
but had no success finding what I was looking for.
I'm assuming more then anything once again..
But after using printf to dump weapon data for all weapons in my inventory I gather the addon_flags works as:
1 = Scope
2 = Grenade launcher
4 = Silencer
It's easy enough for silencer (generic for all) and grenade laucher check the weapon ini to look up what a weapon uses.
But the scope bit got me stumped as there are multiple scopes for some weapons where should I be checking to find which one is used?.
I'm thinking of adding a remove all attachments feature to my little unload all weapons addon.
Off topic:
After the initial map bugs are sorted in CoC 1.5 I'll update to it.
I can't afford repeats of latge amounts of data as I only have access to prepaid mobile data where 3GB = $30 AU.
What I get for living in a backwards rural area, but I wouldn't have it any other way
