168 {
169 int boneIdx;
170
171 if (person.IsPlayer())
172 {
173 PlayerBase player = PlayerBase.Cast(person);
174 boneIdx = player.GetBoneIndexByName("Head");
175
176 if (boneIdx != -1)
177 {
180
183
184 player.AddChild(
m_Light, boneIdx);
185 }
186 }
187 else if (person.IsZombie())
188 {
189 ZombieBase zombie = ZombieBase.Cast(person);
190 boneIdx = zombie.GetBoneIndexByName("Head");
191
192 if (boneIdx != -1)
193 {
196
199
200 person.AddChild(
m_Light, boneIdx);
201 }
202 }
203 }
static vector m_OnHeadLocalOri
static vector m_OnHeadLocalPos