Advertisement
Hattiwatti

Untitled

Dec 29th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. class "NoKnifeAnim"
  2.  
  3. function NoKnifeAnim:__init()
  4. Events:Subscribe("Partition:ReadInstance", self, self.OnReadInstance)
  5. end
  6.  
  7. function NoKnifeAnim:OnReadInstance(p_Instance, p_GUID)
  8. if p_Instance == nil then
  9. return
  10. end
  11.  
  12. if p_Instance.typeName == "MeleeWeaponData" then
  13. local MeleeWeapon = MeleeWeaponData(p_Instance)
  14. MeleeWeapon.useCannedAnimation = false
  15. end
  16.  
  17. end
  18.  
  19. local noKnifeAnim = NoKnifeAnim()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement