I just updated my showcase post. It might need a little bit more to do than copy paste, if you already place cases or item spawners on maps.
And here is submission Nr. 3:
A remake of the Coilgun that could be found in the 2016 code, with its old sprite.
I spent about 3 or 4 days on making this all work and learned alot about coding with Byond.
Thanks to Ursula and Warcrimes for giving me ideas on how to code this.
It is a double barreled, 2 handed, rod shooting gun. It can be crafted by combining an electropack with a hollow pipe frame, and then combining this unfinished assembly with a full stack of cables.
You can load any 2 types of matsci rods into it, though I couldnt get them to affect the guns stats (and matsci has been severely changed in current code afaik).
Clicking it inhand will eject the same rods you put into them, so they arent lost once loaded.
I set it as a huge item, meaning it cant be put into your backpack, but it can be worn on your back instead.
It still needs sprites for wearing it on your back and inhand sprites. Currently it has no sprite for being worn on your back and the inhand one is the flamethrower one. I will make these if I find some time before the 10th or it happens to be implemented into the main branch.
Notes for balancing it, if it should ever be made part of the main branch, and what its currently like:
- Required components: Electropack, hollow pipe frame, 30 cables pieces
- Raw projectile damage: 25 brute point blank
- Bleed chance on hit(DAMAGE_BLUNT, DAMAGE_CUT, DAMAGE_STAB): DAMAGE_STAB
- Distance till damage dropoff: 3 tiles dropoff, 9 tiles max range
- Implants a projectile in the body: Yes, defaults to a steel rod when cut out (needs to match the loaded rod later and carry over fingerprints, etc.)
- Can drop a rod on impact: 25% chance when not shooting a human (should better check for mob)
- Safe shots before misfires: 2
- Chance of misfire: 20%
- Damage on misfire: Explosion with 40 burn, 30 brute, chance to loose limb, gun destroyed, small explosion radius.
- 1 or 2 handed: To be 2 handed in up-to-date code.
- Single or dual rod loading: Single
- Matsci compatible, steel/metal only: Can load all, no effect otherwise. Material has to be metal to make rods out of them in the first place.
- Size class: 4; Doesnt fit in backpack, but on your back.
Crafting and firing it:
And for misfiring:
https://youtu.be/S_sVSkemQo4
Just code, shouldnt need new sprites:
https://drive.google.com/file/d/198hq_Uy...sp=sharing