Raised This Month: $ Target: $400
 0% 

Fakemeta equivalent to CurWeapon?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 05-11-2006 , 20:23   Fakemeta equivalent to CurWeapon?
Reply With Quote #1

Is there such a thing?

Code:
register_event("CurWeapon", "myfunc", "flags", "moreflags")

Can I do something like
Code:
register_forward("CurWeapon fakemeta equiv", ???)

Thanks for any info.
organizedKaoS is offline
noob cannon lol
SourceMod Donor
Join Date: Sep 2005
Old 05-11-2006 , 20:43  
Reply With Quote #2

Why would you need to use fakemeta? Registering events is a function in the core module and it wouldn't tax the server any further (if you want to improve efficiency)

Forwards are different from events and I'm sure you can't use strings for the forward type. So I'm guessing no.
noob cannon lol is offline
Send a message via AIM to noob cannon lol Send a message via MSN to noob cannon lol
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 05-11-2006 , 20:44  
Reply With Quote #3

Quote:
Originally Posted by noob cannon lol
So I'm guessing no.
I don't want a guess.

I am using fakemeta in my custom plugin to avoid using engine.

The engine module is constantly active whether it is being instructed or not, the opposite for fakemeta.
organizedKaoS is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 05-11-2006 , 20:48  
Reply With Quote #4

register_event() isnt in engine.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
noob cannon lol
SourceMod Donor
Join Date: Sep 2005
Old 05-11-2006 , 20:55  
Reply With Quote #5

Quote:
Originally Posted by organizedKaoS
Quote:
Originally Posted by noob cannon lol
So I'm guessing no.
I don't want a guess.

I am using fakemeta in my custom plugin to avoid using engine.

The engine module is constantly active whether it is being instructed or not, the opposite for fakemeta.
Quote:
Originally Posted by NoobCannonlol
Why would you need to use fakemeta? Registering events is a function in the core module and it wouldn't tax the server any further (if you want to improve efficiency)
If you don't want a guess but a real answer... no
noob cannon lol is offline
Send a message via AIM to noob cannon lol Send a message via MSN to noob cannon lol
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 05-11-2006 , 20:58  
Reply With Quote #6

Quote:
Originally Posted by Suicid3
register_event() isnt in engine.
Yes I know Suicid3, its part of the amxmodx core, my plugin is currently using engine calls and Im trying to convert everything over to fakemeta, I have engine calls inside my CurWeapon func, and was wondering if there was a way to register a forward to the func so that I can utilize the fm returns.
organizedKaoS is offline
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 05-11-2006 , 20:59  
Reply With Quote #7

Quote:
Originally Posted by noob cannon lol
If you don't want a guess but a real answer... no
NVM...Ill guess ill just have to find this one on my own again.
organizedKaoS is offline
noob cannon lol
SourceMod Donor
Join Date: Sep 2005
Old 05-11-2006 , 21:15  
Reply With Quote #8

Quote:
Originally Posted by organizedKaoS
Quote:
Originally Posted by Suicid3
register_event() isnt in engine.
Yes I know Suicid3, its part of the amxmodx core, my plugin is currently using engine calls and Im trying to convert everything over to fakemeta, I have engine calls inside my CurWeapon func, and was wondering if there was a way to register a forward to the func so that I can utilize the fm returns.
You asked if registering events could be done with fakemeta on the basis of optimization. Optimization cannot be done since it is handled on the core and appears to be only handled by the core.

Now you're asking how to get rid of engine funcs in the event callback? I don't understand what you're asking.

Quote:
and was wondering if there was a way to register a forward to the func so that I can utilize the fm returns.
Do you mean FMRES_HANDLED, FMRES_SUPERCEDE?
noob cannon lol is offline
Send a message via AIM to noob cannon lol Send a message via MSN to noob cannon lol
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-12-2006 , 03:23  
Reply With Quote #9

What exactly do you need to do?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Basic-Master
Veteran Member
Join Date: Apr 2005
Location: hello pm
Old 05-12-2006 , 09:06  
Reply With Quote #10

you can use the FM_MessageBegin, FM_Write* and FM_MessageEnd forwards to hook an event like CurWeapon or DeathMsg but I still don't undestand why you'd want to do that if you don't want messages to be fired you could either wait for amxx 1.75 or just use engine until then ^^
Basic-Master is offline
Send a message via ICQ to Basic-Master Send a message via MSN to Basic-Master
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 05:04.


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