Raised This Month: $ Target: $400
 0% 

Getting key/value in mid map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 06-01-2007 , 20:16   Getting key/value in mid map
Reply With Quote #1

Is it possible to get an entities key/value data in the middle of a map?

From what I see it looks like it is only possible to get the key/value data from entities when the map first loads and assigns the data.
hlstriker is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 06-01-2007 , 21:33   Re: Getting key/value in mid map
Reply With Quote #2

Maybe something like this:
Code:
new value = engfunc(EngFunc_InfoKeyValue, engfunc(EngFunc_GetInfoKeyBuffer, EntityID), "Key");
client_print(0, print_chat, "Value: %d", value);
Tried it but doesn't work as expected..maybe you can make it working ;)

greetz regalis
__________________
regalis is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 06-03-2007 , 11:35   Re: Getting key/value in mid map
Reply With Quote #3

What you've wrote is for client keyvalues.

Ham_Keyvalue should be called even mid map, hook it. See Ham Sandwich module from modules section.
VEN is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 06-03-2007 , 13:57   Re: Getting key/value in mid map
Reply With Quote #4

Quote:
Originally Posted by VEN View Post
Ham_Keyvalue should be called even mid map, hook it. See Ham Sandwich module from modules section.
Is this the module you are talking about?
http://forums.alliedmods.net/showthread.php?t=51824

It looks like it only has the 2 natives...
hs_takedamage(idVictim,idInflictor,idAttacker , Float:damage, type);
hs_use(id,idActivator,idCaller, use_type, Float:use_value);

How do I hook Ham_Keyvalue (is it even in that module?)

I've been looking around and saw other hooks for this. How can I find out what all the hooks are?

Last edited by hlstriker; 06-03-2007 at 14:12.
hlstriker is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 06-03-2007 , 14:57   Re: Getting key/value in mid map
Reply With Quote #5

See last page for latest binary.
VEN is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 06-03-2007 , 15:51   Re: Getting key/value in mid map
Reply With Quote #6

Thanks VEN, this is a little beyond me though.

Code:
	/**
	 * Description:		Typically this is similar to an engine keyvalue call.
	 *					Use the kvd natives from fakemeta to handle the kvd_handle passed.
	 *					NOTE: Do not pass handle 0 to this! Use get_kvd_handle(0) from fakemeta instead!
	 * Forward params:	function(this, kvd_handle);
	 * Return type:		None.
	 * Execute params:	ExecuteHam(Ham_Keyvalue, this, kvd_handle);
	 */
	Ham_Keyvalue,
What exactly is the kvd_handle?
hlstriker is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 06-04-2007 , 00:24   Re: Getting key/value in mid map
Reply With Quote #7

It's kvdid from your post: http://forums.alliedmods.net/showthr...189#post423189
VEN 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 10:30.


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