MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / IlluminatingShell

Method IlluminatingShell

engine/Poseidon/World/Entities/Weapons/Shots.cpp:1292–1300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1290#define ILL_EXPL 2.0F
1291
1292IlluminatingShell::IlluminatingShell(EntityAI* parent, const AmmoType* type)
1293 : base(parent, type), _lightColor(1.0, 1.0, 1.0)
1294{
1295 _timeToLive = ILL_TTL;
1296 _airFriction = -0.0005;
1297
1298 const ParamEntry& cls = *type->_par;
1299 _lightColor = GetColor(cls >> "lightColor");
1300}
1301
1302void IlluminatingShell::Simulate(float deltaT, SimulationImportance prec)
1303{

Callers

nothing calls this directly

Calls 1

GetColorFunction · 0.50

Tested by

no test coverage detected