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

Method net_Spawn

ogsr_engine/xrGame/ZoneVisual.cpp:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9CVisualZone::~CVisualZone() {}
10
11BOOL CVisualZone::net_Spawn(CSE_Abstract* DC)
12{
13 BOOL ret = inherited::net_Spawn(DC);
14 CSE_Abstract* e = (CSE_Abstract*)(DC);
15 CSE_ALifeZoneVisual* Z = smart_cast<CSE_ALifeZoneVisual*>(e);
16 IKinematicsAnimated* SA = smart_cast<IKinematicsAnimated*>(Visual());
17 m_attack_animation = SA->ID_Cycle(Z->attack_animation);
18 m_idle_animation = SA->ID_Cycle(Z->startup_animation);
19 SA->PlayCycle(m_idle_animation);
20 setVisible(TRUE);
21 return ret;
22}
23void CVisualZone::net_Destroy() { inherited::net_Destroy(); }
24void CVisualZone::AffectObjects()
25{

Callers

nothing calls this directly

Calls 3

VisualFunction · 0.85
ID_CycleMethod · 0.80
PlayCycleMethod · 0.80

Tested by

no test coverage detected