{"format_version":"1.21.0","animation_controllers":{"controller.animation.player.awp":{"initial_state":"inactive","states":{"inactive":{"on_entry":["@s gabrielaplok:remove_reloading"],"transitions":[{"fire":"q.is_item_name_any('slot.weapon.mainhand','gabrielaplok:awp')&&q.main_hand_item_use_duration&&q.scoreboard('awp')>=1&&!q.property('gun:reloading')&&!q.property('gun:cycle')&&!q.property('gun:standby')&&q.is_alive"},{"reload":"q.is_item_name_any('slot.weapon.mainhand','gabrielaplok:awp')&&q.main_hand_item_use_duration&&q.scoreboard('awp')<=0&&!q.property('gun:reloading')&&!q.property('gun:cycle')&&q.is_alive"},{"reload":"q.is_item_name_any('slot.weapon.mainhand','gabrielaplok:awp')&&q.is_sneaking&&v.attack_time&&q.scoreboard('awp')<=9&&!q.property('gun:reloading')&&q.is_alive"},{"cycle":"q.is_item_name_any('slot.weapon.mainhand','gabrielaplok:awp')&&q.property('gun:cycle')&&q.is_alive"}]},"fire":{"animations":["awp_fire"],"on_entry":["/function guns/fire/awp","/event entity @s[scores={awp=1..}] gabrielaplok:add_cycle","/execute as @s[score={awp=1}] run function effect/gun_dryfire"],"transitions":[{"inactive":"q.all_animations_finished||!q.is_alive"}]},"reload":{"animations":["awp_reload"],"on_entry":["/execute as @s[hasitem={item=gabrielaplok:awp_mag, quantity=1..}] run event entity @s gabrielaplok:add_reloading","/execute as @s[hasitem={item=gabrielaplok:awp_mag, quantity=..0}] run function effect/gun_dryfire"],"transitions":[{"inactive":"!q.is_item_name_any('slot.weapon.mainhand','gabrielaplok:awp')||!q.property('gun:reloading')||!q.is_alive"},{"reloaded":"q.all_animations_finished&&q.is_item_name_any('slot.weapon.mainhand','gabrielaplok:awp')&&q.property('gun:reloading')&&q.is_alive"}]},"reloaded":{"on_entry":["/execute as @s[hasitem={item=gabrielaplok:awp, location=slot.weapon.mainhand}] run function guns/reload/awp"],"transitions":[{"inactive":"1"}]},"cycle":{"animations":["awp_cycle"],"on_entry":["/playanimation @s animation.awp.cycle cycle 0 \"!q.is_item_name_any('slot.weapon.mainhand', 0, 'gabrielaplok:awp')\"","@s gabrielaplok:remove_cycle"],"transitions":[{"inactive":"!q.is_item_name_any('slot.weapon.mainhand','gabrielaplok:awp')||!q.is_alive"},{"inactive":"q.all_animations_finished&&q.is_alive"}]}}}}}