Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed wrong classname in GetClassWeaponClassname #167

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

M60TM
Copy link
Contributor

@M60TM M60TM commented Feb 3, 2024

Description

In decomplied TranslateWeaponEntForClass and pszWpnEntTranslationList,

.data:01787510                 dd offset aSaxxy        ; "saxxy"
.data:01787514                 dd offset unk_140F41A - TFClass_Unknown
.data:01787518                 dd offset aTfWeaponBat  ; "tf_weapon_bat" - TFClass_Scout
.data:0178751C                 dd offset aTfWeaponClub ; "tf_weapon_club" - TFClass_Sniper
.data:01787520                 dd offset aTfWeaponShovel ; "tf_weapon_shovel" - TFClass_Soldier
.data:01787524                 dd offset aTfWeaponBottle ; "tf_weapon_bottle" - TFClass_Demoman
.data:01787528                 dd offset aTfWeaponBonesa ; "tf_weapon_bonesaw" - TFClass_Medic
.data:0178752C                 dd offset aTfWeaponFireax ; "tf_weapon_fireaxe" - TFClass_Heavy
.data:01787530                 dd offset aTfWeaponFireax ; "tf_weapon_fireaxe" - TFClass_Pyro
.data:01787534                 dd offset aTfWeaponKnife ; "tf_weapon_knife" - TFClass_Spy
.data:01787538                 dd offset aTfWeaponWrench ; "tf_weapon_wrench" - TFClass_Engineer

If the class is heavy, return it to "tf_weapon_fireaxe" instead of "tf_weapon_fists". I don't know when it changed.

Additional Image

image
image

@Batfoxkid Batfoxkid merged commit 8a84e8e into Batfoxkid:main Feb 4, 2024
2 checks passed
@M60TM M60TM deleted the fix-wrong-classname branch November 12, 2024 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants