Raised This Month: $ Target: $400
 0% 

TF2 Giving weapons to another class


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Quimbo
Member
Join Date: May 2008
Old 08-16-2009 , 22:53   Re: TF2 Giving weapons to another class
Reply With Quote #1

The new offset for givenameditem you posted is actually the CBasePlayer::GiveNamedItem offset and not the CTFPlayer::GiveNamedItem offset it was before the patch (both are in the vtable for CTFPlayer at a different offset).

If you call CTFPlayer::GiveNamedItem you get a crash.

Notice that you get console output about an unititialized item now when calling CBasePlayer::GiveNamedItem.
I believe this is because the item is not set up correctly to be shown in the new spectator HUD which shows the weapon of the spectated target.
Quimbo is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode