Talk:Generalities On Entities

From Valve Developer Community
Revision as of 15:49, 17 November 2005 by Nailed (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Good article. I appreciate you taking the time to write it up.

As soon as I get some free time I'm going to start messing with the SDK with my newfound knowledge. I'm thinking of modifying/creating a new solid entity based on func_tanktrain that will try to stay away from the player by following its track when the player gets close. It could be kind of funny to see.

How difficult do you think this would be for a moderately experienced C++ coder? func_tanktrain already accepts inputs to set its speed and direction, so I'm thinking I would just need to add in some sort of proximity detection to give the tanktrain a new speed + direction. You mentioned using SphereQuery. The problem I'm having is where to put the proximity checking code. What do you think? I'll have to look into it.