How to get keyvalue for trigger_changelevel?
Hello, I am here for a question, how to get keyvalue for trigger_changelevel?
Example: PHP Code:
|
Re: How to get keyvalue for trigger_changelevel?
Read the documentation:
Quote:
|
Re: How to get keyvalue for trigger_changelevel?
getting ANY built-map entity's keyvalue is only possible on their spawn, and im hoping im not right cuz its too annoying :/
|
Re: How to get keyvalue for trigger_changelevel?
Keyvalues are parsed and certain actions (like setting some member variables etc) are instantly taken based on these keys and values; they are not saved anywhere.
However, because values usually end up being saved in entity's member variables, there may be ways to get them (usually not in original plaintext format), but you'll have to figure that out yourself by reading HLSDK / ReGameDLL_CS. |
Re: How to get keyvalue for trigger_changelevel?
I want to get "map" keyvalue to know what map will change.
|
Re: How to get keyvalue for trigger_changelevel?
It's stored in CChangeLevel::m_szMapName.
If you are running 1.8.3/1.9 you can do Code:
new mapName[32]; |
Re: How to get keyvalue for trigger_changelevel?
I can't find offsets!
|
Re: How to get keyvalue for trigger_changelevel?
nice find klipice!
if anyone with using 1.8.2 want to get this changelevel thing for example, from here: https://forums.alliedmods.net/showpo...2&postcount=29 will he use Code:
server_print( "changeleve is: %s", get_pdata_string( ent_id, 73 ) )edit: ok ofc not in that way cuz multiple things have that 73 definition...can you explain a little more about this get_pdata thing, how to correctly find the right thing you need, how to use.. ? |
Re: How to get keyvalue for trigger_changelevel?
PHP Code:
|
Re: How to get keyvalue for trigger_changelevel?
im feeling like i have to post it, so if anyone needs this here you are:
if you want to get door's wait value (not so many times wanted on the forums, but without solution) you can with: Code:
m_flWait = 44 |
| All times are GMT -4. The time now is 07:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.