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

Function zLasso_Init

src/SB/Game/zLasso.cpp:30–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28static void bakeMorphAnim(RpGeometry* geom, void* anim);
29
30void zLasso_Init(zLasso* lasso, xModelInstance* model, F32 x, F32 y, F32 z)
31{
32 if (sLassoRaster == NULL)
33 {
34 RwTexture* tempTexture = (RwTexture*)xSTFindAsset(xStrHash("rope"), NULL);
35 if (tempTexture != NULL)
36 {
37 sLassoRaster = tempTexture->raster;
38 }
39 else
40 {
41 sLassoRaster = NULL;
42 }
43 }
44
45 iModelTagSetup(&lasso->tag, model->Data, x, y, z);
46
47 lasso->model = model;
48 lnverts = gRenderArr.m_vertex;
49}
50
51void zLasso_AddGuide(xEnt* ent, xAnimState* lassoAnim, xModelInstance* lassoModel)
52{

Callers 1

zEntPlayer_InitFunction · 0.70

Calls 3

xSTFindAssetFunction · 0.50
xStrHashFunction · 0.50
iModelTagSetupFunction · 0.50

Tested by

no test coverage detected