Skip to content

Instantly share code, notes, and snippets.

@sigsegv-mvm
sigsegv-mvm / item_meter_attributes.txt
Created November 14, 2019 05:05
TF2 attributes related to "item_meter"
item_meter_charge_type: 2-bit bitmask
bit 0 [0x1]
- if set: CTFPlayerShared::UpdateItemChargeMeters will passively recharge
- only if item has IHasGenericMeter as a base class
- only when item->ShouldUpdateMeter() returns true
- rate is based on: item_meter_charge_rate * mult_item_meter_charge_rate
- rate is also affected by item->GetMeterMultiplier()
bit 1 [0x2]
- if set: CTFPlayer::OnDealtDamage will recharge when dealing damage
- but not if: playing MvM mode and playing as pyro and weapon is in secondary slot