mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-20 22:33:38 +00:00
Adds toolspeed var, which is a multiplier on how 'fast' the tool works. 0.5 means it goes twice as fast. Adds usesound var, which determines what sound is used when a tool is being used. Changes a lot of code to use those two vars instead. Adds 'ayyy' tools, which are ported from /tg/'s abductor gamemode. They're currently admin only but I might make them obtainable by xenoarch later. Adds powertools, also from /tg/. CE starts with them in a new toolbelt that spawns in their locker, ported from (you guessed it) /tg/. Changes welder sprites to look nicer, ported yet again from /tg/. Modified the blue welder slightly so it can be the electric welder sprite. Adds various sounds from /tg/, for tools and welders.
21 lines
990 B
Plaintext
21 lines
990 B
Plaintext
#ifndef T_BOARD
|
|
#error T_BOARD macro is not defined but we need it!
|
|
#endif
|
|
|
|
/obj/item/weapon/circuitboard/rdconsole
|
|
name = T_BOARD("R&D control console")
|
|
build_path = /obj/machinery/computer/rdconsole/core
|
|
|
|
/obj/item/weapon/circuitboard/rdconsole/attackby(obj/item/I as obj, mob/user as mob)
|
|
if(istype(I,/obj/item/weapon/screwdriver))
|
|
playsound(src, I.usesound, 50, 1)
|
|
user.visible_message("<span class='notice'>\The [user] adjusts the jumper on \the [src]'s access protocol pins.</span>", "<span class='notice'>You adjust the jumper on the access protocol pins.</span>")
|
|
if(build_path == /obj/machinery/computer/rdconsole/core)
|
|
name = T_BOARD("RD Console - Robotics")
|
|
build_path = /obj/machinery/computer/rdconsole/robotics
|
|
user << "<span class='notice'>Access protocols set to robotics.</span>"
|
|
else
|
|
name = T_BOARD("RD Console")
|
|
build_path = /obj/machinery/computer/rdconsole/core
|
|
user << "<span class='notice'>Access protocols set to default.</span>"
|
|
return |