This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Offset = FindSendPropOffs();


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dutchmeat
Senior Member
Join Date: Sep 2006
Old 05-16-2007 , 02:55   Offset = FindSendPropOffs();
Reply With Quote #1

Hey,
I have taken a look at the 'KnifeMug' plugin, and there's an example of using offsets(money in this case).
In the KnifeMug plugin this is the offset line:


Code:
g_MoneyOffset = FindSendPropOffs("CCSPlayer", "m_iAccount");



As you can see the classname is 'CSSPlayer', I have never worked with these classnames so I don't know what to use for 'HL2: Dragonball Source'.

I have seen the 'Entity Property' article on Wiki(http://wiki.alliedmods.net/Entity_Properties), and I really have no idea to get the classname of DB:S.

I hope you could give me some information of how to work with these offsets.

Thanks,

Eamon 'Dutchmeat' Woortman

PS. I have tried to get the classname using:
Code:
GetEdictClassname(client, classname, 80);
but that didn't work(the classname was 'worldspawn')
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.

Last edited by dutchmeat; 05-16-2007 at 02:58.
dutchmeat is offline
BAILOPAN
Join Date: Jan 2004
Old 05-16-2007 , 03:09   Re: Offset = FindSendPropOffs();
Reply With Quote #2

If you would like I can give you a Metamod:Source plugin which dumps all of the send property information to a file. Just let me know what operating system you use.
__________________
egg
BAILOPAN is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 05-16-2007 , 04:30   Re: Offset = FindSendPropOffs();
Reply With Quote #3

That would be nice,
OS: Windows XP Pro SP2 32 bit

Does that information include offset arguments(don't know if offsets use multiple arguments)?
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 05-16-2007 , 04:55   Re: Offset = FindSendPropOffs();
Reply With Quote #4

Quote:
Originally Posted by dutchmeat View Post
That would be nice,
OS: Windows XP Pro SP2 32 bit

Does that information include offset arguments(don't know if offsets use multiple arguments)?
What do you mean 'offset arguments'? Offsets are the offsets of a variable from it's class address, so where does the argument come into it?
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
dutchmeat
Senior Member
Join Date: Sep 2006
Old 05-16-2007 , 04:58   Re: Offset = FindSendPropOffs();
Reply With Quote #5

ah, I am confused with the original usermessages used in amxx, I think it's pretty similar
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
Olly
Senior Member
Join Date: Mar 2007
Location: UK
Old 05-16-2007 , 05:08   Re: Offset = FindSendPropOffs();
Reply With Quote #6

If you need to send arguments to a function, You will need to 'sigscan' it using the sigscan extension by PimpinJuice
Olly is offline
Send a message via MSN to Olly
dutchmeat
Senior Member
Join Date: Sep 2006
Old 05-16-2007 , 05:18   Re: Offset = FindSendPropOffs();
Reply With Quote #7

Isn't this what Bail was talking about?
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 05-16-2007 , 11:36   Re: Offset = FindSendPropOffs();
Reply With Quote #8

Hmm, I can't compile the sigscan plugin, I use MSC++ 6.0, and I get alot of include errors plus some other crap.

Is there a precompiled version , or could someone compile it?
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 05-17-2007 , 06:36   Re: Offset = FindSendPropOffs();
Reply With Quote #9

You need to use MSVC 2003 or 2005.
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 07-04-2007 , 16:14   Re: Offset = FindSendPropOffs();
Reply With Quote #10

BAILOPAN, could you please provide me with that metamod plugin? I would like to use it for Insurgency.
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose 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 03:46.


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