Revert "adds gun safeties, remember to turn them off."

This reverts commit 9ca985b769.
This commit is contained in:
shellspeed1
2022-09-17 06:47:26 -07:00
parent 64ce476764
commit 15006a5dfd
24 changed files with 0 additions and 44 deletions
@@ -7,7 +7,6 @@
burst_size = 3 burst_size = 3
fire_delay = 2 fire_delay = 2
fire_select_modes = list(SELECT_SEMI_AUTOMATIC, SELECT_BURST_SHOT, SELECT_FULLY_AUTOMATIC) fire_select_modes = list(SELECT_SEMI_AUTOMATIC, SELECT_BURST_SHOT, SELECT_FULLY_AUTOMATIC)
has_gun_safety = TRUE
/obj/item/gun/ballistic/automatic/proto /obj/item/gun/ballistic/automatic/proto
name = "\improper Nanotrasen Saber SMG" name = "\improper Nanotrasen Saber SMG"
@@ -15,7 +15,6 @@
pin = null pin = null
no_pin_required = TRUE no_pin_required = TRUE
trigger_guard = TRIGGER_GUARD_NONE //so ashwalkers can use it trigger_guard = TRIGGER_GUARD_NONE //so ashwalkers can use it
has_gun_safety = FALSE //bows and arrows don't have safeties
/obj/item/gun/ballistic/bow/shoot_with_empty_chamber() /obj/item/gun/ballistic/bow/shoot_with_empty_chamber()
return return
@@ -10,7 +10,6 @@
fire_sound = 'sound/weapons/revolvershot.ogg' fire_sound = 'sound/weapons/revolvershot.ogg'
casing_ejector = FALSE casing_ejector = FALSE
w_class = WEIGHT_CLASS_TINY w_class = WEIGHT_CLASS_TINY
has_gun_safety = TRUE
/obj/item/gun/ballistic/derringer/get_ammo(countchambered = FALSE, countempties = TRUE) /obj/item/gun/ballistic/derringer/get_ammo(countchambered = FALSE, countempties = TRUE)
var/boolets = 0 //legacy var name maturity var/boolets = 0 //legacy var name maturity
@@ -11,7 +11,6 @@
fire_sound = 'sound/weapons/grenadelaunch.ogg' fire_sound = 'sound/weapons/grenadelaunch.ogg'
w_class = WEIGHT_CLASS_NORMAL w_class = WEIGHT_CLASS_NORMAL
pin = /obj/item/firing_pin/implant/pindicate pin = /obj/item/firing_pin/implant/pindicate
has_gun_safety = FALSE
/obj/item/gun/ballistic/revolver/grenadelauncher/unrestricted /obj/item/gun/ballistic/revolver/grenadelauncher/unrestricted
pin = /obj/item/firing_pin pin = /obj/item/firing_pin
@@ -28,7 +27,6 @@
icon_state = "mecha_grenadelnchr" icon_state = "mecha_grenadelnchr"
mag_type = /obj/item/ammo_box/magazine/internal/cylinder/grenademulti mag_type = /obj/item/ammo_box/magazine/internal/cylinder/grenademulti
pin = /obj/item/firing_pin pin = /obj/item/firing_pin
has_gun_safety = FALSE
/obj/item/gun/ballistic/revolver/grenadelauncher/cyborg/attack_self() /obj/item/gun/ballistic/revolver/grenadelauncher/cyborg/attack_self()
return return
@@ -94,7 +92,6 @@
casing_ejector = FALSE casing_ejector = FALSE
weapon_weight = WEAPON_HEAVY weapon_weight = WEAPON_HEAVY
magazine_wording = "rocket" magazine_wording = "rocket"
has_gun_safety = TRUE
/obj/item/gun/ballistic/rocketlauncher/unrestricted /obj/item/gun/ballistic/rocketlauncher/unrestricted
pin = /obj/item/firing_pin pin = /obj/item/firing_pin
@@ -20,7 +20,6 @@
w_class = WEIGHT_CLASS_BULKY w_class = WEIGHT_CLASS_BULKY
var/obj/item/stock_parts/cell/cell var/obj/item/stock_parts/cell/cell
var/cell_type = /obj/item/stock_parts/cell/magnetic var/cell_type = /obj/item/stock_parts/cell/magnetic
has_gun_safety = TRUE
/obj/item/gun/ballistic/automatic/magrifle/Initialize(mapload) /obj/item/gun/ballistic/automatic/magrifle/Initialize(mapload)
. = ..() . = ..()
@@ -6,7 +6,6 @@
fire_sound = "sound/weapons/revolvershot.ogg" fire_sound = "sound/weapons/revolvershot.ogg"
casing_ejector = FALSE casing_ejector = FALSE
recoil = 0.5 recoil = 0.5
has_gun_safety = TRUE
/obj/item/gun/ballistic/revolver/Initialize(mapload) /obj/item/gun/ballistic/revolver/Initialize(mapload)
. = ..() . = ..()
@@ -15,7 +15,6 @@
var/clip_delay = CLICK_CD_MELEE var/clip_delay = CLICK_CD_MELEE
weapon_weight = WEAPON_HEAVY weapon_weight = WEAPON_HEAVY
sawn_item_state = "sawnshotgun" sawn_item_state = "sawnshotgun"
has_gun_safety = TRUE
/obj/item/gun/ballistic/shotgun/attackby(obj/item/A, mob/user, params) /obj/item/gun/ballistic/shotgun/attackby(obj/item/A, mob/user, params)
. = ..() . = ..()
@@ -13,7 +13,6 @@
clumsy_check = 0 clumsy_check = 0
item_flags = NONE item_flags = NONE
casing_ejector = FALSE casing_ejector = FALSE
has_gun_safety = TRUE
/obj/item/gun/ballistic/automatic/toy/unrestricted /obj/item/gun/ballistic/automatic/toy/unrestricted
pin = /obj/item/firing_pin pin = /obj/item/firing_pin
@@ -161,7 +161,6 @@
var/datum/duel/duel var/datum/duel/duel
var/mutable_appearance/setting_overlay var/mutable_appearance/setting_overlay
var/hugbox = DUEL_HUGBOX_NONE var/hugbox = DUEL_HUGBOX_NONE
has_gun_safety = TRUE
/obj/item/gun/energy/dueling/hugbox /obj/item/gun/energy/dueling/hugbox
hugbox = DUEL_HUGBOX_LETHAL hugbox = DUEL_HUGBOX_LETHAL
@@ -9,7 +9,6 @@
ammo_x_offset = 3 ammo_x_offset = 3
flight_x_offset = 15 flight_x_offset = 15
flight_y_offset = 10 flight_y_offset = 10
has_gun_safety = TRUE
/obj/item/gun/energy/e_gun/mini /obj/item/gun/energy/e_gun/mini
name = "miniature energy gun" name = "miniature energy gun"
@@ -34,7 +34,6 @@
lefthand_file = 'icons/mob/inhands/weapons/guns_lefthand.dmi' lefthand_file = 'icons/mob/inhands/weapons/guns_lefthand.dmi'
righthand_file = 'icons/mob/inhands/weapons/guns_righthand.dmi' righthand_file = 'icons/mob/inhands/weapons/guns_righthand.dmi'
ammo_type = list(/obj/item/ammo_casing/energy/kinetic/premium) ammo_type = list(/obj/item/ammo_casing/energy/kinetic/premium)
has_gun_safety = TRUE
/obj/item/ammo_casing/energy/kinetic/premium /obj/item/ammo_casing/energy/kinetic/premium
projectile_type = /obj/item/projectile/kinetic/premium projectile_type = /obj/item/projectile/kinetic/premium
@@ -8,7 +8,6 @@
ammo_type = list(/obj/item/ammo_casing/energy/lasergun) ammo_type = list(/obj/item/ammo_casing/energy/lasergun)
ammo_x_offset = 1 ammo_x_offset = 1
shaded_charge = 1 shaded_charge = 1
has_gun_safety = TRUE
/obj/item/gun/energy/laser/practice /obj/item/gun/energy/laser/practice
name = "practice laser gun" name = "practice laser gun"
@@ -93,7 +92,6 @@
selfcharge = EGUN_SELFCHARGE_BORG selfcharge = EGUN_SELFCHARGE_BORG
cell_type = /obj/item/stock_parts/cell/secborg cell_type = /obj/item/stock_parts/cell/secborg
charge_delay = 3 charge_delay = 3
has_gun_safety = FALSE
/obj/item/gun/energy/laser/cyborg/emp_act() /obj/item/gun/energy/laser/cyborg/emp_act()
return return
@@ -131,7 +129,6 @@
ammo_type = list(/obj/item/ammo_casing/energy/laser/accelerator) ammo_type = list(/obj/item/ammo_casing/energy/laser/accelerator)
pin = null pin = null
ammo_x_offset = 3 ammo_x_offset = 3
has_gun_safety = TRUE
/obj/item/ammo_casing/energy/laser/accelerator /obj/item/ammo_casing/energy/laser/accelerator
projectile_type = /obj/item/projectile/beam/laser/accelerator projectile_type = /obj/item/projectile/beam/laser/accelerator
@@ -10,7 +10,6 @@
selfcharge = EGUN_SELFCHARGE selfcharge = EGUN_SELFCHARGE
cell_type = "/obj/item/stock_parts/cell/pulse" cell_type = "/obj/item/stock_parts/cell/pulse"
icon = 'modular_citadel/icons/obj/guns/VGguns.dmi' icon = 'modular_citadel/icons/obj/guns/VGguns.dmi'
has_gun_safety = TRUE
/obj/item/gun/energy/megabuster/proto /obj/item/gun/energy/megabuster/proto
name = "Proto-buster" name = "Proto-buster"
@@ -8,7 +8,6 @@
selfcharge = EGUN_SELFCHARGE selfcharge = EGUN_SELFCHARGE
can_flashlight = 0 can_flashlight = 0
trigger_guard = TRIGGER_GUARD_ALLOW_ALL // Has no trigger at all, uses neural signals instead trigger_guard = TRIGGER_GUARD_ALLOW_ALL // Has no trigger at all, uses neural signals instead
has_gun_safety = TRUE
/obj/item/gun/energy/laser/mounted /obj/item/gun/energy/laser/mounted
name = "mounted laser" name = "mounted laser"
@@ -19,4 +18,3 @@
force = 5 force = 5
selfcharge = EGUN_SELFCHARGE selfcharge = EGUN_SELFCHARGE
trigger_guard = TRIGGER_GUARD_ALLOW_ALL trigger_guard = TRIGGER_GUARD_ALLOW_ALL
has_gun_safety = TRUE
@@ -9,7 +9,6 @@
shaded_charge = 1 shaded_charge = 1
lefthand_file = 'modular_citadel/icons/mob/citadel/guns_lefthand.dmi' lefthand_file = 'modular_citadel/icons/mob/citadel/guns_lefthand.dmi'
righthand_file = 'modular_citadel/icons/mob/citadel/guns_righthand.dmi' righthand_file = 'modular_citadel/icons/mob/citadel/guns_righthand.dmi'
has_gun_safety = TRUE
/obj/item/gun/energy/plasma/rifle /obj/item/gun/energy/plasma/rifle
@@ -10,7 +10,6 @@
slot_flags = ITEM_SLOT_BACK slot_flags = ITEM_SLOT_BACK
ammo_type = list(/obj/item/ammo_casing/energy/laser/pulse, /obj/item/ammo_casing/energy/electrode, /obj/item/ammo_casing/energy/laser) ammo_type = list(/obj/item/ammo_casing/energy/laser/pulse, /obj/item/ammo_casing/energy/electrode, /obj/item/ammo_casing/energy/laser)
cell_type = "/obj/item/stock_parts/cell/pulse" cell_type = "/obj/item/stock_parts/cell/pulse"
has_gun_safety = TRUE
/obj/item/gun/energy/pulse/emp_act(severity) /obj/item/gun/energy/pulse/emp_act(severity)
return return
@@ -11,7 +11,6 @@
ammo_x_offset = 3 ammo_x_offset = 3
flight_x_offset = 17 flight_x_offset = 17
flight_y_offset = 9 flight_y_offset = 9
has_gun_safety = TRUE
/obj/item/gun/energy/ionrifle/emp_act(severity) /obj/item/gun/energy/ionrifle/emp_act(severity)
return return
@@ -50,7 +49,6 @@
modifystate = 1 modifystate = 1
ammo_x_offset = 1 ammo_x_offset = 1
selfcharge = EGUN_SELFCHARGE selfcharge = EGUN_SELFCHARGE
has_gun_safety = FALSE
/obj/item/gun/energy/meteorgun /obj/item/gun/energy/meteorgun
name = "meteor gun" name = "meteor gun"
@@ -62,7 +60,6 @@
cell_type = "/obj/item/stock_parts/cell/potato" cell_type = "/obj/item/stock_parts/cell/potato"
clumsy_check = 0 //Admin spawn only, might as well let clowns use it. clumsy_check = 0 //Admin spawn only, might as well let clowns use it.
selfcharge = EGUN_SELFCHARGE selfcharge = EGUN_SELFCHARGE
has_gun_safety = TRUE
/obj/item/gun/energy/meteorgun/pen /obj/item/gun/energy/meteorgun/pen
name = "meteor pen" name = "meteor pen"
@@ -73,7 +70,6 @@
lefthand_file = 'icons/mob/inhands/items_lefthand.dmi' lefthand_file = 'icons/mob/inhands/items_lefthand.dmi'
righthand_file = 'icons/mob/inhands/items_righthand.dmi' righthand_file = 'icons/mob/inhands/items_righthand.dmi'
w_class = WEIGHT_CLASS_TINY w_class = WEIGHT_CLASS_TINY
has_gun_safety = TRUE
/obj/item/gun/energy/mindflayer /obj/item/gun/energy/mindflayer
name = "\improper Mind Flayer" name = "\improper Mind Flayer"
@@ -82,7 +78,6 @@
item_state = null item_state = null
ammo_type = list(/obj/item/ammo_casing/energy/mindflayer) ammo_type = list(/obj/item/ammo_casing/energy/mindflayer)
ammo_x_offset = 2 ammo_x_offset = 2
has_gun_safety = FALSE
/obj/item/gun/energy/kinetic_accelerator/crossbow /obj/item/gun/energy/kinetic_accelerator/crossbow
name = "mini energy crossbow" name = "mini energy crossbow"
@@ -101,7 +96,6 @@
unique_frequency = TRUE unique_frequency = TRUE
can_flashlight = 0 can_flashlight = 0
max_mod_capacity = 0 max_mod_capacity = 0
has_gun_safety = TRUE
/obj/item/gun/energy/kinetic_accelerator/crossbow/halloween /obj/item/gun/energy/kinetic_accelerator/crossbow/halloween
name = "candy corn crossbow" name = "candy corn crossbow"
@@ -109,7 +103,6 @@
icon_state = "crossbow_halloween" icon_state = "crossbow_halloween"
item_state = "crossbow" item_state = "crossbow"
ammo_type = list(/obj/item/ammo_casing/energy/bolt/halloween) ammo_type = list(/obj/item/ammo_casing/energy/bolt/halloween)
has_gun_safety = FALSE
/obj/item/gun/energy/kinetic_accelerator/crossbow/large /obj/item/gun/energy/kinetic_accelerator/crossbow/large
name = "energy crossbow" name = "energy crossbow"
@@ -140,7 +133,6 @@
usesound = list('sound/items/welder.ogg', 'sound/items/welder2.ogg') usesound = list('sound/items/welder.ogg', 'sound/items/welder2.ogg')
tool_behaviour = TOOL_WELDER tool_behaviour = TOOL_WELDER
toolspeed = 0.7 //plasmacutters can be used as welders, and are faster than standard welders toolspeed = 0.7 //plasmacutters can be used as welders, and are faster than standard welders
has_gun_safety = FALSE
/obj/item/gun/energy/plasmacutter/ComponentInitialize() /obj/item/gun/energy/plasmacutter/ComponentInitialize()
. = ..() . = ..()
@@ -197,7 +189,6 @@
icon_state = "gravity_gun" icon_state = "gravity_gun"
var/power = 4 var/power = 4
var/firing_core = FALSE var/firing_core = FALSE
has_gun_safety = TRUE
/obj/item/gun/energy/gravity_gun/attackby(obj/item/C, mob/user) /obj/item/gun/energy/gravity_gun/attackby(obj/item/C, mob/user)
if(istype(C, /obj/item/assembly/signaler/anomaly)) if(istype(C, /obj/item/assembly/signaler/anomaly))
@@ -225,7 +216,6 @@
var/obj/effect/portal/p_orange var/obj/effect/portal/p_orange
var/atmos_link = FALSE var/atmos_link = FALSE
var/firing_core = FALSE var/firing_core = FALSE
has_gun_safety = TRUE
/obj/item/gun/energy/wormhole_projector/attackby(obj/item/C, mob/user) /obj/item/gun/energy/wormhole_projector/attackby(obj/item/C, mob/user)
if(istype(C, /obj/item/assembly/signaler/anomaly)) if(istype(C, /obj/item/assembly/signaler/anomaly))
@@ -315,7 +305,6 @@
ammo_type = list(/obj/item/ammo_casing/energy/c3dbullet) ammo_type = list(/obj/item/ammo_casing/energy/c3dbullet)
can_charge = 0 can_charge = 0
use_cyborg_cell = 1 use_cyborg_cell = 1
has_gun_safety = FALSE
/obj/item/gun/energy/printer/ComponentInitialize() /obj/item/gun/energy/printer/ComponentInitialize()
. = ..() . = ..()
@@ -345,7 +334,6 @@
desc = "A specialized ASMD laser-rifle, capable of flat-out disintegrating most targets in a single hit." desc = "A specialized ASMD laser-rifle, capable of flat-out disintegrating most targets in a single hit."
ammo_type = list(/obj/item/ammo_casing/energy/instakill) ammo_type = list(/obj/item/ammo_casing/energy/instakill)
force = 60 force = 60
has_gun_safety = TRUE
/obj/item/gun/energy/laser/instakill/red /obj/item/gun/energy/laser/instakill/red
desc = "A specialized ASMD laser-rifle, capable of flat-out disintegrating most targets in a single hit. This one has a red design." desc = "A specialized ASMD laser-rifle, capable of flat-out disintegrating most targets in a single hit. This one has a red design."
@@ -374,7 +362,6 @@
cell_type = /obj/item/stock_parts/cell/super cell_type = /obj/item/stock_parts/cell/super
ammo_type = list(/obj/item/ammo_casing/energy/emitter) ammo_type = list(/obj/item/ammo_casing/energy/emitter)
automatic_charge_overlays = FALSE automatic_charge_overlays = FALSE
has_gun_safety = TRUE
/obj/item/gun/energy/emitter/update_icon_state() /obj/item/gun/energy/emitter/update_icon_state()
var/obj/item/ammo_casing/energy/shot = ammo_type[current_firemode_index] var/obj/item/ammo_casing/energy/shot = ammo_type[current_firemode_index]
@@ -390,4 +377,3 @@
icon_state = "decloner" icon_state = "decloner"
no_pin_required = TRUE no_pin_required = TRUE
ammo_type = list(/obj/item/ammo_casing/energy/pickle) ammo_type = list(/obj/item/ammo_casing/energy/pickle)
has_gun_safety = FALSE
@@ -31,7 +31,6 @@
canMouseDown = TRUE canMouseDown = TRUE
can_turret = FALSE can_turret = FALSE
can_circuit = FALSE can_circuit = FALSE
has_gun_safety = TRUE
//Cit changes: beam rifle stats. //Cit changes: beam rifle stats.
slowdown = 1 slowdown = 1
item_flags = NO_MAT_REDEMPTION | SLOWS_WHILE_IN_HAND | NEEDS_PERMIT item_flags = NO_MAT_REDEMPTION | SLOWS_WHILE_IN_HAND | NEEDS_PERMIT
@@ -10,7 +10,6 @@
item_flags = NONE item_flags = NONE
clumsy_check = FALSE clumsy_check = FALSE
randomspread = FALSE randomspread = FALSE
has_gun_safety = TRUE
var/hugbox = TRUE var/hugbox = TRUE
var/max_power = INFINITY var/max_power = INFINITY
@@ -13,7 +13,6 @@
item_flags = NONE item_flags = NONE
pin = /obj/item/firing_pin pin = /obj/item/firing_pin
cell_type = /obj/item/stock_parts/cell/bluespace cell_type = /obj/item/stock_parts/cell/bluespace
var/datum/action/item_action/chameleon/change/gun/chameleon_action var/datum/action/item_action/chameleon/change/gun/chameleon_action
var/list/chameleon_projectile_vars var/list/chameleon_projectile_vars
@@ -20,7 +20,6 @@
var/obj/item/reagent_containers/glass/bottle/vial/vial var/obj/item/reagent_containers/glass/bottle/vial/vial
var/list/allowed_containers = list(/obj/item/reagent_containers/glass/bottle/vial/small, /obj/item/reagent_containers/glass/bottle/vial/large) var/list/allowed_containers = list(/obj/item/reagent_containers/glass/bottle/vial/small, /obj/item/reagent_containers/glass/bottle/vial/large)
var/quickload = TRUE var/quickload = TRUE
has_gun_safety = TRUE
/obj/item/gun/chem/Initialize(mapload) /obj/item/gun/chem/Initialize(mapload)
. = ..() . = ..()
@@ -111,7 +110,6 @@
desc = "An experimental improved version of the smartdart rifle. It synthesizes medicinal smart darts which it fills using an inserted hypovial. It can accommodate both large and small hypovials." desc = "An experimental improved version of the smartdart rifle. It synthesizes medicinal smart darts which it fills using an inserted hypovial. It can accommodate both large and small hypovials."
icon_state = "chemgunrepeater" icon_state = "chemgunrepeater"
item_state = "syringegun" item_state = "syringegun"
has_gun_safety = TRUE
obj/item/gun/chem/smart/Initialize(mapload) obj/item/gun/chem/smart/Initialize(mapload)
. = ..() . = ..()
@@ -11,7 +11,6 @@
var/list/grenades = new/list() var/list/grenades = new/list()
var/max_grenades = 3 var/max_grenades = 3
custom_materials = list(/datum/material/iron=2000) custom_materials = list(/datum/material/iron=2000)
has_gun_safety = TRUE
/obj/item/gun/grenadelauncher/examine(mob/user) /obj/item/gun/grenadelauncher/examine(mob/user)
. = ..() . = ..()
@@ -13,7 +13,6 @@
var/active = 0 var/active = 0
var/datum/beam/current_beam = null var/datum/beam/current_beam = null
var/mounted = 0 //Denotes if this is a handheld or mounted version var/mounted = 0 //Denotes if this is a handheld or mounted version
has_gun_safety = FALSE //no safety here.
weapon_weight = WEAPON_MEDIUM weapon_weight = WEAPON_MEDIUM
@@ -14,7 +14,6 @@
fire_sound = 'sound/items/syringeproj.ogg' fire_sound = 'sound/items/syringeproj.ogg'
var/list/syringes = list() var/list/syringes = list()
var/max_syringes = 1 var/max_syringes = 1
has_gun_safety = TRUE
/obj/item/gun/syringe/Initialize(mapload) /obj/item/gun/syringe/Initialize(mapload)
. = ..() . = ..()
@@ -161,7 +160,6 @@
icon_state = "blowgun" icon_state = "blowgun"
item_state = "syringegun" item_state = "syringegun"
fire_sound = 'sound/items/syringeproj.ogg' fire_sound = 'sound/items/syringeproj.ogg'
has_gun_safety = FALSE //unga bunga, tube no fit safety
/obj/item/gun/syringe/blowgun/process_fire(atom/target, mob/living/user, message = TRUE, params = null, zone_override = "", bonus_spread = 0, stam_cost = 0) /obj/item/gun/syringe/blowgun/process_fire(atom/target, mob/living/user, message = TRUE, params = null, zone_override = "", bonus_spread = 0, stam_cost = 0)
visible_message("<span class='danger'>[user] starts aiming with a blowgun!</span>") visible_message("<span class='danger'>[user] starts aiming with a blowgun!</span>")