From fca84835f7fde4fb0e86f2720a74fd85bcdb9ec7 Mon Sep 17 00:00:00 2001 From: "polyxenitopalidou@gmail.com" Date: Mon, 9 May 2011 01:23:13 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=A2What=20the=20flying=20fuck.=20Actually?= =?UTF-8?q?=20forgot=20to=20include=20the=20most=20important=20part=20of?= =?UTF-8?q?=20the=20update.=20Sorry.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1552 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/objects/items/weapons/twohanded.dm | 69 ++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 code/game/objects/items/weapons/twohanded.dm diff --git a/code/game/objects/items/weapons/twohanded.dm b/code/game/objects/items/weapons/twohanded.dm new file mode 100644 index 00000000000..92edb435255 --- /dev/null +++ b/code/game/objects/items/weapons/twohanded.dm @@ -0,0 +1,69 @@ +/*################################################################## +##################### TWO HANDED WEAPONS BE HERE~ -Agouri :3 ######## +####################################################################*/ + +///General Offhand object properties/// + + +////////////FIREAXE!////////////// + + +/obj/item/weapon/fireaxe/update_icon() //Currently only here to fuck with the on-mob icons. + src.icon_state = text("fireaxe[]",src.wielded) + return + +/obj/item/weapon/fireaxe/pickup(mob/user) + src.wielded = 0 + src.name = "Fire Axe (Unwielded)" + + +/obj/item/weapon/fireaxe/attack_self(mob/user as mob) + if( istype(user,/mob/living/carbon/monkey) ) + user << "\red It's too heavy for you to fully wield" + return + +//welp, all is good, now to see if he's trying do twohandedly wield it or unwield it + + + if(src.wielded == 0) //He's trying to wield it!! + + if( user.hand ) ///User hand appears to be 1 if you're using the Left one and 0 if you're using the right? I don't even KNOW + if(user.r_hand != null) + user << "\red You need your right hand to be empty" + return + else + if(user.l_hand != null) + user << "\red You need your left hand to be empty" + return + user << "\blue You grab the hilt of the axe and raise it to your torso, readying it for use." + src.wielded = !src.wielded + src.force = 30 + src.name = "Fire axe (Wielded)" + src.update_icon() + + var/obj/item/weapon/offhand/O = new /obj/item/weapon/offhand(user) ////Let's reserve his other hand~ + O.name = text("[]-Offhand",src.name) + O.desc = "Your second grip on the Fire axe" + + if(user.hand) + user.r_hand = O ///Place dat offhand in the opposite hand + else + user.l_hand = O + O.layer = 20 + return + + + if(src.wielded == 1) //Guy's bored of robusting and now wants to carry it + src.wielded = !src.wielded + src.force = 5 + src.name = "Fire axe (Unwielded)" + src.update_icon() + user << "\blue You are now carrying the axe with one hand." + + if(user.hand) //Now let's free up his other hand + var/obj/item/weapon/offhand/O = user.r_hand + del O + else + var/obj/item/weapon/offhand/O = user.l_hand + del O + return \ No newline at end of file