Merge pull request #3739 from Novacat/MiscTweaks

New Explorer Gear
This commit is contained in:
Aronai Sieyes
2018-05-24 09:18:51 -04:00
committed by GitHub
10 changed files with 64 additions and 12 deletions

View File

@@ -101,6 +101,7 @@
attack_verb = list("slashed", "chopped", "gouged", "ripped", "cut") attack_verb = list("slashed", "chopped", "gouged", "ripped", "cut")
can_cleave = TRUE //Now hatchets inherit from the machete, and thus knives. Tables turned. can_cleave = TRUE //Now hatchets inherit from the machete, and thus knives. Tables turned.
slot_flags = SLOT_BELT slot_flags = SLOT_BELT
default_material = "plasteel"
/obj/item/weapon/material/knife/tacknife/survival /obj/item/weapon/material/knife/tacknife/survival
name = "survival knife" name = "survival knife"
@@ -109,4 +110,5 @@
icon_state = "survivalknife" icon_state = "survivalknife"
item_state = "knife" item_state = "knife"
applies_material_colour = FALSE applies_material_colour = FALSE
default_material = "plasteel"
toolspeed = 2 // Use a real axe if you want to chop logs. toolspeed = 2 // Use a real axe if you want to chop logs.

View File

@@ -632,8 +632,8 @@
//convenience var for defining the icon state for the overlay used when the clothing is worn. //convenience var for defining the icon state for the overlay used when the clothing is worn.
//Also used by rolling/unrolling. //Also used by rolling/unrolling.
var/worn_state = null var/worn_state = null
valid_accessory_slots = list("utility","armband","decor","over") valid_accessory_slots = list("utility","armband","sheath","decor","over") //VOREStation Edit - Adds Machete Sheath
restricted_accessory_slots = list("utility", "armband") 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_icon = 'icons/mob/uniform_rolled_down.dmi'
var/icon/rolled_down_sleeves_icon = 'icons/mob/uniform_sleeves_rolled.dmi' var/icon/rolled_down_sleeves_icon = 'icons/mob/uniform_sleeves_rolled.dmi'

View File

@@ -177,3 +177,16 @@
to_chat(user,"<span class='notice'>You set the [name]'s tag to '[str]'.</span>") to_chat(user,"<span class='notice'>You set the [name]'s tag to '[str]'.</span>")
name = initial(name) + " ([str])" name = initial(name) + " ([str])"
desc = initial(desc) + " The tag says \"[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'

View File

@@ -3,6 +3,7 @@
desc = "A handgun holster." desc = "A handgun holster."
icon_state = "holster" icon_state = "holster"
slot = "utility" slot = "utility"
var/list/can_hold //VOREStation Edit
concealed_holster = 1 concealed_holster = 1
var/obj/item/holstered = null var/obj/item/holstered = null
@@ -10,8 +11,14 @@
if(holstered && istype(user)) if(holstered && istype(user))
user << "<span class='warning'>There is already \a [holstered] holstered here!</span>" user << "<span class='warning'>There is already \a [holstered] holstered here!</span>"
return 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>" user << "<span class='warning'>[I] won't fit in [src]!</span>"
return return
@@ -38,8 +45,8 @@
else else
if(user.a_intent == I_HURT) if(user.a_intent == I_HURT)
usr.visible_message( usr.visible_message(
"<span class='danger'>[user] draws \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 shoot!</span>" "<span class='warning'>You draw \the [holstered], ready to go!</span>" //VOREStation Edit
) )
else else
user.visible_message( user.visible_message(

View File

@@ -520,11 +520,11 @@
/obj/item/weapon/gun/energy/gun/martin/proc/update_mode() /obj/item/weapon/gun/energy/gun/martin/proc/update_mode()
var/datum/firemode/current_mode = firemodes[sel_mode] var/datum/firemode/current_mode = firemodes[sel_mode]
switch(current_mode.name) switch(current_mode.name)
if("stun") overlays += "taser_pdw" if("stun") add_overlay("taser_pdw")
if("lethal") overlays += "lazer_pdw" if("lethal") add_overlay("lazer_pdw")
/obj/item/weapon/gun/energy/gun/martin/update_icon() /obj/item/weapon/gun/energy/gun/martin/update_icon()
overlays.Cut() cut_overlays()
update_mode() 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>") to_chat(user, "<span class='warning'>The safety device prevents the gun from firing this close to the facility.</span>")
return 0 return 0
return ..() 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 B

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

View File

@@ -61,10 +61,9 @@
new /obj/item/weapon/storage/backpack(src) new /obj/item/weapon/storage/backpack(src)
else else
new /obj/item/weapon/storage/backpack/satchel/norm(src) new /obj/item/weapon/storage/backpack/satchel/norm(src)
if(prob(75)) new /obj/item/weapon/material/knife/tacknife/survival(src) //VOREStation Edit
new /obj/item/weapon/material/knife/tacknife/survival(src) new /obj/item/weapon/material/knife/machete(src) //VOREStation Edit
else new /obj/item/clothing/accessory/holster/machete(src) //VOREStation Edit
new /obj/item/weapon/material/knife/machete(src)
new /obj/item/clothing/under/explorer(src) new /obj/item/clothing/under/explorer(src)
new /obj/item/clothing/suit/storage/hooded/explorer(src) new /obj/item/clothing/suit/storage/hooded/explorer(src)
new /obj/item/clothing/mask/gas/explorer(src) new /obj/item/clothing/mask/gas/explorer(src)

View File

@@ -396,6 +396,8 @@ var/global/list/latejoin_tram = list()
..() ..()
for(var/i = 1 to 4) for(var/i = 1 to 4)
new /obj/item/weapon/gun/energy/frontier/locked(src) 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 // Underdark mob spawners
/obj/tether_away_spawner/underdark_normal /obj/tether_away_spawner/underdark_normal