Raised This Month: $ Target: $400
 0% 

engine >> fakemeta


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 11-02-2009 , 12:00   engine >> fakemeta
Reply With Quote #1

PHP Code:
    new TARGET create_entity "trigger_hurt" )
    
DispatchKeyValue TARGET "classname" "trigger_hurt" )
    
DispatchKeyValue TARGET "dmg" "19999" )
    
DispatchKeyValue TARGET "damagetype" "0" )
    
DispatchKeyValue TARGET "origin" "8192 8192 8192" )
    
DispatchSpawn TARGET )
    
entity_set_stringTARGET EV_SZ_classname "trigger_hurt" )

    return 
TARGET 
help me to convert this to fakemeta.

+ karma to helper
Empowers is offline
Send a message via ICQ to Empowers
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-02-2009 , 12:03   Re: engine >> fakemeta
Reply With Quote #2

There is no need to.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-02-2009 , 12:06   Re: engine >> fakemeta
Reply With Quote #3

It will be more efficient and less code to use engine version. It's fine as it is, Empowers.
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-02-2009 , 14:40   Re: engine >> fakemeta
Reply With Quote #4

Also, you can remove lines 2 and 7, classname won't change by miracle.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 11-02-2009 , 15:15   Re: engine >> fakemeta
Reply With Quote #5

i just have no engine module on my server. all 30 plugins run with out it. And I don't wanna to turn it on only because of some few functions.
Empowers is offline
Send a message via ICQ to Empowers
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 11-02-2009 , 16:38   Re: engine >> fakemeta
Reply With Quote #6

It won't affect server's performance. Anyway I'd kinda suggest converting some more serious plugins into engine for better performance.
__________________
hleV is offline
Firippu
Senior Member
Join Date: Jan 2007
Old 11-02-2009 , 17:31   Re: engine >> fakemeta
Reply With Quote #7

hope this helps

PHP Code:
#include <fakemeta_util>

    
new TARGET fm_create_entity("trigger_hurt")
    
engfunc(EngFunc_SetOrigin,TARGET,Float:{8192.0,8192.0,8192.0})
    
set_pev(TARGET,pev_dmg,19999.0)
    
dllfunc(DLLFunc_Spawn,TARGET
__________________
Firippu 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 17:42.


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