Files
vgstation13/code/modules/projectiles/guns/projectile/constructable/sockweapons.dm
west3436 010210e724 Sock Weapons (#31835)
* Sock weapons

* Removes debugging in-hand sprites.

* Increases brick sock size to medium and enables deconstruction.

* oops lol

* Unique sprites, in-hand sprites, and better sounds.

* Update code/modules/projectiles/guns/projectile/constructable/sockweapons.dm

Co-authored-by: DamianX <DamianX@users.noreply.github.com>

* Update code/modules/projectiles/guns/projectile/constructable/sockweapons.dm

Co-authored-by: DamianX <DamianX@users.noreply.github.com>

* Update code/modules/projectiles/guns/projectile/constructable/sockweapons.dm

Co-authored-by: DamianX <DamianX@users.noreply.github.com>

* Update code/modules/projectiles/guns/projectile/constructable/sockweapons.dm

Co-authored-by: DamianX <DamianX@users.noreply.github.com>

* Update code/modules/projectiles/guns/projectile/constructable/sockweapons.dm

Co-authored-by: DamianX <DamianX@users.noreply.github.com>

* Update code/modules/projectiles/guns/projectile/constructable/sockweapons.dm

Co-authored-by: DamianX <DamianX@users.noreply.github.com>

* Update code/modules/projectiles/guns/projectile/constructable/sockweapons.dm

Co-authored-by: DamianX <DamianX@users.noreply.github.com>

* Update code/modules/projectiles/guns/projectile/constructable/sockweapons.dm

Co-authored-by: DamianX <DamianX@users.noreply.github.com>

* Prevents glued soap from being used in construction

* Retains the soap being used and transfers fingerprints.

* reee

* Revert "reee"

This reverts commit e3e02bd173.

* forgot to include this lol

* Retains sock + fixes exploit.

* Optimization & removal of grab intent requirement for decon.

* Brick socks no longer cost 2 bricks.

* Displays assembly message following construction.

Co-authored-by: DamianX <DamianX@users.noreply.github.com>
2022-02-09 04:12:52 +01:00

40 lines
1.4 KiB
Plaintext

/obj/item/weapon/soap_sock
name = "soap in a sock"
desc = "Cleans the spirit."
icon = 'icons/obj/soapsock.dmi'
inhand_states = list("left_hand" = 'icons/mob/in-hand/left/sockweapon_left.dmi', "right_hand" = 'icons/mob/in-hand/right/sockweapon_right.dmi')
hitsound = "sound/effects/bodyfall.ogg"
force = 5
throwforce = 0
throw_speed = 1
throw_range = 7
attack_verb = list("socks")
w_class = W_CLASS_TINY
var/obj/item/weapon/soap_sock/base_soap = null
var/obj/item/weapon/soap_sock/base_sock = null
/obj/item/weapon/brick_sock
name = "brick in a sock"
desc = "Rebuilds the body."
icon = 'icons/obj/bricksock.dmi'
inhand_states = list("left_hand" = 'icons/mob/in-hand/left/sockweapon_left.dmi', "right_hand" = 'icons/mob/in-hand/right/sockweapon_right.dmi')
hitsound = "sound/effects/woodhit.ogg"
force = 15
throwforce = 10
throw_speed = 1
throw_range = 7
attack_verb = list("socks")
w_class = W_CLASS_MEDIUM
var/obj/item/weapon/brick_sock/base_sock = null
/obj/item/weapon/soap_sock/attack_self(mob/user)
to_chat(user, "<span class='notice'>You remove the soap from \the [src].</span>")
user.put_in_hands(src.base_sock)
user.put_in_hands(src.base_soap)
qdel(src)
/obj/item/weapon/brick_sock/attack_self(mob/user)
to_chat(user, "<span class='notice'>You remove the brick from \the [src].</span>")
user.put_in_hands(new /obj/item/stack/sheet/mineral/brick(user))
user.put_in_hands(src.base_sock)
qdel(src)