Skip to content

Commit

Permalink
FUCK YOU WINTERMOTE YOU ADMIN-POWER ABUSING FAGGOT. THIRD ROUND IN A …
Browse files Browse the repository at this point in the history
…FUCKING ROW ENDED THANKS TO YOUR SHITTERY. STOP MESSING WITH THE ROUNDS GODDAMN. INFINITE CAPACITY TASERS AND ALIENS USING THEM, WITH THE ALIEN GODMODED? FUCK YOU.
  • Loading branch information
paprka committed May 14, 2014
1 parent acda8bf commit 67b9715
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 166 deletions.
123 changes: 17 additions & 106 deletions code/game/objects/items/stacks/sheets/glass.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
icon_state = "sheet-glass"
g_amt = 3750
origin_tech = "materials=1"
var/created_window = /obj/structure/window/basic //What do we grow up to be?


/obj/item/stack/sheet/glass/attack_self(mob/user as mob)
Expand Down Expand Up @@ -55,7 +54,7 @@
if(!user.IsAdvancedToolUser())
user << "\red You don't have the dexterity to do this!"
return 0
var/title = "Sheet-[src]"
var/title = "Sheet-Glass"
title += " ([src.amount] sheet\s left)"
switch(alert(title, "Would you like full tile glass or one direction?", "One Direction", "Full Window", "Cancel", null))
if("One Direction")
Expand Down Expand Up @@ -86,7 +85,7 @@
break

var/obj/structure/window/W
W = new created_window( user.loc, 0 )
W = new /obj/structure/window/basic( user.loc, 0 )
W.dir = dir_to_set
W.ini_dir = W.dir
W.anchored = 0
Expand All @@ -103,7 +102,7 @@
user << "\red There is a window in the way."
return 1
var/obj/structure/window/W
W = new created_window( user.loc, 0 )
W = new /obj/structure/window/basic( user.loc, 0 )
W.dir = SOUTHWEST
W.ini_dir = SOUTHWEST
W.anchored = 0
Expand All @@ -122,9 +121,8 @@
singular_name = "reinforced glass sheet"
icon_state = "sheet-rglass"
g_amt = 3750
m_amt = 1875
m_amt = 1000
origin_tech = "materials=2"
var/created_window = /obj/structure/window/reinforced

/obj/item/stack/sheet/rglass/cyborg
name = "reinforced glass"
Expand All @@ -143,7 +141,7 @@
if(!user.IsAdvancedToolUser())
user << "\red You don't have the dexterity to do this!"
return 0
var/title = "Sheet-[src]"
var/title = "Sheet Reinf. Glass"
title += " ([src.amount] sheet\s left)"
switch(input(title, "Would you like full tile glass a one direction glass pane or a windoor?") in list("One Direction", "Full Window", "Windoor", "Cancel"))
if("One Direction")
Expand Down Expand Up @@ -173,7 +171,7 @@
break

var/obj/structure/window/W
W = new created_window( user.loc, 1 )
W = new /obj/structure/window/reinforced( user.loc, 1 )
W.state = 0
W.dir = dir_to_set
W.ini_dir = W.dir
Expand All @@ -191,7 +189,7 @@
user << "<span class='warning'>There is a window in the way.</span>"
return 1
var/obj/structure/window/W
W = new created_window(user.loc, 1)
W = new /obj/structure/window/reinforced(user.loc, 1)
W.state = 0
W.dir = SOUTHWEST
W.ini_dir = SOUTHWEST
Expand Down Expand Up @@ -251,6 +249,7 @@
g_amt = 3750
attack_verb = list("stabbed", "slashed", "sliced", "cut")
hitsound = 'sound/weapons/bladeslice.ogg'
var/cooldown = 0

