So I'm currently designing a new map for my server and I want to integrate some SourceMod functionality into the map. Essentially, I want to be able to search for specific in-map entities, then target specific copies of those entities based on their name (i.e. "func_respawnroom" named "thisisatest") and then change values of those entities (such as the "team" value of func_respawnroom).
Obviously I can look to Dr. McKay's
No Enemy in Spawn plugin as an example of how to hook into the entity and all that fun stuff, but how would I go about targetting the entity based on name?
Also, I frequently check the Valve Developer Wiki for entity keyvalues, but when it comes to putting that info on keyvalues to use in a plugin, I find that to be hard as for example, the VDW shows this:
Quote:
SetTeam <integer>
Changes the entity's team.
|
But in the plugin, it's seen as GetEntProp(entity, Prop_Send, "m_iTeamNum");
And that confuses me. Would there happen to be a resource somewhere that lists entities and how to target the various entprops/keyvalues in a plugin?