Raised This Month: $ Target: $400
 0% 

Cstrike Module to Fakemeta [+Ham]


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-14-2009 , 14:15   Re: Cstrike Module to Fakemeta [+Ham]
Reply With Quote #11

Quote:
Originally Posted by Exolent[jNr] View Post
Are you saying that you tested and they don't work, or you see an error in the code?
Just saying that you can't convert it this way, pdata will return some kind of pointers that you can't use.
You can convert cs_set_hostage_follow another way by making players use hostages (fake CT team if T...), and i think you can convert cs_get_hostage_follow by hooking each time a user uses one oO
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 03-16-2009 , 22:53   Re: Cstrike Module to Fakemeta [+Ham]
Reply With Quote #12

I know that people request this kind of conversion a lot, but I don't see how this is better than just using the functions in the cstrike module. Am I missing something? Is there some benefit?
__________________
stupok is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 03-16-2009 , 23:14   Re: Cstrike Module to Fakemeta [+Ham]
Reply With Quote #13

Quote:
Originally Posted by stupok View Post
I know that people request this kind of conversion a lot, but I don't see how this is better than just using the functions in the cstrike module. Am I missing something? Is there some benefit?
The only point I see in that is if your plugin uses, like, 2 functions from the cstrike module. It's better to replace them with fakemeta equivalents, than to possibly force AMXX to load an extra module.

But in most cases that won't matter since at least 1 plugin will need to use it anyway.
__________________

Community / No support through PM
danielkza is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 03-17-2009 , 02:03   Re: Cstrike Module to Fakemeta [+Ham]
Reply With Quote #14

Quote:
Originally Posted by danielkza View Post
The only point I see in that is if your plugin uses, like, 2 functions from the cstrike module. It's better to replace them with fakemeta equivalents, than to possibly force AMXX to load an extra module.

But in most cases that won't matter since at least 1 plugin will need to use it anyway.
Not to mention most servers will be running the module anyway because they want the extra stats plugins in the cstrike addon. That's the main reason I don't remove cstrike. Besides I would think a few of the natives/forwards from csx/cstrike would be faster in module than written out in plugin/include.

Some people just got on some crazy fakemeta high and thought everything needed to be converted to it to use less modules because they were told doing so was optimizing. Not specifically talking about this thread or anyone who has posted in this thread.

Last edited by vittu; 03-17-2009 at 02:13.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-17-2009 , 02:29   Re: Cstrike Module to Fakemeta [+Ham]
Reply With Quote #15

Quote:
Originally Posted by vittu View Post
Not to mention most servers will be running the module anyway because they want the extra stats plugins in the cstrike addon. That's the main reason I don't remove cstrike. Besides I would think a few of the natives/forwards from csx/cstrike would be faster in module than written out in plugin/include.

Some people just got on some crazy fakemeta high and thought everything needed to be converted to it to use less modules because they were told doing so was optimizing. Not specifically talking about this thread or anyone who has posted in this thread.
But a plugin with fakemeta only is more cross-mod compatible than if it also had the cstrike module, isn't it?
__________________
joaquimandrade is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 03-17-2009 , 02:43   Re: Cstrike Module to Fakemeta [+Ham]
Reply With Quote #16

Quote:
Originally Posted by joaquimandrade View Post
But a plugin with fakemeta only is more cross-mod compatible than if it also had the cstrike module, isn't it?
I don't see how when the code is still mod dependent?
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-17-2009 , 03:07   Re: Cstrike Module to Fakemeta [+Ham]
Reply With Quote #17

Quote:
Originally Posted by vittu View Post
I don't see how when the code is still mod dependent?
I have a plugin where i have to deal with the user's money. If i use cs_set_money, it can't be used in a mod other than counter strike. Is that correct?
__________________

Last edited by joaquimandrade; 03-17-2009 at 03:11.
joaquimandrade is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 03-17-2009 , 03:23   Re: Cstrike Module to Fakemeta [+Ham]
Reply With Quote #18

Quote:
Originally Posted by joaquimandrade View Post
I have a plugin where i have to deal with the user's money. If i use cs_set_money, it can't be used in a mod other than counter strike. Is that correct?
But even converting cs_set_user_money it is still mod dependent. What I mean is even if you convert the code you still can't run it in the other mod, so how would that be making it cross-mod compatible? (maybe I'm misreading this because I'm tired or maybe someone can make clear what I'm trying to say, I will check on this again tomorrow).
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-17-2009 , 03:27   Re: Cstrike Module to Fakemeta [+Ham]
Reply With Quote #19

Quote:
Originally Posted by vittu View Post
But even converting cs_set_user_money it is still mod dependent. What I mean is even if you convert the code you still can't run it in the other mod, so how would that be making it cross-mod compatible? (maybe I'm misreading this because I'm tired or maybe someone can make clear what I'm trying to say, I will check on this again tomorrow).
Even if its not fully cross-mod, its still more cross-mod than with cstrike. It is simple as this: my plugin of video poker is running on a TS server. If i had used cs_get_money it wouldn't be.

I don't think that using fakemeta is just a trend like you said. Even being overused, it has obviously good uses.
__________________

Last edited by joaquimandrade; 03-17-2009 at 03:34.
joaquimandrade is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 03-17-2009 , 11:03   Re: Cstrike Module to Fakemeta [+Ham]
Reply With Quote #20

So The Specialists has the same offset for money as Counter-Strike?

It (probably) doesn't, and that's what vittu is getting at. Each mod has its own offsets and little intricacies. Using fakemeta isn't making anything more compatible.

I suppose you could argue that with fakemeta, you would only have to change a few #defines that declare the offsets, where if you use cs_get_user_money, you would have to do a "replace all" with ts_getusercash. Further, maybe some mods don't have a function, so you would need to use fakemeta.

That's a negligible benefit, in my opinion.

I think a trend is exactly what it is.
__________________
stupok 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 19:19.


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