Merge pull request #2764 from Anewbe/rig_sprint

Adds hardsuit sprint module
This commit is contained in:
MagmaRam
2016-11-17 20:41:17 -06:00
committed by GitHub
2 changed files with 44 additions and 0 deletions

View File

@@ -594,3 +594,47 @@
device = iastamp
holder.wearer << "<span class='notice'>Switched to internal affairs stamp.</span>"
return 1
/obj/item/rig_module/sprinter
name = "sprint module"
desc = "A robust hardsuit-integrated sprint module."
icon_state = "sprinter"
var/sprint_speed = 1
toggleable = 1
disruptable = 1
disruptive = 0
use_power_cost = 50
active_power_cost = 5
passive_power_cost = 0
module_cooldown = 30
activate_string = "Enable Sprint"
deactivate_string = "Disable Sprint"
interface_name = "sprint system"
interface_desc = "Increases power to the suit's actuators, allowing faster movement."
/obj/item/rig_module/sprinter/activate()
if(!..())
return 0
var/mob/living/carbon/human/H = holder.wearer
H << "<font color='blue'><b>You activate the suit's sprint mode.</b></font>"
holder.slowdown = initial(holder.slowdown) - sprint_speed
/obj/item/rig_module/sprinter/deactivate()
if(!..())
return 0
var/mob/living/carbon/human/H = holder.wearer
H << "<span class='danger'>Your hardsuit returns to normal speed.</span>"
holder.slowdown = initial(holder.slowdown)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB