AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Fakemeta equivalent to CurWeapon? (https://forums.alliedmods.net/showthread.php?t=28297)

organizedKaoS 05-11-2006 20:23

Fakemeta equivalent to CurWeapon?
 
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. :up:

noob cannon lol 05-11-2006 20:43

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.

organizedKaoS 05-11-2006 20:44

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.

Xanimos 05-11-2006 20:48

register_event() isnt in engine.

noob cannon lol 05-11-2006 20:55

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

organizedKaoS 05-11-2006 20:58

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 05-11-2006 20:59

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.

noob cannon lol 05-11-2006 21:15

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?

v3x 05-12-2006 03:23

What exactly do you need to do?

Basic-Master 05-12-2006 09:06

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 :gyar: if you don't want messages to be fired you could either wait for amxx 1.75 or just use engine until then ^^


All times are GMT -4. The time now is 05:04.

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