mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-06 15:32:52 +00:00
Merge pull request #2764 from Anewbe/rig_sprint
Adds hardsuit sprint module
This commit is contained in:
@@ -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 |
Reference in New Issue
Block a user