Raised This Month: $32 Target: $400
 8% 

Full temp ent system from a plugin


Post New Thread Reply   
 
Thread Tools Display Modes
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 12-02-2005 , 08:52  
Reply With Quote #11

Which hook method are you using ?
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
BeetleFart
SourceMod Donor
Join Date: Apr 2004
Old 12-02-2005 , 11:26  
Reply With Quote #12

Quote:
Originally Posted by c0ldfyr3
Which hook method are you using ?



#define PVFN( classptr , offset ) ((*(DWORD*) classptr ) + offset)
#define VFN( classptr , offset ) *(DWORD*)PVFN( classptr , offset )



te = **(ITempEntsSystem***)(VFN(effects, 0x0C) + (0x22285E6E - 0x22285E00)); (and definition)
__________________
CSource Server:
69.90.34.10:27015 Beetlesmod.com And CS-Addicts{US}



http://www.clanuseast.com
BeetleFart is offline
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 12-02-2005 , 11:55  
Reply With Quote #13

Change (0x22285E6E - 0x22285E00) to 107, i think that should work.
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
BeetleFart
SourceMod Donor
Join Date: Apr 2004
Old 12-02-2005 , 12:03  
Reply With Quote #14

Quote:
Originally Posted by c0ldfyr3
Change (0x22285E6E - 0x22285E00) to 107, i think that should work.
107 is what was working for DOD...
and for cs I used the 110...
but I tried last nite from 106 to 114 and it still crashs immediately..
__________________
CSource Server:
69.90.34.10:27015 Beetlesmod.com And CS-Addicts{US}



http://www.clanuseast.com
BeetleFart is offline
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 12-02-2005 , 12:06  
Reply With Quote #15

I used this..
Code:
#define VTBL( classptr ) (*(DWORD*)classptr)
#define PVFN_( classptr , offset ) (VTBL( classptr ) + offset)
#define VFN_( classptr , offset ) *(DWORD*)PVFN_( classptr , offset )
#define PVFN( classptr , offset ) PVFN_( classptr , ( offset * sizeof(void*) ) )
#define VFN( classptr , offset ) VFN_( classptr , ( offset * sizeof(void*) ) )
And to init...
Code:
m_TempEnts					= **(ITempEntsSystem***)(VFN(m_Effects, 3) + (107));
This works.
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
BeetleFart
SourceMod Donor
Join Date: Apr 2004
Old 12-02-2005 , 13:06  
Reply With Quote #16

Quote:
Originally Posted by c0ldfyr3
I used this..
Code:
#define VTBL( classptr ) (*(DWORD*)classptr)
#define PVFN_( classptr , offset ) (VTBL( classptr ) + offset)
#define VFN_( classptr , offset ) *(DWORD*)PVFN_( classptr , offset )
#define PVFN( classptr , offset ) PVFN_( classptr , ( offset * sizeof(void*) ) )
#define VFN( classptr , offset ) VFN_( classptr , ( offset * sizeof(void*) ) )
And to init...
Code:
m_TempEnts					= **(ITempEntsSystem***)(VFN(m_Effects, 3) + (107));
This works.
cool...Ill try that...
is it any different for DOD or HL2DM?
__________________
CSource Server:
69.90.34.10:27015 Beetlesmod.com And CS-Addicts{US}



http://www.clanuseast.com
BeetleFart is offline
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 12-02-2005 , 13:11  
Reply With Quote #17

I would think so but unsure.
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
BeetleFart
SourceMod Donor
Join Date: Apr 2004
Old 12-02-2005 , 20:14  
Reply With Quote #18

Quote:
Originally Posted by c0ldfyr3
I would think so but unsure.
thanks coldfyr3 for your code snipet...
its works great and it worked both for css and dod with..
(still have to test for hl2mp)

one less thing to worry about now (till next valve update)
__________________
CSource Server:
69.90.34.10:27015 Beetlesmod.com And CS-Addicts{US}



http://www.clanuseast.com
BeetleFart is offline
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 12-03-2005 , 10:19  
Reply With Quote #19

Is it just me or what.

It doesnt crash at load, I tried using both methods of getting it, 0x0C VFN and the VFN defines which use 3, but when I try and use PhysicsProp it crashes o.O

It just occured to me, that if the 110 changed to 107, doesnt that mean the class size changed ? And we possibly have a b0rked header for it ?
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
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 16:15.


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