How to make my guns shoot in burst fire ? its possible to remove the muzzle flash? (I'm working on silenced guns). I searched through the scripts, but i couldn't find a clue about how do i do these things.
I am assuming these are assault rifles (although I don't think it should matter). Both of those can be accomplished through the weapon's ".activeitem" file. Within the "primaryAbility" object, you should see a "fireType" property. This can either be set to "auto" or "burst". If it's set to "burst" you will also need to add the "burstCount" and "burstTime" properties. For example: Code: "primaryAbility": { "scripts" : ["/items/active/weapons/ranged/gunfire.lua"], "class" : "GunFire", "fireTime" : 0.15, "baseDps" : 9.5, "energyUsage" : 28.5, "inaccuracy" : 0.02, "burstTime" : 0.075, "burstCount" : 3, "fireType" : "burst", ... The muzzle flash has its own section within the "animationParts" object. Just set its value to an empty string to make the shot have no flash: Code: "animationParts": { "butt" : "", "middle" : "customrifle.png", "barrel" : "", "muzzleFlash" : "" }