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

Function zNPCSettings_Find

src/SB/Game/zNPCTypeCommon.cpp:2830–2846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2828}
2829
2830zNPCSettings* zNPCSettings_Find(U32 id)
2831{
2832 zNPCSettings* set = NULL;
2833 U32 size = 0;
2834
2835 if (id)
2836 {
2837 set = (zNPCSettings*)xSTFindAsset(id, &size);
2838 }
2839
2840 if (!set)
2841 {
2842 set = g_dflt_npcsettings;
2843 }
2844
2845 return set;
2846}
2847
2848void zNPCCommon::Vibrate(F32 ds2_cur, F32 ds2_max)
2849{

Callers 1

SetupMethod · 0.85

Calls 1

xSTFindAssetFunction · 0.50

Tested by

no test coverage detected