Files
Duck- bb5de59a6e Vamp buffs, isocubes (needs sprite), other stuff
Vamps: Hypnotize now a free power, cooldown increased.  Space bats
nerfed, but ability now summons two as before since they don't kill each
other anymore.  Vampjaunt brought back down to thirty.  Holy water
ignites and burns vamps.

Laserpointer permablinding severely nerfed.  Bad idea in retrospect.

Added things to custom gear prefs.

All energy weapons made more accurate, to compare with bulletweapons
being generally way more deadly.  Snipers/modulasers accuracy buffed, to
account for aiming at a distance being broken.

Isocubes.  They're done but need a sprite.  Pocket dimension that you
suck highly dangerous criminals into.  Spell edits were mostly to
contain wizards and vamps from poofing out, which would cause them to be
permastunned since only getting ejected removes the permastun.
2014-09-14 22:38:22 -04:00

49 lines
1.2 KiB
Plaintext

/obj/item/weapon/gun/energy
icon_state = "energy"
name = "energy gun"
desc = "A basic energy-based gun."
fire_sound = 'sound/weapons/Taser.ogg'
var/obj/item/weapon/cell/power_supply //What type of power cell this uses
var/charge_cost = 100 //How much energy is needed to fire.
var/cell_type = "/obj/item/weapon/cell"
var/projectile_type = "/obj/item/projectile/beam/practice"
var/modifystate
rangedrop = -5 // energy weapons more accurate than bulletweapons.
isHandgun()
return 0
emp_act(severity)
power_supply.use(round(power_supply.maxcharge / severity))
update_icon()
..()
New()
..()
if(cell_type)
power_supply = new cell_type(src)
else
power_supply = new(src)
power_supply.give(power_supply.maxcharge)
return
load_into_chamber()
if(in_chamber) return 1
if(!power_supply) return 0
if(!power_supply.use(charge_cost)) return 0
if(!projectile_type) return 0
in_chamber = new projectile_type(src)
return 1
update_icon()
var/ratio = power_supply.charge / power_supply.maxcharge
ratio = round(ratio, 0.25) * 100
if(modifystate)
icon_state = "[modifystate][ratio]"
else
icon_state = "[initial(icon_state)][ratio]"