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

TF2 Giving weapons to another class


Post New Thread Reply   
 
Thread Tools Display Modes
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-18-2008 , 08:37   Re: TF2 Giving weapons to another class
Reply With Quote #11

Just getting the offsets for the ctx stuff isn't enough. I'd have to find the proper instance of CScriptCreatedItem (or w/e it's called), and then use that.
bl4nk is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-18-2008 , 11:28   Re: TF2 Giving weapons to another class
Reply With Quote #12

Well I just dumped the CTFPlayer vfunc offsets, and they're correct. Are you guys doing this on Windows or Linux servers?
bl4nk is offline
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 08-18-2008 , 11:36   Re: TF2 Giving weapons to another class
Reply With Quote #13

Actually I read last night, valve has blocked it so it no longer possible to give weapons cross-class, like what you are trying to do. This was implemented in the medic update.
__________________
"Every man is guilty of all the good he did not do"
DiscoBBQ is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-18-2008 , 12:00   Re: TF2 Giving weapons to another class
Reply With Quote #14

I was just using it the other day when I wrote the plugin.

I'll go try it out on my server right now to see if it still works for me.

[edit]

Yup, it works fine for me on my Linux servers. I'll try it on my Windows server as well. If you don't believe me, I can record a video.

Last edited by bl4nk; 08-18-2008 at 12:13.
bl4nk is offline
ThatGuy
Senior Member
Join Date: Nov 2007
Old 08-18-2008 , 13:28   Re: TF2 Giving weapons to another class
Reply With Quote #15

Maybe it's the sourcemod version causing the crash for me? I use 1.0.3, and yes.. windows.
__________________
ThatGuy is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-18-2008 , 13:47   Re: TF2 Giving weapons to another class
Reply With Quote #16

Hmm. I just tried it on my Windows server and it crashed. I'll see if I can figure out why.
bl4nk is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-18-2008 , 14:23   Re: TF2 Giving weapons to another class
Reply With Quote #17

I think it's an internal problem with SourceMod. I filed a bug report, so hopefully they can help me figure out what's causing the crash.
bl4nk is offline
RM_Hamster
SourceMod Donor
Join Date: Jul 2008
Location: MA
Old 08-19-2008 , 17:58   Re: TF2 Giving weapons to another class
Reply With Quote #18

From update:

Fixed a loophole that allowed players to pickup weapons of other classes

Does that mean this no longer works?
RM_Hamster is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-19-2008 , 19:45   Re: TF2 Giving weapons to another class
Reply With Quote #19

I doubt it, but I'll double check the offsets and such just to make sure.
bl4nk is offline
boykevin
Member
Join Date: Mar 2008
Old 08-23-2008 , 16:18   Re: TF2 Giving weapons to another class
Reply With Quote #20

so does it work at all or not?
boykevin 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 23:26.


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