201 {
202 super.OnEntry(e);
203 if (e)
204 {
205 Magnum_Cylinder cylinder = Magnum_Cylinder.Cast(
m_weapon.GetAttachmentByType(Magnum_Cylinder));
206 Magnum_Ejector ejector = Magnum_Ejector.Cast(
m_weapon.GetAttachmentByType(Magnum_Ejector));
207 if(cylinder && ejector)
208 {
209 float a;
210 int mi =
m_weapon.GetCurrentMuzzle();
211 switch(mi)
212 {
213 case 0:
215 break;
216 case 1:
220 break;
221 case 2:
223 break;
224 case 3:
226 break;
227 case 4:
229 break;
230 case 5:
232 break;
233 }
234 cylinder.SetAnimationPhase("Rotate_Cylinder", a );
235 ejector.SetAnimationPhase("Rotate_Ejector", a );
236 }
237 }
238 }
class WeaponGuardIsDestroyed extends WeaponGuardBase m_weapon
const float MAGNUM_ROTATION_POSITION_2
const float MAGNUM_ROTATION_POSITION_1
const float MAGNUM_ROTATION_POSITION_3
const float MAGNUM_ROTATION_POSITION_4
const float MAGNUM_ROTATION_POSITION_6
const float MAGNUM_ROTATION_POSITION_5
const float MAGNUM_ROTATION_POSITION_0