suicide_act(mob/user)
viewers(user) << pick("<span class='suicide'>[user] is slitting \his wrists with the shard of glass! It looks like \he's trying to commit suicide.</span>", \
Expand All @@ -259,15 +258,15 @@


/obj/item/weapon/shard/New()
icon_state = pick("glasslarge", "glassmedium", "glasssmall")
icon_state = pick("large", "medium", "small")
switch(icon_state)
if("glasssmall")
if("small")
pixel_x = rand(-12, 12)
pixel_y = rand(-12, 12)
if("glassmedium")
if("medium")
pixel_x = rand(-8, 8)
pixel_y = rand(-8, 8)
if("glasslarge")
if("large")
pixel_x = rand(-5, 5)
pixel_y = rand(-5, 5)

Expand Down Expand Up @@ -307,103 +306,15 @@
qdel(src)
..()

/obj/item/weapon/shard/Crossed(mob/AM)
/obj/item/weapon/shard/Crossed(var/mob/AM)
if(istype(AM))
playsound(loc, 'sound/effects/glass_step.ogg', 50, 1)
if(ishuman(AM))
var/mob/living/carbon/human/H = AM
if(!H.shoes)
H << "<span class='userdanger'>You step in the broken glass!</span>"
H.apply_damage(5,BRUTE,(pick("l_leg", "r_leg")))
H.Weaken(3)

/obj/item/weapon/shard/plasma
name = "plasma shard"
desc = "A shard of plasma. Don't step on this."
icon = 'icons/obj/shards.dmi'
icon_state = "large"
w_class = 1.0
force = 8.0
throwforce = 14.0
item_state = "shard-glass"
g_amt = 7500
attack_verb = list("stabbed", "slashed", "sliced", "cut")
hitsound = 'sound/weapons/bladeslice.ogg'

suicide_act(mob/user)
viewers(user) << pick("<span class='suicide'>[user] is slitting \his feet with the plasma crystal! It looks like \he's trying to commit suicide.</span>", \
"<span class='suicide'>[user] is chewing on the plasma crystal! It looks like \he's trying to commit suicide.</span>")
return (BRUTELOSS)

/obj/item/weapon/shard/plasma/New()

src.icon_state = pick("plasmalarge", "plasmamedium", "plasmasmall")
switch(src.icon_state)
if("plasmasmall")
src.pixel_x = rand(-12, 12)
src.pixel_y = rand(-12, 12)
if("plasmamedium")
src.pixel_x = rand(-8, 8)
src.pixel_y = rand(-8, 8)
if("plasmalarge")
src.pixel_x = rand(-5, 5)
src.pixel_y = rand(-5, 5)
else
return


/obj/item/weapon/shard/plasma/Crossed(var/mob/AM)
if(istype(AM))
playsound(loc, 'sound/effects/glass_step.ogg', 50, 1)
if(ishuman(AM))
var/mob/living/carbon/human/H = AM
H << "<span class='userdanger'>You step in the broken plasma shards!</span>"
H.apply_damage(9,BRUTE,(pick("l_leg", "r_leg")))
H.Weaken(6)

/*
* Plasma Glass sheets
*/
/obj/item/stack/sheet/glass/plasmaglass
name = "plasma glass"
desc = "A very strong and very resistant sheet of a plasma-glass alloy."
singular_name = "glass sheet"
icon_state = "sheet-plasmaglass"
g_amt = 7500
origin_tech = "materials=3;plasmatech=2"
created_window = /obj/structure/window/plasmabasic

/obj/item/stack/sheet/glass/plasmaglass/attack_self(mob/user as mob)
construct_window(user)

/obj/item/stack/sheet/glass/plasmaglass/attackby(obj/item/W, mob/user)
if( istype(W, /obj/item/stack/rods) )
var/obj/item/stack/rods/V = W
var/obj/item/stack/sheet/glass/plasmarglass/RG = new (user.loc)
RG.add_fingerprint(user)
RG.add_to_stacks(user)
V.use(1)
var/obj/item/stack/sheet/glass/plasmaglass/G = src
src = null
var/replace = (user.get_inactive_hand()==G)
G.use(1)
if (!G && !RG && replace)
user.put_in_hands(RG)
else
return ..()

/*
* Reinforced plasma glass sheets
*/
/obj/item/stack/sheet/glass/plasmarglass
name = "reinforced plasma glass"
desc = "Plasma glass which seems to have rods or something stuck in them."
singular_name = "reinforced plasma glass sheet"
icon_state = "sheet-plasmarglass"
g_amt = 7500
m_amt = 1875
origin_tech = "materials=4;plasmatech=2"
created_window = /obj/structure/window/plasmareinforced

/obj/item/stack/sheet/glass/plasmarglass/attack_self(mob/user as mob)
construct_window(user)
if(cooldown < world.time - 10) //cooldown to avoid message spam.
H.visible_message("<span class='danger'>[H] steps in the broken glass!</span>", \
"<span class='userdanger'>You step in the broken glass!</span>")
cooldown = world.time

0 comments on commit 67b9715

Please sign in to comment.