Change timing of statscreen tick sounds.

This commit is contained in:
Mari the Deer 2023-10-16 14:10:40 +02:00
commit 405de75ef6
3 changed files with 7 additions and 6 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r986 \cu(Mon 16 Oct 14:00:46 CEST 2023)\c-";
SWWM_SHORTVER="\cw1.3pre r986 \cu(2023-10-16 14:00:46)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r986 \cu(Mon 16 Oct 14:10:40 CEST 2023)\c-";
SWWM_SHORTVER="\cw1.3pre r986 \cu(2023-10-16 14:10:40)\c-";

View file

@ -90,6 +90,7 @@ $alias misc/interstart title/explo
$alias misc/intercnt menu/demoscroll
$alias misc/intercntdone menu/buyinv
$alias misc/interdone misc/w_pkup
$limit misc/intercnt 32
misc/underwater = "sounds/general/uWater1a.ogg"
misc/underslime = "sounds/general/uGoop1.ogg"

View file

@ -537,7 +537,7 @@ Class SWWMStatScreen : StatusScreen
if ( sp_state == 2 )
{
cnt_kills[0] += max((Plrs[me].skills-cnt_kills[0])/GameTicRate,1);
if ( !((sndcnt++)%2) )
if ( !((sndcnt++)%3) )
{
S_StartSound("misc/intercnt",CHAN_VOICE,CHANF_OVERLAP|CHANF_UI,1.,0.);
glarestr = 5;
@ -553,7 +553,7 @@ Class SWWMStatScreen : StatusScreen
else if ( sp_state == 4 )
{
cnt_items[0] += max((Plrs[me].sitems-cnt_items[0])/GameTicRate,1);
if ( !((sndcnt++)%2) )
if ( !((sndcnt++)%3) )
{
S_StartSound("misc/intercnt",CHAN_VOICE,CHANF_OVERLAP|CHANF_UI,1.,0.);
glarestr = 5;
@ -569,7 +569,7 @@ Class SWWMStatScreen : StatusScreen
else if ( sp_state == 6 )
{
cnt_secret[0] += max((Plrs[me].ssecret-cnt_secret[0])/GameTicRate,1);
if ( !((sndcnt++)%2) )
if ( !((sndcnt++)%3) )
{
S_StartSound("misc/intercnt",CHAN_VOICE,CHANF_OVERLAP|CHANF_UI,1.,0.);
glarestr = 5;
@ -587,7 +587,7 @@ Class SWWMStatScreen : StatusScreen
int sec = Thinker.Tics2Seconds(Plrs[me].stime);
int tsec = Thinker.Tics2Seconds(wbs.totaltime);
int psec = wbs.partime/GameTicRate;
if ( !((sndcnt++)%2) )
if ( !((sndcnt++)%3) )
{
S_StartSound("misc/intercnt",CHAN_VOICE,CHANF_OVERLAP|CHANF_UI,1.,0.);
glarestr = 5;