From ac15d11dcc9274786b1b07608bb610169ce49493 Mon Sep 17 00:00:00 2001 From: SDarkrai <77647231+SDarkra1@users.noreply.github.com> Date: Mon, 9 Oct 2023 07:10:16 -0600 Subject: [PATCH] Remove stat clocks, add killstreak_tier (Hope this is correct, i'd have to check the source though) --- resources/index.html | 16 ++++++++++++++-- src/app/SkinChanger/SkinChanger.h | 6 +++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/resources/index.html b/resources/index.html index 1a25042..4d486bb 100644 --- a/resources/index.html +++ b/resources/index.html @@ -673,6 +673,13 @@ 704: "Energy Orb", }; + const tierOptions = { + 0: "None", + 1: "Basic", + 2: "Specialized", + 3: "Professional" + } + const sheenOptions = { 0: "None", 1: "Team shine", @@ -705,10 +712,10 @@ 370: { name: "set_attached_particle_static", label: "Unusual effect 2", type: 3 }, 134: { name: "set_attached_particle", label: "Unusual effect 1", type: 3 }, 2053: { name: "is_festivized", label: "Festivized", type: 1 }, - 719: { name: "weapon_uses_stattrak_module", label: "Festivized", type: 1 }, 2027: { name: "is_australium_item", label: "Australium", type: 1 }, 2022: { name: "loot_rarity", label: "Loot rarity", type: 1 }, 542: { name: "item_style_override", label: "Item style override", type: 1 }, + 2025: { name: "killstreak_tier", label: "Killstreak tier", type: 3 }, 2014: { name: "killstreak_idleeffect", label: "Killstreak sheen", type: 3 }, 2013: { name: "killstreak_effect", label: "Killstreak effect", type: 3 }, 1007: { name: "halloween_pumpkin_explosions", label: "Pumpkin Bombs", type: 1}, @@ -872,6 +879,11 @@

Weapon: None

$list.append(``); } } + if (name == "killstreak_tier") { + for (let key in tierOptions) { + $list.append(``); + } + } if (name == "killstreak_idleeffect") { for (let key in sheenOptions) { $list.append(``); @@ -1011,8 +1023,8 @@

Weapon: None

attributes.append(createAttributeButton("Unusual effect 1", "set_attached_particle", 134, 3)); attributes.append(createAttributeButton("Unusual effect 2", "set_attached_particle_static", 370, 3)); attributes.append(createAttributeButton("Festivized", "is_festivized", 2053, 1)); - attributes.append(createAttributeButton("Stat Clock", "weapon_uses_stattrak_module", 719, 1)); attributes.append(createAttributeButton("Australium", "is_australium_item", 2027, 1)); + attributes.append(createAttributeButton("Killstreak Tier", "killstreak_tier", 2025, 3)); // I assume that 1=basic, 2=specialized, and 3=professional, although it could be a bool attributes.append(createAttributeButton("Item style override", "item_style_override", 542, 1)); attributes.append(createAttributeButton("Killstreak sheen", "killstreak_idleeffect", 2014, 3)); attributes.append(createAttributeButton("Killstreak effect", "killstreak_effect", 2013, 3)); diff --git a/src/app/SkinChanger/SkinChanger.h b/src/app/SkinChanger/SkinChanger.h index c733d22..ea20914 100644 --- a/src/app/SkinChanger/SkinChanger.h +++ b/src/app/SkinChanger/SkinChanger.h @@ -14,11 +14,11 @@ namespace attributes constexpr uint16_t set_attached_particle_static = 370; constexpr uint16_t set_attached_particle = 134; constexpr uint16_t is_festivized = 2053; - constexpr uint16_t weapon_uses_stattrak_module = 719; constexpr uint16_t is_australium_item = 2027; constexpr uint16_t loot_rarity = 2022; constexpr uint16_t item_style_override = 542; - constexpr uint16_t set_turn_to_gold = 150; + constexpr uint16_t killstreak_tier = 2025; + constexpr uint16_t killstreak_effect = 2013; constexpr uint16_t killstreak_effect = 2013; constexpr uint16_t killstreak_idleeffect = 2014; constexpr uint16_t halloween_pumpkin_explosions = 1007; @@ -44,11 +44,11 @@ namespace attributes HashCase(set_attached_particle_static); HashCase(set_attached_particle); HashCase(is_festivized); - HashCase(weapon_uses_stattrak_module); HashCase(is_australium_item); HashCase(loot_rarity); HashCase(item_style_override); HashCase(set_turn_to_gold); + HashCase(killstreak_tier); HashCase(killstreak_effect); HashCase(killstreak_idleeffect); HashCase(halloween_pumpkin_explosions);