mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 19:47:47 +01:00
Damn recording tapes
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
var/recording = 0.0
|
||||
var/playing = 0.0
|
||||
var/playsleepseconds = 0.0
|
||||
var/obj/item/tape/mytape = /obj/item/tape/random
|
||||
var/obj/item/rectape/mytape = /obj/item/rectape/random
|
||||
var/canprint = 1
|
||||
slot_flags = SLOT_BELT
|
||||
throwforce = 2
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
|
||||
/obj/item/taperecorder/attackby(obj/item/I, mob/user, params)
|
||||
if(istype(I, /obj/item/tape))
|
||||
if(istype(I, /obj/item/rectape))
|
||||
if(mytape)
|
||||
to_chat(user, "<span class='notice'>There's already a tape inside.</span>")
|
||||
return
|
||||
@@ -357,7 +357,7 @@
|
||||
|
||||
|
||||
|
||||
/obj/item/tape
|
||||
/obj/item/rectape
|
||||
name = "tape"
|
||||
desc = "A magnetic tape that can hold up to ten minutes of content."
|
||||
icon = 'icons/obj/device.dmi'
|
||||
@@ -374,43 +374,43 @@
|
||||
var/ruined = 0
|
||||
|
||||
|
||||
/obj/item/tape/update_icon()
|
||||
/obj/item/rectape/update_icon()
|
||||
cut_overlays()
|
||||
if(ruined)
|
||||
add_overlay("ribbonoverlay")
|
||||
|
||||
|
||||
/obj/item/tape/fire_act()
|
||||
/obj/item/rectape/fire_act()
|
||||
ruin()
|
||||
|
||||
/obj/item/tape/attack_self(mob/user)
|
||||
/obj/item/rectape/attack_self(mob/user)
|
||||
if(!ruined)
|
||||
to_chat(user, "<span class='notice'>You pull out all the tape!</span>")
|
||||
ruin()
|
||||
|
||||
|
||||
/obj/item/tape/proc/ruin()
|
||||
/obj/item/rectape/proc/ruin()
|
||||
ruined = 1
|
||||
update_icon()
|
||||
|
||||
|
||||
/obj/item/tape/proc/fix()
|
||||
/obj/item/rectape/proc/fix()
|
||||
ruined = 0
|
||||
update_icon()
|
||||
|
||||
|
||||
/obj/item/tape/proc/record_speech(text)
|
||||
/obj/item/rectape/proc/record_speech(text)
|
||||
timestamp += used_capacity
|
||||
storedinfo += "\[[time2text(used_capacity*10,"mm:ss")]\] [text]"
|
||||
|
||||
|
||||
//shows up on the printed transcript as (Unrecognized sound)
|
||||
/obj/item/tape/proc/record_noise(text)
|
||||
/obj/item/rectape/proc/record_noise(text)
|
||||
timestamp += used_capacity
|
||||
storedinfo += "*\[[time2text(used_capacity*10,"mm:ss")]\] [text]"
|
||||
|
||||
|
||||
/obj/item/tape/attackby(obj/item/I, mob/user, params)
|
||||
/obj/item/rectape/attackby(obj/item/I, mob/user, params)
|
||||
if(ruined && I.has_tool_quality(TOOL_SCREWDRIVER))
|
||||
to_chat(user, "<span class='notice'>You start winding the tape back in...</span>")
|
||||
playsound(src, I.usesound, 50, 1)
|
||||
@@ -434,6 +434,5 @@
|
||||
|
||||
|
||||
//Random colour tapes
|
||||
/obj/item/tape/random/New()
|
||||
icon = 'icons/obj/device.dmi'
|
||||
/obj/item/rectape/random/New()
|
||||
icon_state = "tape_[pick("white", "blue", "red", "yellow", "purple")]"
|
||||
|
||||
@@ -287,7 +287,7 @@
|
||||
/obj/item/flame/lighter,
|
||||
/obj/item/flashlight,
|
||||
/obj/item/taperecorder,
|
||||
/obj/item/tape,
|
||||
/obj/item/rectape,
|
||||
/obj/item/pda,
|
||||
/obj/item/radio/headset,
|
||||
/obj/item/clothing/gloves,
|
||||
@@ -311,7 +311,7 @@
|
||||
max_w_class = ITEMSIZE_NORMAL
|
||||
can_hold = list(
|
||||
/obj/item/taperecorder,
|
||||
/obj/item/tape,
|
||||
/obj/item/rectape,
|
||||
/obj/item/clothing/glasses,
|
||||
/obj/item/flashlight,
|
||||
/obj/item/cell/device,
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/obj/item/card,
|
||||
/obj/item/clothing/mask/smokable/cigarette/,
|
||||
/obj/item/flashlight/pen,
|
||||
/obj/item/tape,
|
||||
/obj/item/rectape,
|
||||
/obj/item/cartridge,
|
||||
/obj/item/encryptionkey,
|
||||
/obj/item/seeds,
|
||||
@@ -153,7 +153,7 @@
|
||||
/obj/item/card,
|
||||
/obj/item/clothing/mask/smokable/cigarette/,
|
||||
/obj/item/flashlight/pen,
|
||||
/obj/item/tape,
|
||||
/obj/item/rectape,
|
||||
/obj/item/cartridge,
|
||||
/obj/item/encryptionkey,
|
||||
/obj/item/seeds,
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
/obj/item/clothing/glasses/sunglasses/big = 2,
|
||||
/obj/item/clothing/under/lawyer/blue = 2,
|
||||
/obj/item/clothing/under/lawyer/blue/skirt = 2,
|
||||
/obj/item/tape/random = 2
|
||||
/obj/item/rectape/random = 2
|
||||
)
|
||||
|
||||
/*
|
||||
|
||||
@@ -232,7 +232,7 @@
|
||||
/obj/item/clipboard,
|
||||
/obj/item/folder/white,
|
||||
/obj/item/taperecorder,
|
||||
/obj/item/tape/random = 3,
|
||||
/obj/item/rectape/random = 3,
|
||||
/obj/item/camera,
|
||||
/obj/item/toy/plushie/therapy/blue)
|
||||
|
||||
|
||||
@@ -266,7 +266,7 @@
|
||||
/obj/item/storage/briefcase/crimekit,
|
||||
/obj/item/taperecorder,
|
||||
/obj/item/storage/bag/detective,
|
||||
/obj/item/tape/random = 3)
|
||||
/obj/item/rectape/random = 3)
|
||||
|
||||
/obj/structure/closet/secure_closet/injection
|
||||
name = "lethal injections locker"
|
||||
|
||||
Reference in New Issue
Block a user