MCPcopy Create free account
hub / github.com/assaultcube/AC / loopv

Function loopv

source/src/entities.cpp:103–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101void rendermapmodels()
102{
103 loopv(ents)
104 {
105 entity &e = ents[i];
106 if(e.type==MAPMODEL)
107 {
108 mapmodelinfo *mmi = getmminfo(e.attr2);
109 if(!mmi) continue;
110 rendermodel(mmi->name, ANIM_MAPMODEL|ANIM_LOOP, e.attr4, 0, vec(e.x, e.y, S(e.x, e.y)->floor + mmi->zoff + float(e.attr3) / ENTSCALE5), e.attr6, float(e.attr1) / ENTSCALE10, float(e.attr5) / ENTSCALE10, 10.0f, 0, NULL, NULL, mmi->scale);
111 }
112 }
113}
114
115void renderentarrow(const entity &e, const vec &dir, float radius)

Callers 2

resetpickupsFunction · 0.70
syncentchangesFunction · 0.70

Calls 13

getmminfoFunction · 0.85
rendermodelFunction · 0.85
vecClass · 0.85
particle_splashFunction · 0.85
renderentFunction · 0.85
renderclipFunction · 0.85
textureloadFunction · 0.85
renderentarrowFunction · 0.85
trypickupFunction · 0.85
distMethod · 0.80
inrangeMethod · 0.80
dotMethod · 0.45

Tested by

no test coverage detected