AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   engine->fakemeta (register_impulse) (https://forums.alliedmods.net/showthread.php?t=140801)

grankee 10-16-2010 16:46

engine->fakemeta (register_impulse)
 
I want to delete engine from my plugin and it's almost done, but I have one problem, how to change register_impulse to some fakemeta or hamsandwich way? I found Ham_Player_ImpulseCommands but I can't check number of impulse in this (I need hook only impulse 100).

Arkshine 10-16-2010 17:07

Re: engine->fakemeta (register_impulse)
 
want to delete engine from my plugin

You gain nothing to do that. Also, engine is generally faster than fakemeta. It doesn't matter how many modules you have. Leave as it is.
If you don't know what you are going and not having a specific reason, use engine. By th way, read this : http://forums.alliedmods.net/showthread.php?t=88792.

grankee 10-16-2010 18:00

Re: engine->fakemeta (register_impulse)
 
Thank You Arkshine for info, i always think that fakemeta is fastest and best, now I'll try to not use this module (if better).

Arkshine 10-16-2010 18:02

Re: engine->fakemeta (register_impulse)
 
All is depending the need. Just use/choose intelligently the natives whatever the modules.

grankee 10-16-2010 18:08

Re: engine->fakemeta (register_impulse)
 
So is no diffrent how many modules I'll use?

PS. read my topic about create light, You are good as see so maybe You can do it ..

Arkshine 10-16-2010 18:11

Re: engine->fakemeta (register_impulse)
 
It doesn't matter yes.

grankee 10-16-2010 18:19

Re: engine->fakemeta (register_impulse)
 
One more question, what you tell about using engine natives in fakemeta forwards?

Arkshine 10-16-2010 18:20

Re: engine->fakemeta (register_impulse)
 
You can without problem.

ConnorMcLeod 10-16-2010 18:31

Re: engine->fakemeta (register_impulse)
 
Impulse is a good example on how engine can be better than another module.

client_impulse is sent only when impulse is different from 0
register_impulse callback is only called when the numbre you passed is equal to player impulse.

With fakemeta you have to hook CmdStart every time it is sent and to check impulse value.
With ham it's the same, the forward is sent every frame and you have to check impulse value.

So engine is really better for that specific need.

See convertions : http://forums.alliedmods.net/showthread.php?t=77765


All times are GMT -4. The time now is 10:28.

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