Merge pull request #5075 from BillyBangles/snowsteps

Adds snow footsteps
This commit is contained in:
Neerti
2018-03-20 21:14:28 -04:00
committed by GitHub
7 changed files with 10 additions and 1 deletions
+7
View File
@@ -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 -1
View File
@@ -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.