// Token: 0x060028B5 RID: 10421 RVA: 0x000ACD1D File Offset: 0x000AAF1D public override void OnInstall() { base.OnInstall(); this.impBossBodyIndex = BodyCatalog.FindBodyIndex("ImpBossBody"); this.bfgProjectileIndex = ProjectileCatalog.FindProjectileIndex("BeamSphere"); GlobalEventManager.onCharacterDeathGlobal += this.OnCharacterDeath; }
public override void OnInstall() { base.OnInstall(); GenericGameEvents.OnTakeDamage += OnTakeDamage; projectileIndex = ProjectileCatalog.FindProjectileIndex("Sawmerang"); bodyIndex = BodyCatalog.FindBodyIndex("EquipmentDroneBody"); }
public override void OnInstall() { base.OnInstall(); this.fireProjIndex = ProjectileCatalog.FindProjectileIndex("ManipulatorBlinkFire"); this.lightningProjIndex = ProjectileCatalog.FindProjectileIndex("ManipulatorBlinkLightning"); this.iceProjIndex = ProjectileCatalog.FindProjectileIndex("ManipulatorBlinkIce"); this.requiredSkillDef = SkillCatalog.GetSkillDef(SkillCatalog.FindSkillIndexByName("Manipulator.Venting Step")); GlobalEventManager.onCharacterDeathGlobal += onCharacterDeathGlobal; RoR2Application.onFixedUpdate += FixedUpdate; }
public void SetupModdedProjectiles() { string[] moddedProjectileStrings = { // LUAFUBUKI - GAUSS // "Gauss0a", //"prefabs/Gauss/Gauss0a" // LUAFUBUKI - LUNAR CHIMERA // "Prefabs/Custom/LunarWispBall", "Prefabs/Custom/FirePillar", "Assets/Custom/SoulRocketProjectile", "Assets/Custom/LunarShardProjectile", //"Prefabs/Custom/MoonWave" // LUAFUBUKI - VOID REAVER // "Prefabs/Custom/ShortPortalBomb", // KOMRADESPECTRE - AETHERIUM // "JarOfReshapingProjectile", "SwordProjectile", // ZERODOMAI - TRISTANA // "Cannonball", "Explosiveball", "Blastball", // DUCKDUCKGREYDUCK - ARTIFICEREXTENDED // "ThunderProjectile", //Rolling Thunder "NapalmSpit", //Napalm projectile //Napalm decal thing: NapalmFire "ShockwaveZapCone", "NanometeorImpact", //Meteor "mageFireballInner", //Flame Burst 1 "mageFireballOuter", //Flame Burst 2 // HELTER2 - ARTIFICER2 // "mageIceBombClone", "mageLightningBombClone", // ROB - DIRESEEKER // "DireseekerBossFireball", "DireseekerBossGroundFireball", // ROB - MINER's DIRESEEKER // "DireseekerFireball", "DireseekerGroundFireball", // ROB - PLAYABLETEMPLAR // "TemplarGrenadeProjectile", "TemplarRocketProjectile", // ROB - PALADIN // "PaladinLunarShard", "LightningSpear", "PaladinSwordBeam", // ROB - TWITCH // "Prefabs/Projectiles/CrossbowBoltProjectile", "Prefabs/Projectiles/ExpungeProjectile", "Prefabs/Projectiles/VenomCaskProjectile", "Prefabs/Projectiles/TwitchBazookaProjectile", // RYANPALLESAN - EXPANDEDSKILLS // "magefireboltcopy", // THEMYSTICSWORD - ASPECTABILITIES // "AspectAbilitiesFireMissile", // ENIGMA - CLOUDBURST // "MIRVEquipmentProjectile", "MIRVClusterEquipmentProjectile", "OverchargedProjectile", "BombardierRocketProjectile", "BombardierFireRocketProjectile", "BombardierSeekerRocketProjectile", // THINKINVIS - CLASSICITEMS // "CIScepCommandoGrenade", "CIScepLoaderThundercrash", // CHEN - CLASSICITEMS // //"InstantMine", drops at feet //"PanicMine", //"FootMine", "MortarProjectile", // STARSTORM // "NemmandoSwordBeam", "ChirrDart", "CyborgbfgProjectile", "WayfarerChainProjectile", "NucleatorProjectile" }; _logger.LogMessage("[Risk of Bulletstorm] Projectile Whitelist: Adding modded projectiles."); int moddedProjectilesAdded = 0; foreach (string projectileString in moddedProjectileStrings) { var projectileIndex = ProjectileCatalog.FindProjectileIndex(projectileString); //failures to find defaults to -1 if (projectileIndex > 0) { WhitelistedProjectiles.Add(ProjectileCatalog.GetProjectilePrefab(projectileIndex)); _logger.LogMessage("[Risk of Bulletstorm] Projectile Whitelist: Added projectile = " + projectileString); moddedProjectilesAdded++; } } _logger.LogMessage("[Risk of Bulletstorm] Projectile Whitelist: Added " + moddedProjectilesAdded + " modded projectiles."); }