Raised This Month: $ Target: $400
 0% 

TF2 Giving weapons to another class


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

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 #2

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 #3

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 #4

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 #5

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 #6

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 #7

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 #8

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
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 08-25-2008 , 18:02   Re: TF2 Giving weapons to another class
Reply With Quote #9

Quote:
Originally Posted by RM_Hamster View Post
From update:

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

Does that mean this no longer works?
You used to be able to edit the classes CTX files to change what weapon they had in each slot. In addition, you were able to use the console commands to create the weapon, then using +use another player could pick it up. This is what the patch notes were referring to and what they fixed. Bl4nk is working to actually do this with a work around in his code so yes it is still possible. As of now only on Linux servers.
CrimsonGT 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 #10

I doubt it, but I'll double check the offsets and such just to make sure.
bl4nk 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 08:30.


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