Raised This Month: $ Target: $400
 0% 

setting an entity key value in fakemeta


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
commonbullet
Veteran Member
Join Date: Oct 2005
Old 04-20-2006 , 02:05   setting an entity key value in fakemeta
Reply With Quote #1

How can I set an entity key value not listed in pev constants just like engine's DispatchKeyValue does?

If it's related to EngFunc_SetKeyValue, I can't understand the infobuffer parameter.
(char *infobuffer, char *key, char *value)
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
Basic-Master
Veteran Member
Join Date: Apr 2005
Location: hello pm
Old 04-20-2006 , 10:50  
Reply With Quote #2

hrm, I use a stock to do that, maybe it's useful for you:

Code:
stock set_keyvalue(ent, key[], value[]) {     new classname[32]     pev(ent, pev_classname, classname, 31)     set_kvd(0, KV_ClassName, classname)     set_kvd(0, KV_KeyName, key)     set_kvd(0, KV_Value, value)     set_kvd(0, KV_fHandled, 0)         dllfunc(DLLFunc_KeyValue, ent, 0) }
Basic-Master is offline
Send a message via ICQ to Basic-Master Send a message via MSN to Basic-Master
commonbullet
Veteran Member
Join Date: Oct 2005
Old 04-20-2006 , 12:05  
Reply With Quote #3

nice thanks,

"set_kvd" is not in old 1.6 documentation.
I wish I could get an updated offline reference, my dial-up connection sucks…
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
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 05:08.


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