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

TF2 Giving weapons to another class


Post New Thread Reply   
 
Thread Tools Display Modes
MrSaturn
SourceMod Donor
Join Date: Jan 2009
Old 04-21-2009 , 06:34   Re: TF2 Giving weapons to another class
Reply With Quote #91

Arent there different offsets for "weaponequip" and "stalemate" also?
MrSaturn is offline
Loldongs
SourceMod Donor
Join Date: Jul 2008
Old 04-21-2009 , 07:43   Re: TF2 Giving weapons to another class
Reply With Quote #92

Is there a guide on how to get these offsets i tried getting them using the http://wiki.alliedmods.net/Finding_Virtual_Offsets but it did not find WeaponEquip or GiveNamedItem
Loldongs is offline
Loldongs
SourceMod Donor
Join Date: Jul 2008
Old 04-21-2009 , 09:10   Re: TF2 Giving weapons to another class
Reply With Quote #93

weaponequip offsets are the same
Loldongs is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 04-21-2009 , 11:30   Re: TF2 Giving weapons to another class
Reply With Quote #94

Quote:
Originally Posted by Loldongs View Post
Is there a guide on how to get these offsets i tried getting them using the http://wiki.alliedmods.net/Finding_Virtual_Offsets but it did not find WeaponEquip or GiveNamedItem
I wrote that article, and you have to use it as a basis but look for yourself. Its in the CTFPlayer vtable (dont use cbaseplayer for TF2)
__________________
CrimsonGT is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 04-22-2009 , 21:33   Re: TF2 Giving weapons to another class
Reply With Quote #95

Well, the method in the article will fail to get the correct Windows offsets for non-simple cases. You say something to the effect of 'even though this is the Linux binary, these are Windows offsets' but that's not true. The offsets are the Linux offsets minus one. In simple cases with no overloaded virtual functions, the Windows offset will be the Linux offset minus one. But when there's overloads, MSVC and g++ will arrange the vtables differently.
Fyren is offline
Citrixlemon
Junior Member
Join Date: Apr 2009
Old 05-17-2009 , 22:13   Re: TF2 Giving weapons to another class
Reply With Quote #96

Tf2 crashes when trying to heal with the medigun as a scout. Does this happen for anyone else? I can equip it but if I fire it at someone the game crashes. I know earlier someone talked about being able to heal using the medigun.
Citrixlemon is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 05-18-2009 , 03:53   Re: TF2 Giving weapons to another class
Reply With Quote #97

Quote:
Originally Posted by Citrixlemon View Post
Tf2 crashes when trying to heal with the medigun as a scout. Does this happen for anyone else? I can equip it but if I fire it at someone the game crashes. I know earlier someone talked about being able to heal using the medigun.
First, make sure it's not crashing even if a medic heals. There's a problem with 1.2.0 after one of last month's patches involving TF2_CalcIsAttackCritical and the medigun. If that's the problem, try a snapshot. If it's not the problem, I dunno. Post a core dump/minidump from the crash.
Fyren is offline
ThatGuy
Senior Member
Join Date: Nov 2007
Old 05-22-2009 , 10:56   Re: TF2 Giving weapons to another class
Reply With Quote #98

Gamedate needs update for ...update?
__________________
ThatGuy is offline
Tauphi
SourceMod Donor
Join Date: Sep 2004
Location: Germany
Old 05-22-2009 , 11:01   Re: TF2 Giving weapons to another class
Reply With Quote #99

PHP Code:
"Games"
{
    
"tf"
    
{
        
"Offsets"
        
{
            
"GiveNamedItem"
            
{
                
"windows"    "421"
                "linux"        "426"
            
}
            
"WeaponEquip"
            
{
                
"windows"    "234"
                "linux"        "235"
            
}
        }
    }

__________________
Tauphi is offline
Send a message via ICQ to Tauphi Send a message via Skype™ to Tauphi
Zmathue
Junior Member
Join Date: Dec 2008
Old 05-23-2009 , 17:22   Re: TF2 Giving weapons to another class
Reply With Quote #100

I get "Bad entity in IndexOfEdict() index -1320340 pEdict 16711080 sv.edicts 18040010" on Windows.
Zmathue 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 21:04.


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