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

Function xUtil_yesno

src/SB/Core/x/xutil.cpp:145–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145S32 xUtil_yesno(F32 wt_yes)
146{
147 if (0.0f == wt_yes)
148 {
149 return 0;
150 }
151
152 if (1.0f == wt_yes)
153 {
154 return 1;
155 }
156
157 return (xurand() <= wt_yes);
158}
159
160void xUtil_wtadjust(F32* wts, S32 cnt, F32 arbref)
161{

Callers 3

DetonateMethod · 0.85
ProcessMethod · 0.85
zEntAnimEvent_AutoAnimFunction · 0.85

Calls 1

xurandFunction · 0.85

Tested by

no test coverage detected