Files
Cody BrittainandGitHub 23789d4113 Sorts out existing projectile weapons (#22059)
This PR is intended to sort out our existing guns into something
resembling organization. In addition, ancient decrepit guns are removed,
and abstract paths are labeled as such.

In addition, all guns are now standardized to refer to their model.
Considering the huge number of weapons we have, a `pistol` is not
descriptive enough.

NOTE: At over 200 files touched, this is being split. Not everything was
sorted, but this is already a monster to sort through. The rest can
wait.
2026-03-25 15:37:50 +00:00

56 lines
2.0 KiB
Plaintext

/obj/item/gun/energy/rifle/icelance
name = "\improper Tui'ad icelance rifle"
desc = "A Tajaran made rifle, it houses a crank-chargable internal battery. It only holds three shots and each shot must be cranked manually."
icon = 'icons/obj/guns/faction/pra/icelance.dmi'
icon_state = "icelance"
item_state = "icelance"
has_item_ratio = FALSE
fire_sound = 'sound/weapons/laser1.ogg'
max_shots = 7
accuracy = -1
accuracy_wielded = 2
fire_delay = 10
fire_delay_wielded = 8
origin_tech = list(TECH_COMBAT = 1, TECH_MAGNET = 1)
projectile_type = /obj/projectile/beam/midlaser/ice
secondary_projectile_type = null
secondary_fire_sound = null
charge_failure_message = "'s charging socket was removed to make room for a crank."
var/is_charging = FALSE
firemodes = list()
modifystate = null
can_bayonet = TRUE
knife_x_offset = 23
knife_y_offset = 13
desc_extended = "The Tui'ad \"Icelance\" laser rifle is an energy weapon of Tajaran design. Clumsy overheating handguns and rifles that slowly fire long bolts of \
concentrated energy are used by high ranking soldiers or special operatives of the Republican army, but their durability is dubious in comparison to the mass-produced, \
single shot or bolt action rifles that the majority of Tajaran soldiers use."
/obj/item/gun/energy/rifle/icelance/unique_action(mob/living/user)
if(is_charging)
to_chat(user, SPAN_WARNING("You are already charging \the [src]."))
return
if(power_supply.charge < power_supply.maxcharge)
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
user.visible_message(
SPAN_NOTICE("\The [user] begins to crank \the [src]!"),
SPAN_NOTICE("You begin to rotate \the [src]'s crank!")
)
playsound(user.loc, 'sound/items/crank.ogg', 60, 1)
is_charging = TRUE
flick("crank", src)
if(do_after(user,2 SECONDS))
to_chat(user, SPAN_NOTICE("You finish charging \the [src]."))
power_supply.give(charge_cost)
update_maptext()
update_icon()
is_charging = FALSE
else
is_charging = FALSE
/obj/item/gun/energy/rifle/icelance/get_cell()
return DEVICE_NO_CELL