public TPOneDataBlock() { name = "PocketWarp 1"; var texture = new Texture2D(2, 2, TextureFormat.RGBA32, false); texture.LoadImage(File.ReadAllBytes(RustBuster2016.API.Hooks.GameDirectory + "\\RB_Data\\CustomItems\\TPOne.png")); iconTex = texture; _maxUses = 5; _spawnUsesMin = 1; _spawnUsesMax = 1; _minUsesForDisplay = 1; _maxCondition = 100; _splittable = true; _itemFlags = 0; isResearchable = false; isRepairable = false; isRecycleable = false; doesLoseCondition = false; category = ItemCategory.Tools; Combinations = new CombineRecipe[0]; transientMode = 0; var type = GetType().BaseType.BaseType; var uniqueIDField = type.GetField("_uniqueID", BindingFlags.NonPublic | BindingFlags.Instance); uniqueIDField.SetValue(this, 134481356); }
public ParachuteDataBlock() { name = "Parachute"; itemDescriptionOverride = "Use it to toggle the parachute!"; var texture = new Texture2D(2, 2, TextureFormat.RGBA32, false); texture.LoadImage(File.ReadAllBytes(Util.GetRootFolder() + "\\Save\\CustomItems\\Parachute.png")); iconTex = texture; _maxUses = 1; _spawnUsesMin = 1; _spawnUsesMax = 1; _minUsesForDisplay = 1; _maxCondition = 100; _splittable = true; _itemFlags = 0; isResearchable = false; isRepairable = false; isRecycleable = false; doesLoseCondition = false; category = ItemCategory.Tools; Combinations = new CombineRecipe[0]; transientMode = 0; var type = GetType().BaseType.BaseType; var uniqueIDField = type.GetField("_uniqueID", BindingFlags.NonPublic | BindingFlags.Instance); uniqueIDField.SetValue(this, 134481360); }
public InstantHealthItemDataBlock() { name = "Adrenaline Rush"; var texture = new Texture2D(2, 2, TextureFormat.RGBA32, false); texture.LoadImage(File.ReadAllBytes(Util.GetRootFolder() + "\\Save\\CustomItems\\InstantHealth.png")); iconTex = texture; _maxUses = 8; _spawnUsesMin = 1; _spawnUsesMax = 1; _minUsesForDisplay = 1; _maxCondition = 100; _splittable = true; _itemFlags = 0; isResearchable = false; isRepairable = false; isRecycleable = false; doesLoseCondition = false; category = ItemCategory.Medical; Combinations = new CombineRecipe[0]; transientMode = 0; amountToHeal = 25; stopsBleeding = true; var type = GetType().BaseType.BaseType.BaseType; var uniqueIDField = type.GetField("_uniqueID", BindingFlags.NonPublic | BindingFlags.Instance); uniqueIDField.SetValue(this, 134481339); }
public JointDataBlock() { name = "Joint"; var texture = new Texture2D(2, 2, TextureFormat.RGBA32, false); texture.LoadImage(File.ReadAllBytes(Hooks.GameDirectory + "\\RB_Data\\CustomItems\\Joint.png")); iconTex = texture; _maxUses = 5; _spawnUsesMin = 1; _spawnUsesMax = 1; _minUsesForDisplay = 1; _maxCondition = 100; _splittable = true; _itemFlags = 0; isResearchable = false; isRepairable = false; isRecycleable = false; doesLoseCondition = false; category = ItemCategory.Medical; UsedSound = new WWW( "file://" + Hooks.GameDirectory + "\\RB_Data\\CustomItems\\JointUsed.ogg") .GetAudioClip(true); Combinations = new CombineRecipe[0]; transientMode = 0; var type = GetType().BaseType.BaseType; var uniqueIDField = type.GetField("_uniqueID", BindingFlags.NonPublic | BindingFlags.Instance); uniqueIDField.SetValue(this, 134481436); }
public AVXDollarDataBlock() { name = "NR Dollar"; itemDescriptionOverride = "You can use the NR Dollars in the shops."; var texture = new Texture2D(2, 2, TextureFormat.RGBA32, false); texture.LoadImage(File.ReadAllBytes(RustBuster2016.API.Hooks.GameDirectory + "\\RB_Data\\CustomItems\\AVXDollar.png")); iconTex = texture; _maxUses = 250; _spawnUsesMin = 1; _spawnUsesMax = 1; _minUsesForDisplay = 1; _maxCondition = 100; _splittable = true; _itemFlags = 0; isResearchable = false; isRepairable = false; isRecycleable = false; doesLoseCondition = false; category = ItemCategory.Misc; Combinations = new CombineRecipe[0]; transientMode = 0; var type = GetType().BaseType.BaseType; var uniqueIDField = type.GetField("_uniqueID", BindingFlags.NonPublic | BindingFlags.Instance); uniqueIDField.SetValue(this, 134481350); }
public TurretBlueprintDataBlock() { name = "Turret Blueprint"; icon = "content/item/tex/BlueprintIcon"; _maxUses = 1; _spawnUsesMin = 1; _spawnUsesMax = 1; _minUsesForDisplay = 1; _maxCondition = 100; _splittable = false; isResearchable = false; isRepairable = false; isRecycleable = true; doesLoseCondition = false; category = ItemCategory.Blueprint; Combinations = new CombineRecipe[0]; transientMode = 0; resultItem = DatablockDictionary.GetByName("Turret"); numResultItem = 1; ingredients = new[] { new IngredientEntry { Ingredient = DatablockDictionary.GetByName("556 Ammo"), amount = 500 }, new IngredientEntry { Ingredient = DatablockDictionary.GetByName("Iron Shards"), amount = 500 }, new IngredientEntry { Ingredient = DatablockDictionary.GetByName("Batteries"), amount = 8 }, new IngredientEntry { Ingredient = DatablockDictionary.GetByName("Electronic Junk"), amount = 10 }, new IngredientEntry { Ingredient = DatablockDictionary.GetByName("Copper"), amount = 8 }, new IngredientEntry { Ingredient = DatablockDictionary.GetByName("Diamonds"), amount = 50 } }; craftingDuration = 8; RequireWorkbench = true; var type = GetType().BaseType.BaseType.BaseType.BaseType; var uniqueIDField = type.GetField("_uniqueID", BindingFlags.NonPublic | BindingFlags.Instance); uniqueIDField.SetValue(this, 134481426); }
public LandmineBlueprintDataBlock() { name = "Landmine Blueprint"; icon = "content/item/tex/BlueprintIcon"; _maxUses = 1; _spawnUsesMin = 1; _spawnUsesMax = 1; _minUsesForDisplay = 1; _maxCondition = 100; _splittable = false; isResearchable = false; isRepairable = false; isRecycleable = true; doesLoseCondition = false; category = ItemCategory.Blueprint; Combinations = new CombineRecipe[0]; transientMode = 0; resultItem = CustomItems.Items.Find(i => i.name == "Landmine"); numResultItem = 1; ingredients = new[] { new IngredientEntry { Ingredient = CustomItems.Items.Find(i => i.name == "F1 Grenade"), amount = 4 }, new IngredientEntry { Ingredient = CustomItems.Items.Find(i => i.name == "Flare"), amount = 1 }, new IngredientEntry { Ingredient = CustomItems.Items.Find(i => i.name == "Iron Shards"), amount = 100 }, new IngredientEntry { Ingredient = CustomItems.Items.Find(i => i.name == "Electronic Junk"), amount = 4 }, new IngredientEntry { Ingredient = CustomItems.Items.Find(i => i.name == "Gunpowder"), amount = 100 }, new IngredientEntry { Ingredient = CustomItems.Items.Find(i => i.name == "Batteries"), amount = 2 }, }; craftingDuration = 8; RequireWorkbench = true; var type = GetType().BaseType.BaseType.BaseType.BaseType; var uniqueIDField = type.GetField("_uniqueID", BindingFlags.NonPublic | BindingFlags.Instance); uniqueIDField.SetValue(this, 134481387); }
public ModifiedM4DataBlock() { name = "AbsolomM4"; var texture = new Texture2D(2, 2, TextureFormat.RGBA32, false); texture.LoadImage(File.ReadAllBytes(Util.GetRootFolder() + "\\Save\\CustomItems\\AbsolomM4.png")); iconTex = texture; category = ItemCategory.Weapons; Combinations = new CombineRecipe[0]; _maxCondition = 200; _maxUses = 50; _splittable = false; _spawnUsesMin = 1; _spawnUsesMax = 1; _minUsesForDisplay = 1; _itemFlags = 0; isResearchable = false; isRepairable = false; isRecycleable = false; doesLoseCondition = true; secondaryFireAims = true; aimSensitivtyPercent = 0.400000006f; attachmentPoint = "RArmHand"; animationGroupName = "rifle"; isSemiAuto = false; fireRate = 0.075f; fireRateSecondary = 0.5f; deployLength = 0.7f; damageMin = 24; damageMax = 28; maxClipAmmo = 50; fireSoundRange = 300; bulletRange = 140; recoilPitchMin = 2; recoilPitchMax = 5; recoilYawMin = -3; recoilYawMax = 3; recoilDuration = 0.100000003f; aimingRecoilSubtract = 0.25f; crouchRecoilSubtract = 0.100000003f; reloadDuration = 1.5f; maxEligableSlots = 5; NoAimingAfterShot = false; aimSway = 0.5f; aimSwaySpeed = 1; var type = this.GetType().BaseType.BaseType.BaseType.BaseType.BaseType; var uniqueIDField = type.GetField("_uniqueID", BindingFlags.NonPublic | BindingFlags.Instance); uniqueIDField.SetValue(this, 134481337); }
public LootboxBlueprintDataBlock() { name = "Lootbox Blueprint"; icon = "content/item/tex/BlueprintIcon"; _maxUses = 1; _spawnUsesMin = 1; _spawnUsesMax = 1; _minUsesForDisplay = 1; _maxCondition = 100; _splittable = false; isResearchable = false; isRepairable = false; isRecycleable = true; doesLoseCondition = false; category = ItemCategory.Blueprint; Combinations = new CombineRecipe[0]; transientMode = 0; resultItem = DatablockDictionary.GetByName("Lootbox"); numResultItem = 1; ingredients = new[] { new IngredientEntry { Ingredient = DatablockDictionary.GetByName("Low Quality Metal"), amount = 20 }, new IngredientEntry { Ingredient = DatablockDictionary.GetByName("Leather"), amount = 80 }, new IngredientEntry { Ingredient = DatablockDictionary.GetByName("Metal Fragments"), amount = 80 }, new IngredientEntry { Ingredient = DatablockDictionary.GetByName("Gunpowder"), amount = 70 } }; craftingDuration = 8; RequireWorkbench = true; var type = GetType().BaseType.BaseType.BaseType.BaseType; var uniqueIDField = type.GetField("_uniqueID", BindingFlags.NonPublic | BindingFlags.Instance); uniqueIDField.SetValue(this, 134481383); }
public InstantHealthBlueprintDataBlock() { name = "Adrenaline Rush Blueprint"; icon = "content/item/tex/BlueprintIcon"; _maxUses = 1; _spawnUsesMin = 1; _spawnUsesMax = 1; _minUsesForDisplay = 1; _maxCondition = 100; _splittable = false; isResearchable = false; isRepairable = false; isRecycleable = true; doesLoseCondition = false; category = ItemCategory.Blueprint; Combinations = new CombineRecipe[0]; transientMode = 0; resultItem = DatablockDictionary.GetByName("Adrenaline Rush"); numResultItem = 2; var ingredient1 = new IngredientEntry { Ingredient = DatablockDictionary.GetByName("Cloth"), amount = 3 }; var ingredient2 = new IngredientEntry { Ingredient = DatablockDictionary.GetByName("Blood"), amount = 3 }; var ingredient3 = new IngredientEntry { Ingredient = DatablockDictionary.GetByName("Small Rations"), amount = 1 }; var ingredient4 = new IngredientEntry { Ingredient = DatablockDictionary.GetByName("Large Medkit"), amount = 2 }; ingredients = new IngredientEntry[] { ingredient1, ingredient2, ingredient3, ingredient4 }; craftingDuration = 8; RequireWorkbench = true; var type = GetType().BaseType.BaseType.BaseType.BaseType; var uniqueIDField = type.GetField("_uniqueID", BindingFlags.NonPublic | BindingFlags.Instance); uniqueIDField.SetValue(this, 134481340); }
public AbsolomM4BlueprintDataBlock() { name = "AbsolomM4 Blueprint"; icon = "content/item/tex/BlueprintIcon"; _maxUses = 1; _spawnUsesMin = 1; _spawnUsesMax = 1; _minUsesForDisplay = 1; _maxCondition = 100; _splittable = false; isResearchable = false; isRepairable = false; isRecycleable = true; doesLoseCondition = false; category = ItemCategory.Blueprint; Combinations = new CombineRecipe[0]; transientMode = 0; resultItem = CustomItems.Items.Find(i => i.name == "AbsolomM4"); numResultItem = 1; ingredients = new[] { new IngredientEntry { Ingredient = CustomItems.Items.Find(i => i.name == "Low Quality Metal"), amount = 30 }, new IngredientEntry { Ingredient = CustomItems.Items.Find(i => i.name == "Copper"), amount = 5 }, new IngredientEntry { Ingredient = CustomItems.Items.Find(i => i.name == "Iron Shards"), amount = 400 } }; craftingDuration = 8; RequireWorkbench = true; var type = GetType().BaseType.BaseType.BaseType.BaseType; var uniqueIDField = type.GetField("_uniqueID", BindingFlags.NonPublic | BindingFlags.Instance); uniqueIDField.SetValue(this, 134481400); }
public CopperDataBlock() { name = "Copper"; var texture = new Texture2D(2, 2, TextureFormat.RGBA32, false); texture.LoadImage(File.ReadAllBytes(Hooks.GameDirectory + "\\RB_Data\\CustomItems\\Copper.png")); iconTex = texture; category = ItemCategory.Tools; Combinations = new CombineRecipe[0]; _maxCondition = 100; _maxUses = 250; _splittable = true; var type = GetType().BaseType.BaseType; var uniqueIDField = type.GetField("_uniqueID", BindingFlags.NonPublic | BindingFlags.Instance); uniqueIDField.SetValue(this, 134481393); }
public RespawnFlagDataBlock() { name = "Respawn Flag"; var texture = new Texture2D(2, 2, TextureFormat.RGBA32, false); texture.LoadImage(File.ReadAllBytes(Util.GetRootFolder() + "\\Save\\CustomItems\\RespawnFlag.png")); iconTex = texture; category = ItemCategory.Tools; Combinations = new CombineRecipe[0]; _maxCondition = 100; _maxUses = 1; _splittable = true; var type = GetType().BaseType.BaseType; var uniqueIDField = type.GetField("_uniqueID", BindingFlags.NonPublic | BindingFlags.Instance); uniqueIDField.SetValue(this, 134481388); }
public TurretDamageExtension() { name = "Turret Damage Extension"; var texture = new Texture2D(2, 2, TextureFormat.RGBA32, false); texture.LoadImage(File.ReadAllBytes(RustBuster2016.API.Hooks.GameDirectory + "\\RB_Data\\CustomItems\\TurretDamageExtension.png")); iconTex = texture; category = ItemCategory.Tools; Combinations = new CombineRecipe[0]; _maxCondition = 100; _maxUses = 10; _splittable = true; var type = GetType().BaseType.BaseType; var uniqueIDField = type.GetField("_uniqueID", BindingFlags.NonPublic | BindingFlags.Instance); uniqueIDField.SetValue(this, 134481435); }