I made a
SPON_Recog_currentWeapon function in the current version of
SPON RecogniseThanks, it will be interesting.
Not really sure what an upDegree is meant to represent, so I'm not sure if new weapons could use different values and mess this suggested solution up. Nevertheless, it seems like an inspired solution to the problem...
Regarding upDegree. upDegree - it is the property of the animations (it is not from the cfgWeapons, but from (for example) "CfgMovesBasic >> Actions >> SomeActions >> upDegree")
It works correctly in all situations.
I had to deal with the animation graph for some OFP-mods, and I can vouch for that

It's reliably because the script does the same as the game itself. Only the game does this to find the animation. And while the animation will be consistent with the type of weapons - everything will work properly.
I'm not sure that I will explain this in english, but, be that as it may:
Classes in "CfgMovesBasic >> Actions" can have any name. So which group of animations ("CfgMovesMC >> Actions >> someClass") will be chosen AI (to play animation) depends on the upDegree.
If any addons (of animation) would use an arbitrary (inappropriate) value for upDegree - it's just violates AI-behavior
Using upDegree can provide good opportunities for scripting. I'm often use it
PS.
I looked over your script. script dependent on the classname - this approach may be inconsistent with the modified config of animations. Of course, in real life (and at AramA age) is unlikely to happen. But, nevertheless.
I will try to explain some features of config:
Any class in the "CfgMovesMaleSdr >> Actions" can have any name. What it will be - depends on upDegree.
Any class in the "CfgMovesMaleSdr >> States" can have any name. What it will be - depends on the linking (to the common graph) and on the "actions"-property.
Any soldier can have an different value in the "moves"-property - and then, in all cases you should use this value instead CfgMovesMaleSdr.
I'm sorry that my posts are often changing. I always think that everything I wrote was unclear. For example, I don't know how to say "on arma age" - "during the life of the arma"

[offtopic]
@Spooner
I downloaded many of your scripts now, and I like it a lot. Could I learn - this project is related to the RPG, or it is the framework is not tied to a specific genre? Where I could find it (any link) ?
[/offtopic]