#How to make this command-generated weapon take longer between shots

18 messages · Page 1 of 1 (latest)

naive kayak
#

So I copied most of this code over from a different item, it essentially makes a gun that spins when you shoot it. If you want to try it out, change out the item type for something else since this comes from a mod. I’ve had the most fun with this weapon lining up powerful, accurate shots across weird geometry to hit enemies from behind cover. I want to make it so that it takes longer between shots to encourage this playstyle, but if I change the "fire" duration value, it increases the amount of time before the weapon shoots, making it feel unresponsive, because of the way the firing mechanism works. Is there an alternative value I could change somewhere to force an extra cooldown or something?

/spawnitem snubby 1 '{"level":6, "shortdescription":"Sincerity", "tooltipKind":"base", "description": "They don\'t make \'em like they used to.", "rarity":"legendary", "twoHanded":true, "elementalType":"physical", "muzzleOffset":[0.5,0.5], "primaryAbility":{"stances":{"idle":{"allowRotate":true, "allowFlip":true}, "fire":{"duration":0.1, "armRotation":3, "weaponRotation":8}, "cooldown":{"duration":0.3, "armRotation":-7, "weaponRotation":-360}}, "baseDps":100, "energyUsage":8, "inaccuracy":0, "fireType":"auto", "projectileCount":1, "projectileType":"standardbullet", "projectileParameters":{"periodicActions":[{"time":0.0, "repeat":false, "offset":[0,0], "angle":0, "action":"projectile", "type":"smokering", "config":{"statusEffects":[], "damageKind":"hidden", "speed":2, "timeToLive":0.1, "power":0.0, "knockback":0}}], "processing":"?hueshift=0", "statusEffects":[], "bounces":-1, "piercing":true, "speed":135, "timeToLive":1.0, "power":0.9, "knockback":10, "actionOnReap":[{"action":"sound","options":["/sfx/projectiles/bullet_ricochet7.ogg"], "count":3, "time":0.0, "repeat":false}]}}}'

jolly badge
#

Have you tried adding fireTime to your primary ability?

north haven
#

duration on cooldown?

naive kayak
naive kayak
#

Yeah, does nothing. The firing mechanism is weird- the weapon fires when you stop holding down click. I'd like to keep that if possible because it's kinda tense but not too important.

#

also you'd pretty much need to remake the whole thing to do that

jolly badge
#

what is snubby?

#

what mod is it from?

naive kayak
#

snubnose revolver mod, though I made some edits to the sprite years ago and keep that on my laptop so idk if it's still up

jolly badge
#

so you made the weapon?

naive kayak
#

Nah, but it's on my steam files as if I did. Moved around a few pixels because there was a weird gap

#

If it's an issue with the mod that's actually easier tho

jolly badge
#

not sure what parameter you need to adjust

#

I recommend reading the Lua script for the ability

naive kayak
#

yep can confirm that's an issue with how the weapon works, the way it's animated causes that issue

#

I'll play around with that and see if I can fix it, thank you!

jolly badge
#

np 👍