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

Function zEntButton_Press

src/SB/Game/zEntButton.cpp:297–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void zEntButton_Press(_zEntButton* ent)
298{
299 xSndPlay3D(xStrHash("Button_press"), 0.77f, 0.0f, 128, 0, (xVec3*)&ent->model->Mat->pos, 10.0f,
300 30.0f, SND_CAT_GAME, 0.0f);
301
302 if (ent->state == 0)
303 {
304 ent->state = 1;
305 ent->counter = 0.0f;
306 }
307}
308
309static void _PressButtonSound(U32 mask)
310{

Callers 3

zEntButtonEventCBFunction · 0.85
damage_entityFunction · 0.85
xEntBoulder_UpdateFunction · 0.85

Calls 4

_PressButtonSoundFunction · 0.85
xSndPlay3DFunction · 0.70
xStrHashFunction · 0.50
zEntEventFunction · 0.50

Tested by

no test coverage detected