How do I find the keyvalue names of any entity?

BeardEnthusiast

L1: Registered
Nov 7, 2023
1
0
I am learning VScript. I was looking at example code for Team Fortress 2 and I saw this:
1699412180535.png


None of the keyvalue names used in this script show up on the page for tf_projectile_rocket so I'm trying to figure out how the person who made the example code knows about the keyvalue names. This isn't the only entity that has missing keyvalues on its page.
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,258
999
A lot of entities share the same basic aspects of origin, angles, velocity etc. You can check out the Source SDK 2013 source code on GitHub to see keyvalues on .cpp files for entities, and if you run a server with SourceMod, you can dump a list of netprops and datamaps which has key names next to them. Fortunately that's already online. Here's a bunch of links:

# VScript Links
### Beginners' guides
[TopHattWaffle's video](<
View: https://youtu.be/p05bQ8ds8-w
### VDC: TF2 VScript
[TF2 VScript Functions](<https://developer.valvesoftware.com/wiki/Team_Fortress_2/Scripting/Script_Functions>)
[TF2 VScript Constants](<https://developer.valvesoftware.com/wiki/List_of_TF2_Script_Functions/Constants>)
[TF2 VScript Examples](<https://developer.valvesoftware.com/wiki/TF2_VScript_Examples>)
### VDC: VScript
[VScript](<https://developer.valvesoftware.com/wiki/VScript>)
[Squirrel](<https://developer.valvesoftware.com/wiki/Squirrel>)
[VScript Fundamentals](<https://developer.valvesoftware.com/wiki/VScript_Fundamentals>)
### Net and data props
[Searchable, easy to browse list](<https://jackz.me/netprops/tf2>)
[Grouped by entity class with info](<https://sigwiki.potato.tf/index.php/Entity_Properties>)
[Raw dumps](<https://www.invalidvertex.com/tf2dump.php>)
### Squirrel 3 documentation
[Squirrel Reference](<http://www.squirrel-lang.org/squirreldoc/index.html>)
### Tools/Environment
[Setting up VScript in Visual Studio Code](<https://developer.valvesoftware.com/wiki/Setting_Up_VScript_in_Visual_Studio_Code>)
[Auto-complete snippets for VS Code](<https://tf2maps.net/threads/autocompleting-tf2-vscript-in-vscode.48453/>)
### More Info
[VScript Mega Issue (Source-1-Games GitHub)](<https://github.com/ValveSoftware/Source-1-Games/issues/4481#>)