MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / _PressButtonSound

Function _PressButtonSound

src/SB/Game/zEntButton.cpp:309–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309static void _PressButtonSound(U32 mask)
310{
311 if (mask & (1 << 3))
312 {
313 zEntPlayer_SNDPlayStreamRandom(0, 16, ePlayerStreamSnd_BowlComment1,
314 ePlayerStreamSnd_BowlComment3, 0.1f);
315 zEntPlayer_SNDPlayStreamRandom(16, 35, ePlayerStreamSnd_BowlComment1,
316 ePlayerStreamSnd_BowlComment4, 0.1f);
317 zEntPlayer_SNDPlayStreamRandom(36, 100, ePlayerStreamSnd_BowlComment1,
318 ePlayerStreamSnd_BowlComment5, 0.1f);
319 }
320 else if (!(mask & (1 << 11)) && xrand() % 4 == 3)
321 {
322 zEntPlayer_SNDPlayStreamRandom(ePlayerStreamSnd_PushButton1, ePlayerStreamSnd_PushButton3,
323 0.2f);
324 }
325}
326
327void zEntButton_Press(_zEntButton* ent, U32 mask)
328{

Callers 2

zEntButton_PressFunction · 0.85
zEntButton_HoldFunction · 0.85

Calls 2

xrandFunction · 0.85

Tested by

no test coverage detected