Example #1
0
            private static void FinishRALaunch(object state)
            {
                object[] states = (object[])state;

                Mobile  from     = (Mobile)states[0];
                Point3D endRALoc = (Point3D)states[1];
                Map     map      = (Map)states[2];
                Mobile  killed   = (Mobile)states[3];

                int hue = killed.Hue;

                if (hue >= 30000)
                {
                    hue = 0;
                }

                if (map == null || map == Map.Internal)
                {
                    return;
                }

                Effects.PlaySound(endRALoc, map, 458);

                CRightArm rightarm = new CRightArm();

                rightarm.Movable = true;
                rightarm.Hue     = hue;
                rightarm.MoveToWorld(endRALoc, map);

                CFire fire = new CFire();

                fire.Movable = false;
                fire.MoveToWorld(endRALoc, map);
            }
Example #2
0
            private static void FinishTorsoLaunch(object state)
            {
                object[] states = (object[])state;

                Mobile  from        = (Mobile)states[0];
                Point3D endTorsoLoc = (Point3D)states[1];
                Map     map         = (Map)states[2];
                Mobile  killed      = (Mobile)states[3];

                int hue = killed.Hue;

                if (hue >= 30000)
                {
                    hue = 0;
                }

                if (map == null || map == Map.Internal)
                {
                    return;
                }

                Effects.PlaySound(endTorsoLoc, map, 458);

                CTorso torso = new CTorso();

                torso.Movable = true;
                torso.Hue     = hue;
                torso.MoveToWorld(endTorsoLoc, map);

                CFire fire = new CFire();

                fire.Movable = true;
                fire.MoveToWorld(endTorsoLoc, map);
            }