mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-18 04:41:27 +01:00
d5849910e5
* Begin clickcode attack_self fix Begins the work to make everything call back to parent for attack_self so that signals are sacred. * Makes MORE things call the attack_self() parent Yes, I could make special_handling a var on obj/item HOWEVER i want it to be specific so it can be tracked down later and ONLY the objects that use it can be refactored instead of sitting there literally forever and it just becoming 'a thing'. * Finishes making the rest of attack_self call parent. As mentioned, things such as 'specialty_goggles' 'special_handling' and the such are only there to help with attack_self until the attack_self is recoded for those items. * begone foul demon * some more cleanup * These * GOD this was annoying * yeh * Fix this * fLARES * Thesee too * toys! * Even more! * More fixes * Even more * rest of em * these too * Update syndie.dm * hardref clear * Update code/game/gamemodes/nuclear/pinpointer.dm * Update code/game/objects/effects/mines.dm * Update code/game/objects/items/blueprints_vr.dm * Update code/game/objects/items/blueprints_vr.dm * Update code/game/objects/items/contraband_vr.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/gunbox.dm * Update code/game/objects/items/gunbox.dm * Update code/game/objects/items/gunbox_vr.dm * Update code/game/objects/items/gunbox_vr.dm * Update code/game/objects/items/weapons/gift_wrappaper.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/gunbox.dm * these too * Update maintpanel_stack.dm * angry warning * Fixes packaged snacks. Fixes improper var default. * Special handling for these * proper poly types * Fixes magclaws Makes the 'features' it had just part of base magboots that can be adjusted via varswap. * Fixes jackets Fixes https://github.com/VOREStation/VOREStation/issues/18941 * Small bugfix Makes p_Theyre properly capitialize Makes examine show proper wording * Update gift_wrappaper.dm
64 lines
2.3 KiB
Plaintext
64 lines
2.3 KiB
Plaintext
/*
|
|
* Gram
|
|
*/
|
|
/obj/item/gun/projectile/contender
|
|
name = "\improper \"Gram\" Contender"
|
|
desc = "Hedberg-Hammarstrom's flagship one-shot hand-cannon. For when you \
|
|
really want to make a hole. This one has been modified to work almost like \
|
|
a bolt-action. Uses .357 rounds."
|
|
description_fluff = "The Hedberg-Hammarstrom company offers a range of high-quality, \
|
|
high-cost hunting rifles and shotguns designed with the Sivian wilderness - and its \
|
|
wildlife - in mind. The company operates just one production plant in Kalmar, but \
|
|
their weapons have found popularity on garden worlds as far afield as the Tajaran \
|
|
homeworld due to their excellent build quality, precision, and stopping power."
|
|
icon_state = "pockrifle"
|
|
var/icon_retracted = "pockrifle-e"
|
|
item_state = "revolver"
|
|
caliber = ".357"
|
|
handle_casings = HOLD_CASINGS
|
|
max_shells = 1
|
|
ammo_type = /obj/item/ammo_casing/a357
|
|
projectile_type = /obj/item/projectile/bullet/pistol/strong
|
|
var/retracted_bolt = 0
|
|
load_method = SINGLE_CASING
|
|
special_handling = TRUE
|
|
|
|
/obj/item/gun/projectile/contender/attack_self(mob/user)
|
|
. = ..(user)
|
|
if(.)
|
|
return TRUE
|
|
if(chambered)
|
|
chambered.loc = get_turf(src)
|
|
chambered = null
|
|
var/obj/item/ammo_casing/C = loaded[1]
|
|
loaded -= C
|
|
|
|
if(!retracted_bolt)
|
|
to_chat(user, span_notice("You cycle back the bolt on [src], ejecting the casing and allowing you to reload."))
|
|
icon_state = icon_retracted
|
|
retracted_bolt = 1
|
|
return 1
|
|
else if(retracted_bolt && loaded.len)
|
|
to_chat(user, span_notice("You cycle the loaded round into the chamber, allowing you to fire."))
|
|
else
|
|
to_chat(user, span_notice("You cycle the boly back into position, leaving the gun empty."))
|
|
icon_state = initial(icon_state)
|
|
retracted_bolt = 0
|
|
|
|
/obj/item/gun/projectile/contender/load_ammo(var/obj/item/A, mob/user)
|
|
if(!retracted_bolt)
|
|
to_chat(user, span_notice("You can't load [src] without cycling the bolt."))
|
|
return
|
|
..()
|
|
|
|
/*
|
|
* Balmung
|
|
*/
|
|
/obj/item/gun/projectile/contender/tacticool
|
|
name = "\improper \"Balmung\" Contender"
|
|
desc = "A later model of the Hedberg-Hammarstrom \"Gram\", reinvented with a \
|
|
tactical look. For when you really want to make a hole. This one has been \
|
|
modified to work almost like a bolt-action. Uses .357 rounds."
|
|
icon_state = "pockrifle_b"
|
|
icon_retracted = "pockrifle_b-e"
|