Raised This Month: $12 Target: $400
 3% 

TF2 Giving weapons to another class


Post New Thread Reply   
 
Thread Tools Display Modes
aRcTiC
SourceMod Donor
Join Date: Apr 2010
Old 05-02-2010 , 22:20   Re: TF2 Giving weapons to another class
Reply With Quote #181

is the givenameditem offset still 385/386 or has this http://forums.alliedmods.net/showthread.php?t=125721 ruined it forever?
aRcTiC is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 05-02-2010 , 22:37   Re: TF2 Giving weapons to another class
Reply With Quote #182

Quote:
Originally Posted by aRcTiC View Post
is the givenameditem offset still 385/386 or has this http://forums.alliedmods.net/showthread.php?t=125721 ruined it forever?
Offset has not changed.

From CTFPlayer vtable dump:

Code:
385    CBasePlayer::GiveNamedItem(char  const*,int)
Afronanny is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 05-04-2010 , 04:22   Re: TF2 Giving weapons to another class
Reply With Quote #183

Quote:
Originally Posted by Afronanny View Post
Offset has not changed.

From CTFPlayer vtable dump:

Code:
385    CBasePlayer::GiveNamedItem(char  const*,int)
385 doesn't seem to work for me; old slot weapon is removed, no new weapon is added.
__________________
DarthNinja is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 05-04-2010 , 05:01   Re: TF2 Giving weapons to another class
Reply With Quote #184

Quote:
Originally Posted by aRcTiC View Post
is the givenameditem offset still 385/386 or has this http://forums.alliedmods.net/showthread.php?t=125721 ruined it forever?
Ruined it? Yes. Forever? Hopefully not.
Forcing any weapon other than what is currently equipped renders as invisible.
It should still be being given though.
__________________
asherkin is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 05-04-2010 , 05:18   Re: TF2 Giving weapons to another class
Reply With Quote #185

Quote:
Originally Posted by asherkin View Post
Ruined it? Yes. Forever? Hopefully not.
Forcing any weapon other than what is currently equipped renders as invisible.
It should still be being given though.
After using it I use lose whatever weapon was in that slot, no weapon (visible or invisible) is there.
__________________
DarthNinja is offline
Reply


Thread Tools
Display Modes

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 11:45.


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