Raised This Month: $ Target: $400
 0% 

General engine to FM conversion


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 01-11-2009 , 15:55   General engine to FM conversion
Reply With Quote #1

OK. I saw a lot of threads with this subject, and many of them have been already discused.
And for that, i've mad this thread to clear things up once for all.

Engine - FM
PHP Code:
entity_set_* - set_pev
entity_get_
* - pev 
From 'engine_to_fm_const.inc'
Code:
// Int done
#define EV_INT pev

// Floats done
#define EV_FL pev

//Vectors done
#define EV_VEC pev

// EDICT done
#define EV_ENT pev

// Strings done
#define EV_SZ pev

// Bytes done
#define EV_BYTE pev
So, as you can see, all of them (strings, floats, vectors,...) come more simplistic as 'pev'.

Al values for 'pev' are floats, expect strings.

Examples:
PHP Code:
// engine
entity_set_floatentEV_FL_health50.0 );

// fakemeta
set_peventpev_health50.0 );

/* or
new Float: fHealth = 50.0;
set_pev( ent, pev_health, fHealth );
*/

// engine
new classname32 ];
entity_get_stringentEV_SZ_classnameclassname31);

// fakemeta
new classname32 ];
peventpev_classnameclassname31 ); 
Also, you can see the .inc bellow
Attached Files
File Type: inc fakeengine.inc (2.4 KB, 116 views)
__________________

anakin_cstrike is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-11-2009 , 16:01   Re: General engine to FM conversion
Reply With Quote #2

And a lot of threads which said the same thing as you. :p
Arkshine is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 01-11-2009 , 16:03   Re: General engine to FM conversion
Reply With Quote #3

Quote:
Originally Posted by arkshine View Post
And a lot of threads which said the same thing as you. :p
Well...actually yea
But i didn't see any thread in wich is explain just this, only posts...

If isn't usefull, trash.
__________________

anakin_cstrike 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 01:43.


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