diff --git a/source/src/sound.cpp b/source/src/sound.cpp index 22c39ee9..4dd2f6cb 100644 --- a/source/src/sound.cpp +++ b/source/src/sound.cpp @@ -1543,7 +1543,8 @@ void mapsoundreset() COMMAND(mapsoundreset, ARG_NONE); -VAR(footsteps, 0, 1, 1); +VARP(footsteps, 0, 1, 1); +VARP(localfootsteps, 0, 1, 1); void updateplayerfootsteps(playerent *p) { @@ -1565,7 +1566,7 @@ void updateplayerfootsteps(playerent *p) bool local = (p == camera1); bool inrange = footsteps && (local || (camera1->o.dist(p->o) < footstepradius)); - if(!footsteps || !inrange || p->state != CS_ALIVE || lastmillis-p->lastpain < 300 || (!p->onfloor && p->timeinair>50) || (!p->move && !p->strafe) || p->inwater) + if(!footsteps || (local && !localfootsteps) || !inrange || p->state != CS_ALIVE || lastmillis-p->lastpain < 300 || (!p->onfloor && p->timeinair>50) || (!p->move && !p->strafe) || p->inwater) { const int minplaytime = 200; loopi(sizeof(locs)/sizeof(locs[0]))