I started having this issue yesterday and I tried a few things, but none of them worked. Basically, I want this gun to fire a burst of bullets and then have an animation to spin once in your hand. This code works if the gun has the "auto" fire-type, but not when you change it to "burst". Nothing I change to the cooldown animation seems to do anything. Is there a way to give a burst-fire weapon that kind of animation?
Here's the code for the ability:
"scripts" : ["/items/active/weapons/ranged/gunfire.lua"],
"class" : "GunFire",
"fireTime" : 0.3,
"baseDps" : 12,
"energyUsage" : 27,
"inaccuracy" : 0.08,
"projectileCount" : 1,
"fireType" : "burst",
"burstCount" : 3,
"burstTime" : 0.1,
"projectileType" : "standardbullet",
"projectileParameters" : {
"knockback" : 10
},
"stances" : {
"idle" : {
"armRotation" : 0,
"weaponRotation" : 0,
"twoHanded" : false,
"allowRotate" : true,
"allowFlip" : true
},
"fire" : {
"duration" : 0.3,
"armRotation" : 3,
"weaponRotation" : 8,
"twoHanded" : false,
"allowRotate" : false,
"allowFlip" : false
},
"cooldown" : {
"duration" : 0.2,
"armRotation" : -7,
"weaponRotation" : -360,
"twoHanded" : false,
"allowRotate" : true,
"allowFlip" : false
}
}
}```