Page MenuHomeFeedback Tracker

Changing from handgun to primary weapon via scripts (ie selectWeapon) is broken in most stances
New, WishlistPublic

Description

In effect, switching the player's equipped weapon from their handgun to their primary weapon via scripting functions is bugged in all stances aside from the default standing. When standing, a player may be cycled through any of their weapons without issue via selectWeapon. In any other position, every other transition works correctly (ie between secondary and primary weapons, and handgun and secondary weapon), however switching directly from pistol to rifle does not. The primary weapon will be considered equipped, however the player is unable to move, and firing will fire the weapon straight upward as it rests on the player's back.

Details

Legacy ID
2275707458
Severity
None
Resolution
Open
Reproducibility
Always
Category
Anims
Steps To Reproduce

Enter the editor and create a unit, and execute the following while crouched a handgun equipped:
player selectWeapon (primaryWeapon player)

Event Timeline

Hypnomatic edited Additional Information. (Show Details)
Hypnomatic set Category to Anims.
Hypnomatic set Reproducibility to Always.
Hypnomatic set Severity to None.
Hypnomatic set Resolution to Open.
Hypnomatic set Legacy ID to 2275707458.May 7 2016, 4:00 PM
sms added a subscriber: sms.May 7 2016, 4:00 PM
sms added a comment.Aug 26 2013, 9:31 AM

Those stances (animationState player) are:

"aadjpercmstpsraswpstdup"
"aadjpercmstpsraswpstddown"
"aadjpercmstpsraswpstdright"
"aadjpercmstpsraswpstdleft"
"aadjpknlmstpsraswpstdup"
"aadjpknlmstpsraswpstdright"
"aadjpknlmstpsraswpstdleft"
"aadjpknlmstpsraswpstddown"
"aadjppnemstpsraswpstdup"
"amovppnemstpsraswpstdnon"
"aadjppnemstpsraswpstdright"
"aadjppnemstpsraswpstdleft"
"aadjppnemstpsraswpstddown"

http://www.youtube.com/watch?v=01AYhq4MYNc

sms added a comment.Sep 16 2013, 6:06 PM

Is this issue really belongs to "Anims" category? Maybe "Scripting"? What do you think?