| 13 | #include <game/teamscore.h> |
| 14 | |
| 15 | CLight::CLight(CGameWorld *pGameWorld, vec2 Pos, float Rotation, int Length, |
| 16 | int Layer, int Number) : |
| 17 | CEntity(pGameWorld, CGameWorld::ENTTYPE_LASER) |
| 18 | { |
| 19 | m_To = vec2(0.0f, 0.0f); |
| 20 | m_Core = vec2(0.0f, 0.0f); |
| 21 | m_Layer = Layer; |
| 22 | m_Number = Number; |
| 23 | m_Tick = (Server()->TickSpeed() * 0.15f); |
| 24 | m_Pos = Pos; |
| 25 | m_Rotation = Rotation; |
| 26 | m_Length = Length; |
| 27 | m_EvalTick = Server()->Tick(); |
| 28 | GameWorld()->InsertEntity(this); |
| 29 | Step(); |
| 30 | } |
| 31 | |
| 32 | bool CLight::HitCharacter() |
| 33 | { |
nothing calls this directly
no test coverage detected