Raised This Month: $ Target: $400
 0% 

engine->fakemeta (register_impulse)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
grankee
Member
Join Date: Jun 2008
Old 10-16-2010 , 16:46   engine->fakemeta (register_impulse)
Reply With Quote #1

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).
grankee is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-16-2010 , 17:07   Re: engine->fakemeta (register_impulse)
Reply With Quote #2

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.
__________________
Arkshine is offline
grankee
Member
Join Date: Jun 2008
Old 10-16-2010 , 18:00   Re: engine->fakemeta (register_impulse)
Reply With Quote #3

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).
grankee is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-16-2010 , 18:02   Re: engine->fakemeta (register_impulse)
Reply With Quote #4

All is depending the need. Just use/choose intelligently the natives whatever the modules.
__________________
Arkshine is offline
grankee
Member
Join Date: Jun 2008
Old 10-16-2010 , 18:08   Re: engine->fakemeta (register_impulse)
Reply With Quote #5

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 ..

Last edited by grankee; 10-16-2010 at 18:12.
grankee is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-16-2010 , 18:11   Re: engine->fakemeta (register_impulse)
Reply With Quote #6

It doesn't matter yes.
__________________
Arkshine is offline
grankee
Member
Join Date: Jun 2008
Old 10-16-2010 , 18:19   Re: engine->fakemeta (register_impulse)
Reply With Quote #7

One more question, what you tell about using engine natives in fakemeta forwards?
grankee is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-16-2010 , 18:20   Re: engine->fakemeta (register_impulse)
Reply With Quote #8

You can without problem.
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-16-2010 , 18:31   Re: engine->fakemeta (register_impulse)
Reply With Quote #9

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
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 10:28.


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