public void Start_Slash(On.NailSlash.orig_StartSlash orig, NailSlash self) { if ((ad != AttackDirection.downward && !AmmunitionControl.reloading) && !AmmunitionControl.currAmmoType.AmmoName.Contains("Nail")) { StartCoroutine(CheckIfNull(HeroController.instance.cState.facingRight)); if (AmmunitionControl.currAmmoType.AmmoName.Contains("9MM")) { StartCoroutine(BurstFire(5)); } else if (AmmunitionControl.currAmmoType.AmmoName.Contains("5.56")) { StartCoroutine(BurstFire(3)); } else { HeroController.instance.spellControl.gameObject.GetComponent <AudioSource>() .PlayOneShot(LoadAssets.bulletSoundFX); AmmunitionControl.currAmmoType.CurrAmmo--; Schutz(ad); } if (AmmunitionControl.currAmmoType.CurrAmmo <= 0) { Modding.Logger.Log("START RELOADING NOW"); AmmunitionControl.reloading = true; } } else { orig(self); } }
public void OnSlash(On.NailSlash.orig_StartSlash orig, NailSlash self) { if (WeaponSwapHandler.currentWeapon == WeaponType.Melee) { orig(self); return; } }
public void OnSlash(On.NailSlash.orig_StartSlash orig, NailSlash self) { if (HP_WeaponHandler.currentGun.gunName == "Nail") { orig(self); return; } }
private void NailSlashOnStartSlash(On.NailSlash.orig_StartSlash orig, NailSlash self) { self.scale.x = 0.7f; self.scale.y = 0.7f; Reflection.SetAttr(self, "mantis", false); Reflection.SetAttr(self, "longnail", false); Reflection.SetAttr(self, "fury", false); orig(self); }
private void NailSlash_StartSlash(On.NailSlash.orig_StartSlash orig, NailSlash self) { orig(self); int i = Settings.charmCosts[0] - 2; if (PlayerData.instance.hasAllNailArts) { i++; } if (GlobalSettings.ULTRANAIL) { i = 6; } if (Settings.equippedCharms[0]) { self.gameObject.transform.localScale += new Vector3(self.scale.x * i / 2, self.scale.y * i / 2); } }
private void NailSlashOnStartSlash(On.NailSlash.orig_StartSlash orig, NailSlash self) { //Log("Nail slash on start slash run..."); //NailSlash if (_isUpSlashing) { self.scale.x = 0.9f; self.scale.y = 2.2f; } else { self.scale.x = 2.2f; self.scale.y = 0.9f; } ReflectionHelper.SetAttr(self, "mantis", false); ReflectionHelper.SetAttr(self, "longnail", false); ReflectionHelper.SetAttr(self, "fury", false); orig(self); }
public void Start_Slash(On.NailSlash.orig_StartSlash orig, NailSlash self) { if ((ad != AttackDirection.downward && !AmmunitionControl.reloading) && !AmmunitionControl.currAmmoType.AmmoName.Contains("Nail")) { //This coroutine starts a loop that will continue until the fireball object is instantiated, once it is it can then alter the fireball fsm if needed StartCoroutine(CheckIfNull(HeroController.instance.cState.facingRight)); AmmunitionControl.firing = true; if (AmmunitionControl.currAmmoType.AmmoName.Contains("9mm")) { StartCoroutine(BurstFire(5)); } else if (AmmunitionControl.currAmmoType.AmmoName.Contains("5.56")) { StartCoroutine(BurstFire(3)); } else if (AmmunitionControl.currAmmoType.AmmoName.Contains("Gauge")) { StartCoroutine(ShotgunFire(5)); } else { PlaySound(); AmmunitionControl.currAmmoType.CurrAmmo--; AmmunitionControl.firing = false; Schutz(ad); } if (AmmunitionControl.currAmmoType.CurrAmmo <= 0) { Modding.Logger.Log("START RELOADING NOW"); AmmunitionControl.reloading = true; } } else { orig(self); } }