Raised This Month: $ Target: $400
 0% 

Engine --> fakemeta


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 09-29-2008 , 02:11   Engine --> fakemeta
Reply With Quote #1

Can I change this engine thinking to fakemeta?
PHP Code:
client_PreThink(id
PHP Code:
client_PostThink(id
PHP Code:
server_frame() 
PHP Code:
pfn_touch(entid
Very thankful for help.
If you cant make them to fakemeta, is there any other way?
LaineN is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 09-29-2008 , 02:29   Re: Engine --> fakemeta
Reply With Quote #2

PHP Code:
register_forward(FM_PlayerPreThink"fwd_PreThink");

public 
fwd_PreThink(id)
{
  
// ...

PHP Code:
register_forward(FM_PlayerPostThink"fwd_PostThink");

public 
fwd_PostThink(id)
{
  
// ...

PHP Code:
register_forward(FM_Touch"fwd_Touch");

public 
fwd_Touch(ptrptd)
{
  
// ...

I'm not sure what the equivalent is for server_frame.
__________________
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
Old 09-29-2008, 02:32
LaineN
This message has been deleted by LaineN.
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 09-29-2008 , 02:34   Re: Engine --> fakemeta
Reply With Quote #3

Quote:
Originally Posted by v3x View Post
I'm not sure what the equivalent is for server_frame.
Anyone who knows that?
LaineN is offline
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 09-29-2008 , 02:42   Re: Engine --> fakemeta
Reply With Quote #4

I think "public server_frame()" works exactly the same no matter what you include or not.
__________________
atomen is offline
Send a message via MSN to atomen
jim_yang
Veteran Member
Join Date: Aug 2006
Old 09-29-2008 , 05:06   Re: Engine --> fakemeta
Reply With Quote #5

FM_StartFrame
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 09-29-2008 , 06:45   Re: Engine --> fakemeta
Reply With Quote #6

Quote:
Originally Posted by jim_yang View Post
FM_StartFrame
That's what I thought after browsing through the FM forwards. I wasn't sure, so I didn't post it.
__________________
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
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-29-2008 , 07:26   Re: Engine --> fakemeta
Reply With Quote #7

Quote:
Originally Posted by atomen View Post
I think "public server_frame()" works exactly the same no matter what you include or not.
server_frame() is an Engine forward.

http://www.amxmodx.org/funcwiki.php?go=func&id=380
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 09-29-2008 , 10:16   Re: Engine --> fakemeta
Reply With Quote #8

Quote:
Originally Posted by Exolent[jNr] View Post
server_frame() is an Engine forward.

http://www.amxmodx.org/funcwiki.php?go=func&id=380
Yea, it don't works without engine included.

Quote:
Originally Posted by jim_yang View Post
FM_StartFrame
Is that the same as server_frame?

If not, is there any way to convert server_frame to fakemeta?
LaineN is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 09-29-2008 , 10:17   Re: Engine --> fakemeta
Reply With Quote #9

Quote:
Originally Posted by jim_yang View Post
FM_StartFrame
__________________
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
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-29-2008 , 11:36   Re: Engine --> fakemeta
Reply With Quote #10

Here is what I use when converting a plugin from engine to fakemeta:

Code:
public plugin_init() {     register_forward(FM_Touch, "pfn_touch");     register_forward(FM_StartFrame, "server_frame");     register_forward(FM_PlayerPreThink, "client_PreThink");     register_forward(FM_PlayerPostThink, "client_PostThink"); }

Sometimes, I don't feel like changing the handling functions.
If I ever need to convert an engine forward to fakemeta, I first read all FM_* names to find which is the closest.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 02:27.


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