mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 21:49:11 +01:00
Merge pull request #5075 from BillyBangles/snowsteps
Adds snow footsteps
This commit is contained in:
@@ -67,6 +67,13 @@ var/list/flooring_types
|
||||
desc = "A layer of many tiny bits of frozen water. It's hard to tell how deep it is."
|
||||
icon = 'icons/turf/snow_new.dmi'
|
||||
icon_base = "snow"
|
||||
footstep_sounds = list("human" = list(
|
||||
'sound/effects/footstep/snow1.ogg',
|
||||
'sound/effects/footstep/snow2.ogg',
|
||||
'sound/effects/footstep/snow3.ogg',
|
||||
'sound/effects/footstep/snow4.ogg',
|
||||
'sound/effects/footstep/snow5.ogg'))
|
||||
|
||||
|
||||
/decl/flooring/snow/snow2
|
||||
name = "snow"
|
||||
|
||||
@@ -3,12 +3,14 @@
|
||||
icon_state = "snow"
|
||||
edge_blending_priority = 6
|
||||
movement_cost = 2
|
||||
initial_flooring = /decl/flooring/snow
|
||||
turf_layers = list(
|
||||
/turf/simulated/floor/outdoors/rocks,
|
||||
/turf/simulated/floor/outdoors/dirt
|
||||
)
|
||||
var/list/crossed_dirs = list()
|
||||
|
||||
|
||||
/turf/simulated/floor/outdoors/snow/Entered(atom/A)
|
||||
if(isliving(A))
|
||||
var/mdir = "[A.dir]"
|
||||
@@ -51,5 +53,5 @@
|
||||
if(istype(M, /mob/living))
|
||||
if(M.stunned == 0)
|
||||
to_chat(M, "<span class='warning'>You slide across the ice!</span>")
|
||||
M.SetStunned(2)
|
||||
M.SetStunned(1)
|
||||
step(M,M.dir)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user