nosoop / SM-TFCustomWeaponsX

SourceMod plugin that allows players to use custom TF2 items.
GNU General Public License v3.0
21 stars 11 forks source link

CWX alters clip on forced respawns #56

Closed PonyPhreak closed 1 year ago

PonyPhreak commented 1 year ago

Environment

Linux; Debian SourceMod 1.12.0.6985, cwx_version" = "X.0.10-4396d59"

Description

I have a simple BFB reskin that I'm running through CWX- However, on forced respawns, the weapon ends with 6 maximum rounds in its clip, instead of the usual 4. Reloading rounds 5 & 6 have stuttered animations. This gives an unfair and unintended advantage over traditional variants.

The following respawn events trigger the issue if the item is equipped prior:

The following do not influence the weapon's max clip size:

The only found fixes: - All fixes are temporary, triggers still cause the bug to reapply

Steps to replicate

Create a cwx BFB- No custom attributes needed.

        "{40e7b3a1-30d6-43b5-8f94-2e0e5a14366d}"
        {
            "name"          "custom BFB skin test"
            "inherits"      "Baby Face's Blaster"
                "keep_static_attrs"     "1"

                "attributes_game"
            {
            }

            "attributes_custom"
            {
            }

        }

Load a map, join a team, and equip the custom BFB through CWX. Once Waiting for players ends- your BFB will have 6 rounds in it.

