AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   General engine to FM conversion (https://forums.alliedmods.net/showthread.php?t=83571)

anakin_cstrike 01-11-2009 15:55

General engine to FM conversion
 
1 Attachment(s)
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

Arkshine 01-11-2009 16:01

Re: General engine to FM conversion
 
And a lot of threads which said the same thing as you. :p

anakin_cstrike 01-11-2009 16:03

Re: General engine to FM conversion
 
Quote:

Originally Posted by arkshine (Post 742372)
And a lot of threads which said the same thing as you. :p

Well...actually yea :P
But i didn't see any thread in wich is explain just this, only posts...

If isn't usefull, trash.


All times are GMT -4. The time now is 01:43.

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