mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
@@ -101,6 +101,7 @@
|
||||
attack_verb = list("slashed", "chopped", "gouged", "ripped", "cut")
|
||||
can_cleave = TRUE //Now hatchets inherit from the machete, and thus knives. Tables turned.
|
||||
slot_flags = SLOT_BELT
|
||||
default_material = "plasteel"
|
||||
|
||||
/obj/item/weapon/material/knife/tacknife/survival
|
||||
name = "survival knife"
|
||||
@@ -109,4 +110,5 @@
|
||||
icon_state = "survivalknife"
|
||||
item_state = "knife"
|
||||
applies_material_colour = FALSE
|
||||
default_material = "plasteel"
|
||||
toolspeed = 2 // Use a real axe if you want to chop logs.
|
||||
|
||||
@@ -632,8 +632,8 @@
|
||||
//convenience var for defining the icon state for the overlay used when the clothing is worn.
|
||||
//Also used by rolling/unrolling.
|
||||
var/worn_state = null
|
||||
valid_accessory_slots = list("utility","armband","decor","over")
|
||||
restricted_accessory_slots = list("utility", "armband")
|
||||
valid_accessory_slots = list("utility","armband","sheath","decor","over") //VOREStation Edit - Adds Machete Sheath
|
||||
restricted_accessory_slots = list("utility", "armband", "sheath") //VOREStation Edit - Adds Machete Sheath
|
||||
|
||||
var/icon/rolled_down_icon = 'icons/mob/uniform_rolled_down.dmi'
|
||||
var/icon/rolled_down_sleeves_icon = 'icons/mob/uniform_sleeves_rolled.dmi'
|
||||
|
||||
@@ -177,3 +177,16 @@
|
||||
to_chat(user,"<span class='notice'>You set the [name]'s tag to '[str]'.</span>")
|
||||
name = initial(name) + " ([str])"
|
||||
desc = initial(desc) + " The tag says \"[str]\"."
|
||||
|
||||
//Machete Holsters
|
||||
/obj/item/clothing/accessory/holster/machete
|
||||
name = "machete sheath"
|
||||
desc = "A handsome synthetic leather sheath with matching belt."
|
||||
icon = 'icons/obj/clothing/ties_vr.dmi'
|
||||
icon_override = 'icons/mob/ties_vr.dmi'
|
||||
icon_state = "holster_machete"
|
||||
slot = "sheath"
|
||||
concealed_holster = 0
|
||||
can_hold = list(/obj/item/weapon/material/knife/machete)
|
||||
//sound_in = 'sound/effects/holster/sheathin.ogg'
|
||||
//sound_out = 'sound/effects/holster/sheathout.ogg'
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
desc = "A handgun holster."
|
||||
icon_state = "holster"
|
||||
slot = "utility"
|
||||
var/list/can_hold //VOREStation Edit
|
||||
concealed_holster = 1
|
||||
var/obj/item/holstered = null
|
||||
|
||||
@@ -10,8 +11,14 @@
|
||||
if(holstered && istype(user))
|
||||
user << "<span class='warning'>There is already \a [holstered] holstered here!</span>"
|
||||
return
|
||||
//VOREStation Edit - Machete sheath support
|
||||
if (can_hold)
|
||||
if(!is_type_in_list(I,can_hold))
|
||||
to_chat(user, "<span class='warning'>[I] won't fit in [src]!</span>")
|
||||
return
|
||||
|
||||
if (!(I.slot_flags & SLOT_HOLSTER))
|
||||
else if (!(I.slot_flags & SLOT_HOLSTER))
|
||||
//VOREStation Edit End
|
||||
user << "<span class='warning'>[I] won't fit in [src]!</span>"
|
||||
return
|
||||
|
||||
@@ -38,8 +45,8 @@
|
||||
else
|
||||
if(user.a_intent == I_HURT)
|
||||
usr.visible_message(
|
||||
"<span class='danger'>[user] draws \the [holstered], ready to shoot!</span>",
|
||||
"<span class='warning'>You draw \the [holstered], ready to shoot!</span>"
|
||||
"<span class='danger'>[user] draws \the [holstered], ready to go!</span>", //VOREStation Edit
|
||||
"<span class='warning'>You draw \the [holstered], ready to go!</span>" //VOREStation Edit
|
||||
)
|
||||
else
|
||||
user.visible_message(
|
||||
|
||||
@@ -520,11 +520,11 @@
|
||||
/obj/item/weapon/gun/energy/gun/martin/proc/update_mode()
|
||||
var/datum/firemode/current_mode = firemodes[sel_mode]
|
||||
switch(current_mode.name)
|
||||
if("stun") overlays += "taser_pdw"
|
||||
if("lethal") overlays += "lazer_pdw"
|
||||
if("stun") add_overlay("taser_pdw")
|
||||
if("lethal") add_overlay("lazer_pdw")
|
||||
|
||||
/obj/item/weapon/gun/energy/gun/martin/update_icon()
|
||||
overlays.Cut()
|
||||
cut_overlays()
|
||||
update_mode()
|
||||
|
||||
/////////////////////////////////////////////////////
|
||||
@@ -804,3 +804,32 @@
|
||||
to_chat(user, "<span class='warning'>The safety device prevents the gun from firing this close to the facility.</span>")
|
||||
return 0
|
||||
return ..()
|
||||
|
||||
//Expeditionary Holdout Phaser
|
||||
/obj/item/weapon/gun/energy/frontier/locked/holdout
|
||||
name = "holdout frontier phaser"
|
||||
desc = "A recently introduced weapon intended for self defense by expeditionary support. It includes the same crank charger as the frontier phaser."
|
||||
icon = 'icons/obj/gun_vr.dmi'
|
||||
icon_state = "PDW"
|
||||
item_state = "gun"
|
||||
w_class = ITEMSIZE_SMALL
|
||||
firemodes = list(
|
||||
list(mode_name="normal", fire_delay=12, projectile_type=/obj/item/projectile/beam, charge_cost = 1200),
|
||||
list(mode_name="low-power", fire_delay=8, projectile_type=/obj/item/projectile/beam/weaklaser, charge_cost = 240),
|
||||
)
|
||||
|
||||
/obj/item/weapon/gun/energy/frontier/locked/holdout/proc/update_mode()
|
||||
var/datum/firemode/current_mode = firemodes[sel_mode]
|
||||
switch(current_mode.name)
|
||||
if("low-power") add_overlay("taser_pdw")
|
||||
if("normal") add_overlay("lazer_pdw")
|
||||
|
||||
/obj/item/weapon/gun/energy/frontier/locked/holdout/update_icon()
|
||||
cut_overlays()
|
||||
if(recharging)
|
||||
icon_state = "[initial(icon_state)]_pump"
|
||||
update_held_icon()
|
||||
return
|
||||
else
|
||||
icon_state = "[initial(icon_state)]"
|
||||
update_mode()
|
||||
|
||||
BIN
icons/mob/ties_vr.dmi
Normal file
BIN
icons/mob/ties_vr.dmi
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 297 B |
BIN
icons/obj/clothing/ties_vr.dmi
Normal file
BIN
icons/obj/clothing/ties_vr.dmi
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 469 B |
Binary file not shown.
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 40 KiB |
@@ -61,10 +61,9 @@
|
||||
new /obj/item/weapon/storage/backpack(src)
|
||||
else
|
||||
new /obj/item/weapon/storage/backpack/satchel/norm(src)
|
||||
if(prob(75))
|
||||
new /obj/item/weapon/material/knife/tacknife/survival(src)
|
||||
else
|
||||
new /obj/item/weapon/material/knife/machete(src)
|
||||
new /obj/item/weapon/material/knife/tacknife/survival(src) //VOREStation Edit
|
||||
new /obj/item/weapon/material/knife/machete(src) //VOREStation Edit
|
||||
new /obj/item/clothing/accessory/holster/machete(src) //VOREStation Edit
|
||||
new /obj/item/clothing/under/explorer(src)
|
||||
new /obj/item/clothing/suit/storage/hooded/explorer(src)
|
||||
new /obj/item/clothing/mask/gas/explorer(src)
|
||||
|
||||
@@ -396,6 +396,8 @@ var/global/list/latejoin_tram = list()
|
||||
..()
|
||||
for(var/i = 1 to 4)
|
||||
new /obj/item/weapon/gun/energy/frontier/locked(src)
|
||||
for(var/i = 1 to 4)
|
||||
new /obj/item/weapon/gun/energy/frontier/locked/holdout(src)
|
||||
|
||||
// Underdark mob spawners
|
||||
/obj/tether_away_spawner/underdark_normal
|
||||
|
||||
Reference in New Issue
Block a user