Other information

] sm exts list; sm plugins list;
 "Automatic Updater" (1.12.0.6985) by AlliedModders LLC: Updates SourceMod gamedata files
 "Webternet" (1.12.0.6985) by AlliedModders LLC: Extension for interacting with URLs
 "TF2Items" (1.6.3) by Asherkin & AzuiSleet & Damizean: TF2 Item Modifier
 "TF2 CalculateMaxSpeed Detour" (1.0.4) by nosoop: Allows overriding max speed results
 "Accelerator" (2.5.0) by Asher "asherkin" Baker: SRCDS Crash Handler
 "TF2 Tools" (1.12.0.6985) by AlliedModders LLC: TF2 extended functionality
 "BinTools" (1.12.0.6985) by AlliedModders LLC: Low-level C/C++ Calling API
 "SDK Hooks" (1.12.0.6985) by AlliedModders LLC: Source SDK Hooks
 "SDK Tools" (1.12.0.6985) by AlliedModders LLC: Source SDK Tools
 "DHooks" (1.12.0.6910) by AlliedModders LLC: Dynamic Hooks
 "Source Scramble" (0.7.0) by nosoop: Tools for working with memory.
 "Regex" (1.12.0.6985) by AlliedModders LLC: Provides regex natives for plugins
 "Top Menus" (1.12.0.6985) by AlliedModders: Creates sorted nested menus
 "TF2 Econ Dynamic" (0.1.0) by nosoop: Injects user-defined content into the game schema
 "Client Preferences" (1.12.0.6985) by AlliedModders: Saves client preference settings
 "SQLite" (1.12.0.6985) by AlliedModders LLC: SQLite Driver
 "REST in Pawn" (1.3.1) by Tsunami: Provides HTTP and JSON natives for plugins
 "proxysend" (0.1.0.7) by Arthurdead: proxysend
 "SteamWorks Extension" (1.2.3) by Kyle Sanderson: Exposes SteamWorks functions to Developers
 "SMJansson" (2.3.1/3) by Thrawn2: JSON parser/writer
 "Project: Overtime - Sniper Rifle Attributes On Full Charge" (8b75090) by nosoop
 "Project: Overtime - Build Speed Modifiers" (8b75090) by nosoop
 "[TF2CA] Custom Weapons Config Adapter for Custom Attributes" (1.2.2) by nosoop
 "[TF2] Custom Attribute Debugger" (1.0.0) by nosoop
 "[TF2] OnTakeDamage Hooks" (1.3.1) by nosoop
 "Project: Overtime - Mad Milk Heal Scaling" (8b75090) by nosoop
 "Project: Overtime - Explode on Ignite Mod" (8b75090) by nosoop
 "Project: Overtime - Healing Debuff Removal" (6d30c16) by NotnHeavy
 "Project: Overtime - Mult Repressurization Rate" (8b75090) by nosoop
 "Project: Overtime - Dynamic Quick Fix Healing" (8b75090) by nosoop
 "Admin File Reader" (1.12.0.6985) by AlliedModders LLC
 "Project: Overtime - Item Server Down" (919b979) by NotnHeavy
 "Project: Overtime - Cannot Oneshot" (8b75090) by nosoop
 "[TF2] Custom Weapons X - Equip Commands" (1.1.0) by nosoop
 "Project: Overtime - Grenade Detonate on Impact" (8b75090) by Bakugo
 "Project: Overtime - Mod Engineer Build Setup Time" (8b75090) by nosoop
 "Project: Overtime - Mult DmgTaken Cloaked" (8b75090) by nosoop
 "Project: Overtime - Damage Tweak" (6d30c16) by NotnHeavy
 "Nextmap" (1.12.0.6985) by AlliedModders LLC
 "Project: Overtime - Radial Heal On Banner Deploy" (8b75090) by nosoop
 "Project: Overtime - Add Building Unsap Disable Time" (8b75090) by nosoop
 "Project: Overtime - Healing Source Modifiers" (8b75090) by nosoop
 "Custom Weapons 3: YoNer's Attributes" (2.1) by YoNer, code repurposed from basic-attributes plugin by MasterOfTheXP and TriggerCommands plugin by Chase
 "Project: Overtime - Jar Mod Duration" (8b75090) by nosoop
 "Project: Overtime - Sapper Replace Cooldown" (8b75090) by nosoop
 "[TF2] TF2 Attribute Extended Support" (1.14.1) by nosoop
 "Basic Chat" (1.12.0.6985) by AlliedModders LLC
 "Improved Pause Command" (1.5.0) by Aad
 "Fulcrum" (1.4.1) by nosoop
 "Admin Menu" (1.12.0.6985) by AlliedModders LLC
 "Project: Overtime - Arrows Heal Buildings Mod" (8b75090) by nosoop
 "Reserved Slots" (1.12.0.6985) by AlliedModders LLC
 "Project: Overtime - Add Attribute On Reload" (8b75090) by nosoop
 "Project: Overtime - Scattergun Uses Cray Knockback" (8b75090) by nosoop
 "Project: Overtime - Lerp Active Move Speed" (8b75090) by nosoop
 "Project: Overtime - Apply Wet Effect" (8b75090) by nosoop
 "Project: Overtime - Attribute Effect Scaled on Health" (8b75090) by nosoop
 "Project: Overtime - Sapper Armor" (6d30c16) by NotnHeavy
 "Project: Overtime - Crit Behind Player" (8b75090) by NotnHeavy
 "TF2 Utils" (1.3.2) by nosoop
 "Project: Overtime - Stickybomb Radius Reduced Arm Time" (8b75090) by nosoop
 "Client Preferences" (1.12.0.6985) by AlliedModders LLC
 "Project: Overtime - Melts in Fire Modifier" (8b75090) by nosoop
 "Project: Overtime - Fire Rate Tick Fix" by nosoop
 "Basic Commands" (1.12.0.6985) by AlliedModders LLC
 "Basic Ban Commands" (1.12.0.6985) by AlliedModders LLC
 "Project: Overtime - Repair Mult From Others" (8b75090) by nosoop
 "HUD Overlay Material Generator Attribute" (0.1.0) by nosoop
 "Project: Overtime - aiming_no_flinch_at_threshold" (8b75090) by nosoop
 "Project: Overtime - mult_ammo_from_sources" (8b75090) by nosoop
 "Project: Overtime - cannot_backstab" (8b75090) by nosoop
 "Project: Overtime - add_health_regen_const" (8b75090) by nosoop
 "Project: Overtime - Attribute" (8b75090) by nosoop
 "Project: Overtime - Mult Sentry Turn Speed" (8b75090) by nosoop
 "Project: Overtime - Flying Guillotine Mod" (8b75090) by nosoop
 "Project: Overtime - Electrical Airblast" (8b75090) by nosoop
 "[TF2] Custom Attribute : Replace Sound" (1.0) by Mir
 "Project: Overtime - Charge Launch Windows" (6d30c16) by nosoop
 "Chat Forwarder" (0.0.1) by nosoop
 "Project: Overtime - Mult Sentry Rocket Post Fire Delay" (8b75090) by nosoop
 "Project: Overtime - Dynamic Repair Rates" (8b75090) by nosoop
 "Auto File Loader" (1.0.3) by Keith Warren (Shaders Allen)
 "Project: Overtime - Spy Backstab Instakill Cooldown" (8b75090) by nosoop
 "Project: Overtime - Wrangler Mod" (8b75090) by nosoop
 "Project: Overtime - Falling Stomp While Active" (8b75090) by nosoop
 "Player Commands" (1.12.0.6985) by AlliedModders LLC
 "Project: Overtime - Sapper Highlights Buildings" (8b75090) by Bakugo
 "tf2rue" (0.0.5) by https://sappho.io
 "Project: Overtime - Classic Charge Display" (8b75090) by nosoop
 "Project: Overtime - Mult Boots Falling Stomp" (8b75090) by nosoop
 "Custom Weapons: More Advanced Weaponiser 2 Attributes" (1.04) by Orion && the AW2 dev team
 "Project: Overtime - Attribute" (8b75090) by nosoop
 "Project: Overtime - Scope Crit Arm Time" (8b75090) by nosoop
 "Project: Overtime - Mult Dmgtaken From Fall" (8b75090) by nosoop
 "Custom Status HUD" (1.1.1) by nosoop
 "Project: Overtime - Reload While Holstered" (8b75090) by nosoop
 "Project: Overtime - Player Detections Shared" (8b75090) by nosoop
 "Project: Overtime - Heal on Backstab" (8b75090) by nosoop
 "Project: Overtime - Reload While Cloaked" (8b75090) by nosoop
 "Anti-Flood" (1.12.0.6985) by AlliedModders LLC
 "Project: Overtime - Energy Weapon Charged Shot Mod" (8b75090) by nosoop
 "Project: Overtime - Buffalo Steak Mod" (8b75090) by nosoop
 "Project: Overtime - Mult Lunchbox Consume Speed" (8b75090) by nosoop
 "Project: Overtime - Flare Fires Knockback Pellets Mod" (8b75090) by nosoop
 "[TF2] Econ Dynamic Compatibility Shim" (1.0.0) by nosoop
 "Project: Overtime - No Extinguish" (8b75090) by nosoop
 "viewmodel_override.smx" viewmodel_override.smx
 "[TF2CA] Building Health Override" (1.0.0) by nosoop
 "[TF2CA] Weapon Always Gibs On Kill" (0.0.0) by Author!
 "custom-attr-starter-pack/pull_target_on_hit.smx" custom-attr-starter-pack/pull_target_on_hit.smx
 "custom-attr-starter-pack/jar_is_poison.smx" custom-attr-starter-pack/jar_is_poison.smx
 "custom-attr-starter-pack/minigun_rage_projectile_shield.smx" custom-attr-starter-pack/minigun_rage_projectile_shield.smx
 "custom-attr-starter-pack/joke_medigun_mod_drain_health.smx" custom-attr-starter-pack/joke_medigun_mod_drain_health.smx
 "custom-attr-starter-pack/attr_medic_disable_active_regen.smx" custom-attr-starter-pack/attr_medic_disable_active_regen.smx
 "custom-attr-starter-pack/uber_drain_rate_per_extra_player.smx" custom-attr-starter-pack/uber_drain_rate_per_extra_player.smx
 "[TF2CA] TF2 Classic Nailgun Slow" (1.0.0) by nosoop
 "custom-attr-starter-pack/sniper_weapon_rate_aim_target.smx" custom-attr-starter-pack/sniper_weapon_rate_aim_target.smx
 "custom-attr-starter-pack/cloak_debuff_time_scale.smx" custom-attr-starter-pack/cloak_debuff_time_scale.smx
 "custom-attr-starter-pack/preserve_rage.smx" custom-attr-starter-pack/preserve_rage.smx
 "custom-attr-starter-pack/mult_basegrenade_explode_radius.smx" custom-attr-starter-pack/mult_basegrenade_explode_radius.smx
 "custom-attr-starter-pack/lunchbox_effects/temp_mod_crit_chance.smx" custom-attr-starter-pack/lunchbox_effects/temp_mod_crit_chance.smx
 "custom-attr-starter-pack/lunchbox_effects/sugar_frenzy.smx" custom-attr-starter-pack/lunchbox_effects/sugar_frenzy.smx
 "custom-attr-starter-pack/syringegun_poison_on_hit.smx" custom-attr-starter-pack/syringegun_poison_on_hit.smx
 "custom-attr-starter-pack/minigun_radial_buff.smx" custom-attr-starter-pack/minigun_radial_buff.smx
 "custom-attr-starter-pack/minigun_burst_shot_rage.smx" custom-attr-starter-pack/minigun_burst_shot_rage.smx
 "custom-attr-starter-pack/owned_building_phasing.smx" custom-attr-starter-pack/owned_building_phasing.smx
 "custom-attr-starter-pack/minigun_vacuum.smx" custom-attr-starter-pack/minigun_vacuum.smx
 "custom-attr-starter-pack/energy_ring_instakill_radius.smx" custom-attr-starter-pack/energy_ring_instakill_radius.smx
 "custom-attr-starter-pack/airblast_projectiles_restores_health.smx" custom-attr-starter-pack/airblast_projectiles_restores_health.smx
 "[TF2CA] Rage Meter Nultiplier" (1.0.0) by nosoop
 "custom-attr-starter-pack/mod_crit_type_on_hitgroup.smx" custom-attr-starter-pack/mod_crit_type_on_hitgroup.smx
 "[TF2CA] Rage on Headshot" (0.0.0) by nosoop
 "custom-attr-starter-pack/reload_full_clip_at_once.smx" custom-attr-starter-pack/reload_full_clip_at_once.smx
 "custom-attr-starter-pack/weapon_overheat.smx" custom-attr-starter-pack/weapon_overheat.smx
 "[TF2] Custom Attribute: addcond while active" (1.0.1) by nosoop
 "custom-attr-starter-pack/low_gravity_charge.smx" custom-attr-starter-pack/low_gravity_charge.smx
 "custom-attr-starter-pack/mod_crit_type_vs_sentry_targets.smx" custom-attr-starter-pack/mod_crit_type_vs_sentry_targets.smx
 "custom-attr-starter-pack/lunchbox_override_pickup_type.smx" custom-attr-starter-pack/lunchbox_override_pickup_type.smx
 "custom-attr-starter-pack/flare_mods.smx" custom-attr-starter-pack/flare_mods.smx
 "custom-attr-starter-pack/generate_rage_on_dmg_patch.smx" custom-attr-starter-pack/generate_rage_on_dmg_patch.smx
 "custom-attr-starter-pack/mult_damage_vs_sappers.smx" custom-attr-starter-pack/mult_damage_vs_sappers.smx
 "custom-attr-starter-pack/full_clip_refill_after_time.smx" custom-attr-starter-pack/full_clip_refill_after_time.smx
 "[TF2] Custom Attribute: Custom Ball Impact Effect" (1.0.0) by nosoop
 "custom-attr-starter-pack/buff_overrides/buff_control_rockets.smx" custom-attr-starter-pack/buff_overrides/buff_control_rockets.smx
 "custom-attr-starter-pack/buff_overrides/buff_enable_tag_players.smx" custom-attr-starter-pack/buff_overrides/buff_enable_tag_players.smx
 "custom-attr-starter-pack/buff_overrides/buff_crit_and_mark_for_death.smx" custom-attr-starter-pack/buff_overrides/buff_crit_and_mark_for_death.smx
 "[TF2CA] Sniper Rage: Smoke Out Spies" (1.0.0) by nosoop
 "custom-attr-starter-pack/buff_overrides/sniper_rage_buff_reload.smx" custom-attr-starter-pack/buff_overrides/sniper_rage_buff_reload.smx
 "custom-attr-starter-pack/crossbow_addcond_on_teammate_hit.smx" custom-attr-starter-pack/crossbow_addcond_on_teammate_hit.smx
 "custom-attr-starter-pack/mod_crit_type_vs_condition.smx" custom-attr-starter-pack/mod_crit_type_vs_condition.smx
 "custom-attr-starter-pack/alt_fire_throws_cleaver.smx" custom-attr-starter-pack/alt_fire_throws_cleaver.smx
 "custom-attr-starter-pack/tag_last_enemy_hit.smx" custom-attr-starter-pack/tag_last_enemy_hit.smx
 "custom-attr-starter-pack/energy_ring_impact_effect.smx" custom-attr-starter-pack/energy_ring_impact_effect.smx
 "[TF2CA] Medigun Uber: Group Overheal" (0.0.0) by Author!
 "custom-attr-starter-pack/airblast_projectiles_adds_self_condition.smx" custom-attr-starter-pack/airblast_projectiles_adds_self_condition.smx
 "[TF2] Custom Attribute: MvM Attributes" (1.0.0) by nosoop
 "custom-attr-starter-pack/jar_is_bleed_on_hit.smx" custom-attr-starter-pack/jar_is_bleed_on_hit.smx
 "custom-attr-starter-pack/shake_on_step.smx" custom-attr-starter-pack/shake_on_step.smx
 "custom-attr-starter-pack/unsap_metal_cost.smx" custom-attr-starter-pack/unsap_metal_cost.smx
 "custom-attr-starter-pack/condition_stack_on_hit.smx" custom-attr-starter-pack/condition_stack_on_hit.smx
 "custom-attr-starter-pack/custom_lunchbox_effect.smx" custom-attr-starter-pack/custom_lunchbox_effect.smx
 "custom-attr-starter-pack/explosive_shield_bash.smx" custom-attr-starter-pack/explosive_shield_bash.smx
 "custom-attr-starter-pack/projectile_override_energy_ball.smx" custom-attr-starter-pack/projectile_override_energy_ball.smx
 "custom-attr-starter-pack/spontaneous_explode.smx" custom-attr-starter-pack/spontaneous_explode.smx
 "[TF2CA] Sapper Recharge Time" (1.0.0) by nosoop
 "custom-attr-starter-pack/damage_increase_on_hit.smx" custom-attr-starter-pack/damage_increase_on_hit.smx
 "custom-attr-starter-pack/stack_grenade_damage_custom.smx" custom-attr-starter-pack/stack_grenade_damage_custom.smx
 "[TF2CA] Sapper Building Reprogrammer" (1.0.0) by nosoop
 "custom-attr-starter-pack/shake_on_hit.smx" custom-attr-starter-pack/shake_on_hit.smx
 "custom-attr-starter-pack/disable_sniper_unzoom.smx" custom-attr-starter-pack/disable_sniper_unzoom.smx
 "custom-attr-starter-pack/generate_rage_over_time.smx" custom-attr-starter-pack/generate_rage_over_time.smx
 "custom-attr-starter-pack/disorient_on_hit.smx" custom-attr-starter-pack/disorient_on_hit.smx
 "[TF2CA] Banner Buff Override" (1.1.1) by nosoop
 "custom-attr-starter-pack/weapon_rate_buff_ally.smx" custom-attr-starter-pack/weapon_rate_buff_ally.smx
 "custom-attr-starter-pack/projectile_heal_on_teammate_contact.smx" custom-attr-starter-pack/projectile_heal_on_teammate_contact.smx
 "custom-attr-starter-pack/projectile_upgrades_buildings.smx" custom-attr-starter-pack/projectile_upgrades_buildings.smx
 "custom-attr-starter-pack/flamethrower_alt_fire_oil.smx" custom-attr-starter-pack/flamethrower_alt_fire_oil.smx
 "custom-attr-starter-pack/mult_damage_vs_targetcond.smx" custom-attr-starter-pack/mult_damage_vs_targetcond.smx
 "Project: Overtime - Weapon Overheat Mod" (8b75090) by nosoop
 "Project: Overtime - Flare Inverted Falloff" (8b75090) by nosoop
 "Project: Overtime - Stickybomb Primer" (8b75090) by nosoop
 "Project: Overtime - Mult Damage Sapper Target" (8b75090) by nosoop
 "Project: Overtime - Buff Override - Buff Banner++" (8b75090) by nosoop
 "Spew Kit" (1.0.1) by nosoop
 "Project: Overtime - Knife is Throwable" (8b75090) by Bakugo
 "[Any] Plugin Enable/Disable" (1.0.1) by DarthNinja
 "AddTime" (1.0.4) by bl4nk
 "Project: Overtime - Bounce On Player Stomp" (8b75090) by nosoop
 "[TF2] Custom Weapons X" (X.0.10-4396d59) by nosoop
 "Project: Overtime - Spunup Damage Resistance Mod" (8b75090) by nosoop
 "Sound Commands" (1.12.0.6985) by AlliedModders LLC
 "Basic Info Triggers" (1.12.0.6985) by AlliedModders LLC
 "Project: Overtime - Mult Dmg vs Health Low" (8b75090) by nosoop
 "Project: Overtime - Spy Nearby Reveal" (8b75090) by nosoop
 "Fun Commands" (1.12.0.6985) by AlliedModders LLC
 "[TF2] Custom Attribute Manager" (1.0.0) by nosoop
 "[TF2] Serverside Player Attachment Fixer" (1.1) by 404UNF
 "Basic Comm Control" (1.12.0.6985) by AlliedModders LLC
 "Project: Overtime - Bonk! Atomic Punch Modifier" (8b75090) by nosoop
 "Project: Overtime - Thermal Thruster Air Control" (6d30c16) by NotnHeavy
 "[TF2] Econ Data" (0.18.1) by nosoop
 "Project: Overtime - Mmmph Overhaul" (8b75090) by nosoop
 "Project: Overtime - Sniper Rifle Mod Crit Type On Hitgroup" (8b75090) by nosoop
 "[TF2] TF2Attributes" (1.7.3) by FlaminSarge
 "[TF2] Wearable Item Tools" (1.1.1) by Powerlord
 "Project: Overtime - Flamethrower Revamp" (6d30c16) by NotnHeavy
 "Project: Overtime - Dispenser Output Modifiers" (8b75090) by nosoop
 "[CA] Weapon Model Override" (1.1.1) by Zabaniya001
 "Project: Overtime - Sniper Rifle Damage Remap" (8b75090) by nosoop
 "HUD Overlay Material Generator" (1.0.0) by nosoop
 "[CA] Fire Magic Spells Rage" (1.0.0) by Zabaniya001
 "[CA] Fire Ring Attribute" (1.0.0) by Zabaniya001
 "Project: Overtime - Custom Projectile Offset" (8b75090) by nosoop
 "Custom Weapons: Orion's Attributes" (1.04) by Orion
 "Project: Overtime - Damage as Health Percentage" (8b75090) by nosoop
 "Project: Overtime - Add Attribute On Condition" (8b75090) by nosoop
 "[TF2] Halloween Tiny Unstuck" (1.2.1) by nosoop
 "[TF2] Custom Weapons X - Custom Weapons 3 Attribute Adapter" (0.0.0) by nosoop
 "Project: Overtime - Build Time Consistency" by nosoop
 "[TF2] Smooth Sentry Construct & Upgrade Animations" (1.0) by Pelipoika
 "[TF2] Custom Attributes" (0.5.0) by nosoop
 "Fun Votes" (1.12.0.6985) by AlliedModders LLC
 "Project: Overtime - Custom Stunball Modifiers" (8b75090) by nosoop
 "Project: Overtime - Speed Boost On Hit Mod" (8b75090) by nosoop
 "Admin Help" (1.12.0.6985) by AlliedModders LLC
 "Project: Overtime - No Gas Ignition on Self Damage" (6d30c16) by nosoop
 "Source Scramble Manager" (1.2.0) by nosoop
 "Project: Overtime - Teleporter Recharge Rate" (8b75090) by nosoop
 "[TF2] Custom Attribute Team Subsection Handler" (1.1.0) by nosoop
 "Custom Weapons 3: Ray's Attributes" (2.0.0) by Theray070696
 "Custom Weapons 3: Basic Attributes" (Beta 2) by MasterOfTheXP (original author), Theray070696 (porting to CW3)
 "Custom Weapons: More Advanced Weaponiser 2 Attributes" (1.04) by Orion && the AW2 dev team
 "Custom Weapons 3: AW2 Attributes" (2.0.1) by MechaTheSlag (Attributes & AW2), Theray070696 (Porting to CW2 and CW3)
 "Custom Weapons: Dota 2 Attributes" (1.04) by Orion
 "Custom Weapons: Orion's Attributes" (1.04) by Orion
 "SM File/Folder Downloader and Precacher" (1.5) by SWAT_88
 "Project: Overtime - Meter Persists on Death" (8b75090) by nosoop
 "Project: Overtime - Back Attack Options" (8b75090) by nosoop
 "Basic Votes" (1.12.0.6985) by AlliedModders LLC
 "[TF2] DamageInfo Tools" (0.1.0) by nosoop
nosoop commented 1 year ago

I am unable to reproduce this with CWX alone. (I've tested this against start of round / waiting for player respawns, in addition to a forced respawn using a plugin.)

Please retest without Fulcrum and your Item Server plugins to confirm that it is an issue with CWX, because multiple ammo / clip related issues were previously discovered in those two.

nosoop commented 1 year ago

Apologies. Looks like it's reproducible without other plugins, but not completely inconsistent — reopening.

It looks like an attribute cache issue; TF2Util_GetWeaponMaxClip does indeed return a value of 6, so the game is fully convinced that it's supposed to have that clip size.

nosoop commented 1 year ago

It looks like calling TF2Attrib_ClearCache on the weapon at some point should resolve it, but some further investigating is necessary; the ammo is only set during TF2_EquipPlayerEconItem, which is called during:

The issue happens somewhere that doesn't hit this code path.