MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / SHitMark

Method SHitMark

ogsr_engine/xrGame/HitMarker.cpp:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52//--------------------------------------------------------------------
53
54SHitMark::SHitMark(const ui_shader& sh, const Fvector& dir)
55{
56 m_StartTime = Device.fTimeGlobal;
57 m_lanim = LALib.FindItem("hud_hit_mark");
58 m_HitDirection = dir.getH();
59 m_UIStaticItem = xr_new<CUIStaticItem>();
60 m_UIStaticItem->SetShader(sh);
61 m_UIStaticItem->SetPos(256.0f, 128.0f);
62 m_UIStaticItem->SetRect(.0f, .0f, 512.0f, 512.0f);
63}
64
65void SHitMark::UpdateAnim()
66{

Callers

nothing calls this directly

Calls 5

SetRectMethod · 0.80
FindItemMethod · 0.45
getHMethod · 0.45
SetShaderMethod · 0.45
SetPosMethod · 0.45

Tested by

no test coverage detected