Ejemplo n.º 1
0
        protected override bool Run()
        {
            Kill.Definition definition = base.InteractionDefinition as Kill.Definition;
            Sim             actor      = this.Actor;
            Sim             target     = this.Target;

            this.Target.InteractionQueue.CancelAllInteractions();
            {
                this.Actor.RouteTurnToFace(this.Target.Position);
                this.Target.RouteTurnToFace(this.Actor.Position);
                base.StandardEntry();
                base.AcquireStateMachine("social_fight");
                base.EnterStateMachine("social_fight", "Enter", "x", "y");
                base.SetActor("x", this.Actor);
                base.SetActor("y", this.Target);
                base.AnimateJoinSims("init");
                base.AnimateSim("Steamed");
                VTBlood.SetMakeup(this.Actor);
                VTConversion.SetMakeup(this.Target);
                VTConversion.SetMakeup(this.Actor);
                base.StandardExit();
                {
                    OthersKill.VampVictimDeath(this.Actor, this.Target);
                    OthersKill.SetDeathMoodlets();
                    Simulator.Sleep(50u);
                    OthersKill.VampireDrinkSuccess(this.Actor, this);
                    OthersKill.setSkillPoints(this.Actor);
                }
            }
            return(true);
        }
Ejemplo n.º 2
0
 public static void OnWorldLoadFinishedHandler(object sender, EventArgs e)
 {
     try
     {
         if (GameUtils.IsInstalled(ProductVersion.EP7) || GameUtils.IsInstalled(ProductVersion.EP3))
         {
             Instantiator.AddInteractionsToCityHall();
             if (Instantiator.pInteractionsActive)
             {
                 Instantiator.AddAllInteractionsForSims();
                 Instantiator.AddAllInteractionsForUrnstones();
                 Instantiator.AddAllInteractionsForHospitals();
             }
             if (Instantiator.pBloodActive)
             {
                 VTBlood.OnWorldLoadFinishedHandler();
             }
             if (Instantiator.pBiteMarkActive)
             {
                 VTBiteMark.OnWorldLoadFinishedHandler();
             }
             if (Instantiator.pThirstActive)
             {
                 VTThirst.OnWorldLoadFinishedHandler();
             }
             if (Instantiator.pConversionActive)
             {
                 VTConversion.OnWorldLoadFinishedHandler();
             }
             if (!Instantiator.pLoadNotificationDeActived)
             {
                 StyledNotification.Show(new StyledNotification.Format("Loaded Vampire Tweaker correctly without any errors", StyledNotification.NotificationStyle.kSystemMessage));
                 SimpleMessageDialog.Show("Vampire Tweaker", "Every functionality of the mod is deactivated, please, consider to go to City Hall>Vampire Tweaker... to customize the mod with a easy method and disable this message and the notification to load on start. Anything won´t work if you don´t active in the City Hall the function.");
                 if (!GameUtils.IsInstalled(ProductVersion.EP7))
                 {
                     StyledNotification.Show(new StyledNotification.Format("We have detected you haven´t installed Supernatural EP. Some functionalities of the mod requires this expansion, but it won´t generate any conflicts. The functionalities will be activated the first time you install Supernatural EP", StyledNotification.NotificationStyle.kSystemMessage));
                 }
             }
             if (!Instantiator.pBuffActive)
             {
                 sBuffSparkleDisable = EventTracker.AddListener(EventTypeId.kGotBuff, new ProcessEventDelegate(EnableSparkle.OnGotBuff));
             }
         }
         if (!GameUtils.IsInstalled(ProductVersion.EP7) || !GameUtils.IsInstalled(ProductVersion.EP3))
         {
             SimpleMessageDialog.Show("Vampire Tweaker", "It seems you haven´t installed any expansion of Vampires (Late Night or Supernatural). The mod is deactivated and any function won´t work. Upgrade the Expansion Pack or install it. If you won´t install any expansion, you should remove this mod, it isn´t useful for you without the EPs.");
         }
     }
     catch (Exception exception)
     {
         Instantiator.Exception(exception);
         StyledNotification.Show(new StyledNotification.Format("Failed to load Vampire Tweaker things. Error generated by fer456.VampireTweaker.Interactions.dll into VampireTweaker.ModInitiatorAndHandler.Instantiator || See info below and in Documents_Electronic Arts_The Sims 3" + exception, StyledNotification.NotificationStyle.kDebugAlert));
     }
 }
Ejemplo n.º 3
0
 protected override bool Run()
 {
     Instantiator.pConversionActive = !Instantiator.pConversionActive;
     if (Instantiator.pConversionActive)
     {
         VTConversion.OnWorldLoadFinishedHandler();
         SimpleMessageDialog.Show("Vampire Tweaker - Conversion Effect", "Conversion is enabled succesfully.");
     }
     else
     {
         SimpleMessageDialog.Show("Vampire Tweaker - Conversion Effect", "Disabling conversion, please be patient, it will take a while...");
         VTConversion.RemoveMakeupFromToggle();
     }
     return(true);
 }
Ejemplo n.º 4
0
 public static int CleanMakeup()
 {
     try
     {
         VTBlood.cleanVampFaces(true);
         VTThirst.cleanVampFaces(true);
         VTBiteMark.cleanHumanNecks(true);
         VTConversion.cleanBodys(true);
     }
     catch (Exception exception)
     {
         SimpleMessageDialog.Show("Vampire Tweaker - Uninstalling Wizard", "An error is ocurred when uninstalling. Check notification bar");
         StyledNotification.Show(new StyledNotification.Format("Failed the uninstall process in the removal of the makeup. Retry the uninstall. If you get the same error, run the command VampireTweaker_UninstallHelp to get more information \n" + exception, StyledNotification.NotificationStyle.kDebugAlert));
     }
     return(1);
 }