This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Just a few questions...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Eonpyro
Junior Member
Join Date: Dec 2016
Old 12-21-2016 , 08:19   Just a few questions...
Reply With Quote #1

Hi, thanks for viewing this post. Where do I find a list of key values associated with entity?

Last edited by Eonpyro; 12-21-2016 at 09:32.
Eonpyro is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 12-21-2016 , 11:00   Re: Just a few questions...
Reply With Quote #2

Open hammer, spawn the entity, disable the smart edit option.
You can also go on valve wiki.
__________________

Last edited by Benoist3012; 12-21-2016 at 11:00.
Benoist3012 is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 12-21-2016 , 11:45   Re: Just a few questions...
Reply With Quote #3

For keys of a specific entity in a map:
  1. Get an entity dump by either extracting the map's entity list from the BSP (.ent extension) with GCFScape, or installing Stripper:Source and using its stripper_dump command.
  2. Look for the entity in the keyvalues output.
For keys of entities in general:
  1. Dump the entire set of entity datamaps with sm_dump_datamaps <file>.
  2. Look for the entity class. All keys associated with an entity have the "key" flag set (the entry between the offset and bytes), and the name of the key will be to the right.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
nosoop is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 12-21-2016 , 13:18   Re: Just a few questions...
Reply With Quote #4

Quote:
Originally Posted by nosoop View Post
For keys of entities in general:
  1. Dump the entire set of entity datamaps with sm_dump_datamaps <file>.
  2. Look for the entity class. All keys associated with an entity have the "key" flag set (the entry between the offset and bytes), and the name of the key will be to the right.
Not always good, for example entities such as team_control_point doesn't have all their keys in the dump.
__________________
Benoist3012 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-21-2016 , 15:43   Re: Just a few questions...
Reply With Quote #5

Quote:
Originally Posted by Benoist3012 View Post
Not always good, for example entities such as team_control_point doesn't have all their keys in the dump.
If a key is not in the dump it doesn't exist in the game code.
__________________
asherkin is offline
Eonpyro
Junior Member
Join Date: Dec 2016
Old 12-21-2016 , 19:54   Re: Just a few questions...
Reply With Quote #6

Quote:
Originally Posted by Benoist3012 View Post
Open hammer, spawn the entity, disable the smart edit option.
You can also go on valve wiki.
Thanks. Found some here. https://developer.valvesoftware.com/wiki/Env_sprite
Eonpyro is offline
Eonpyro
Junior Member
Join Date: Dec 2016
Old 12-21-2016 , 19:55   Re: Just a few questions...
Reply With Quote #7

Thank you all for your replies!
Eonpyro is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 12-26-2016 , 05:34   Re: Just a few questions...
Reply With Quote #8

Quote:
Originally Posted by asherkin View Post
If a key is not in the dump it doesn't exist in the game code.
You sure about that? "team_icon_3" key for example it does exist on the entity, at least from hammer.
But it doesn't appear in the dump
Code:
- m_iszPrintName (Offset 1168) (Save|Key)(4 Bytes) - point_printname
- m_iCPGroup (Offset 1404) (Save|Key)(4 Bytes) - point_group
- m_iDefaultOwner (Offset 1156) (Save|Key)(4 Bytes) - point_default_owner
- m_iPointIndex (Offset 1400) (Save|Key)(4 Bytes) - point_index
- m_iWarnOnCap (Offset 1164) (Save|Key)(4 Bytes) - point_warn_on_cap
- m_iszWarnSound (Offset 1172) (Save|Key)(4 Bytes) - point_warn_sound
- m_iszCaptureStartSound (Offset 1428) (Save|Key)(4 Bytes) - point_capture_start_sound
- m_iszCaptureEndSound (Offset 1432) (Save|Key)(4 Bytes) - point_capture_end_sound
- m_iszCaptureInProgress (Offset 1436) (Save|Key)(4 Bytes) - point_capture_progress_sound
- m_iszCaptureInterrupted (Offset 1440) (Save|Key)(4 Bytes) - point_capture_interrupted_sound
- m_bRandomOwnerOnRestart (Offset 1176) (Save|Key)(1 Bytes) - random_owner_on_restart
- m_bLocked (Offset 1177) (Save|Key)(1 Bytes) - point_start_locked
- InputSetOwner (Offset 0) (Input)(0 Bytes) - SetOwner
- InputShowModel (Offset 0) (Input)(0 Bytes) - ShowModel
- InputHideModel (Offset 0) (Input)(0 Bytes) - HideModel
- InputRoundActivate (Offset 0) (Input)(0 Bytes) - RoundActivate
- InputSetLocked (Offset 0) (Input)(0 Bytes) - SetLocked
- InputSetUnlockTime (Offset 0) (Input)(0 Bytes) - SetUnlockTime
- m_OnCapTeam1 (Offset 1228) (Save|Key|Output)(0 Bytes) - OnCapTeam1
- m_OnCapTeam2 (Offset 1252) (Save|Key|Output)(0 Bytes) - OnCapTeam2
- m_OnCapReset (Offset 1204) (Save|Key|Output)(0 Bytes) - OnCapReset
- m_OnOwnerChangedToTeam1 (Offset 1276) (Save|Key|Output)(0 Bytes) - OnOwnerChangedToTeam1
- m_OnOwnerChangedToTeam2 (Offset 1300) (Save|Key|Output)(0 Bytes) - OnOwnerChangedToTeam2
- m_OnRoundStartOwnedByTeam1 (Offset 1324) (Save|Key|Output)(0 Bytes) - OnRoundStartOwnedByTeam1
- m_OnRoundStartOwnedByTeam2 (Offset 1348) (Save|Key|Output)(0 Bytes) - OnRoundStartOwnedByTeam2
Didn't you mean from server code instead? Because as far I know, using stripper source, we can change the control point icon to trick the client into displaying another one.
__________________
Benoist3012 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 01:51.


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