Talk:Generalities On Entities

From Valve Developer Community
Jump to: navigation, 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.

Question

Hello , I'm majora2015 a French student who is working on a hl2 modification , called war_academy . I do it for a project in my university, and I would like to know if i can translate your work to use it in a french site (www.piwiki.net) about hl2 for my project.

How about using Category:French and posting the French translation on this wiki? There are already several French articles. See also alternative languages guide. -n-neko 04:23, 14 Dec 2005 (PST)


Controversy

Hungarian notation is completely useless. It also makes code harder to understand. Both compiler and IDE know what the variable type is. If you can't use your own IDE that's a PEBKAC. HL2 code is already hard to understand so there is no reason to make it any more hackish. Marek Sieradzki 04:36, 7 Jul 2006 (PDT)

it's a lot quicker to know that a variable is a string, an integer, a float, a handle, or a pointer....otherwise it would require looking up every time you forget what it is (sign your posts with ~~~~)—ts2do 12:04, 6 Jul 2006 (PDT)
You can get that information from code completion. You DON'T need to use looking up for declaration. Microsoft introduced hungarian notation on large scale. Now in .NET guides for writing code it is suggested to name variables normally. Few years ago indeed code completion wasn't present in every IDE or was slow. But we have 2006 now. VS2005 will show you all the needed information in 0.5 second. Marek Sieradzki 04:36, 7 Jul 2006 (PDT)