Skip to content

Commit

Permalink
Remove stat clocks, add killstreak_tier (Hope this is correct, i'd ha…
Browse files Browse the repository at this point in the history
…ve to check the source though)
  • Loading branch information
SDarkra1 committed Oct 9, 2023
1 parent eda6acf commit ac15d11
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
16 changes: 14 additions & 2 deletions resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,13 @@
704: "Energy Orb",
};

const tierOptions = {
0: "None",
1: "Basic",
2: "Specialized",
3: "Professional"
}

const sheenOptions = {
0: "None",
1: "Team shine",
Expand Down Expand Up @@ -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},
Expand Down Expand Up @@ -872,6 +879,11 @@ <h4>Weapon: <span id="weapon">None</span></h4>
$list.append(`<option value="${key}">${unusualOptions[key]}</option>`);
}
}
if (name == "killstreak_tier") {
for (let key in tierOptions) {
$list.append(`<option value="${key}">${tierOptions[key]}</option>`);
}
}
if (name == "killstreak_idleeffect") {
for (let key in sheenOptions) {
$list.append(`<option value="${key}">${sheenOptions[key]}</option>`);
Expand Down Expand Up @@ -1011,8 +1023,8 @@ <h4>Weapon: <span id="weapon">None</span></h4>
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));
Expand Down
6 changes: 3 additions & 3 deletions src/app/SkinChanger/SkinChanger.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit ac15d11

Please sign in to comment.