Raised This Month: $ Target: $400
 0% 

some questions about converting engine to fm


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 07-06-2006 , 19:36   Re: some questions about converting engine to fm
Reply With Quote #1

velocity_by_aim was moved into AMXX 1.75+, see vector.inc
Orangutanz is offline
diamond-optic
Veteran Member
Join Date: May 2005
Old 07-06-2006 , 20:14   Re: some questions about converting engine to fm
Reply With Quote #2

ahh cool..

thanks alot.. didnt even realize the fm forwards lmao

there was another question or two i had.. but ill get this stuff straightened out first lol..

thanks again!
__________________
diamond-optic is offline
diamond-optic
Veteran Member
Join Date: May 2005
Old 07-07-2006 , 21:05   Re: some questions about converting engine to fm
Reply With Quote #3

ok another question regarding the forwards...

say thru engine this is what I had:

register_touch("dod_smoke", "*", "grenade_touch")

grenade_touch(grenid, object) { etc.....

...so with fakemeta i would do:

register_forward(FM_Touch, "grenade_touch")

but can i just leave:
grenade_touch(grenid, object)

as it is? or do i have to do something diff for the (grenid, object) part.. and like.. how can i figure out what else i can put there for different forwards and such... i have a feeling its gonna be a simple answer lol but i cant figure it out

**EDIT**

lol cuase im an idiot.. would this be the answer to my question:

http://www.amxmodx.org/funcwiki.php?go=func&id=1005

and so on for each forward im looking for... but registering FM_Touch instead of DF_Touch...?
__________________

Last edited by diamond-optic; 07-07-2006 at 21:21.
diamond-optic is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 07-08-2006 , 03:48   Re: some questions about converting engine to fm
Reply With Quote #4

DF_*'s and EF_*'s is just a wrappers for DLLFunc_*'s and EngFunc_*'s.
PHP Code:
stock DF_Touch(const ENT_Touched, const ENT_Other)
    return 
dllfunc(DLLFunc_TouchENT_TouchedENT_Other
I'd not recommend to use such wrappers.
But if you like short and simple wrapper idea, you can use Fakemeta Utilities which mostly uses macros which is better than such stock functions since macros processed on precompiling and never "called" as additional instruction.

As about you first question, you have to check for the classname inside touch function-handler. If you want an example, look into Real Nade Drops plugin.
VEN 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 08:08.


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