MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / operator()

Method operator()

src/SB/Game/zEntPlayerBungeeState.cpp:1122–1154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1120 }
1121
1122 S32 hanging_state_type::cb_cache_collisions::operator()(xEnt& ent, xGridBound& bound)
1123 {
1124 xCollis coll;
1125
1126 if (!(ent.chkby & 0x10) || !(ent.penby & 0x10))
1127 {
1128 return 1;
1129 }
1130
1131 coll.flags = 0x0;
1132 xSphereHitsBound(&o, &ent.bound, &coll);
1133
1134 if (!(coll.flags & 0x1))
1135 {
1136 return 1;
1137 }
1138
1139 if (ent.collLev == 0x5)
1140 {
1141 xSphereHitsModel(&o, ent.model, &coll);
1142 if (!(coll.flags & 0x1))
1143 {
1144 return 1;
1145 }
1146 }
1147
1148 ent_info& cache_item = ent_cache[ent_cache_size];
1149 cache_item.ent = &ent;
1150 cache_item.hits = 0;
1151 ent_cache_size++;
1152
1153 return 1;
1154 }
1155 } // namespace
1156
1157 void load(class xBase& data, class xDynAsset& asset, unsigned long)

Callers

nothing calls this directly

Calls 2

xSphereHitsBoundFunction · 0.50
xSphereHitsModelFunction · 0.50

Tested by

no test coverage detected