gemidyne / microtf2

A custom gamemode for Team Fortress 2 - Players compete against each other to get the most points by playing a series of rapid fire microgames in order to win the round!
https://www.gemidyne.com/projects/microtf2
GNU General Public License v2.0
32 stars 17 forks source link

Update method to equip weapons #97

Closed FortyTwoFortyTwo closed 5 years ago

FortyTwoFortyTwo commented 5 years ago

While i don't know how you got your equips working, I was unable to equip weapons with SDKCall for CBasePlayer::Weapon_Equip with no errors thrown about invalid handle/gamedata.

I just use this usual method i see everywhere, EquipPlayerWeapon. However tf_wearable have to be done differently, SDKCall for CBasePlayer::EquipWearable, if we ever get a minigame for wearables.

safalin1 commented 5 years ago

Thanks - im just gonna run a test against this. I don't see any reason why this shouldn't work for all

safalin1 commented 5 years ago

All works perfectly - I'd rather use this than the previous gamedata!