Talk:Authoring a Logical Entity

From Valve Developer Community
Jump to navigation Jump to search

c stands for server ?

why prefixing server-side with stuff with the c letter ? i fail to see the subtility with the "c_" for "client side". why not "s" or "sr" ? Meithal 10:54, 2 Jun 2008 (PDT)

  • It has been my understanding that C in the beginning of a class name means just that, "class". This as part of the Hungarian notation. But reading this made me wonder. For some reason it doesn't sound too unfamiliar however. Think I might have heard or seen this myself before. - Kodak 06:37, 30 January 2009 (UTC)

Testing the entity

So, maybe this is silly, but maybe this tutorial should also include instructions on testing this entity we just made on a map so that we know it actually did something. From what is here I have code that compiles but no idea if it actually did anything other than faith in the person who wrote the tutorial. How does one trigger the entity so it prints to the screen or console (or wherever it prints) when they put the entity into a map and run it? ent_fire? what? Zarbon9696

You'd tie a map output to OnThreshold, and use either an input or ent_fire to prod it. You're right though, something needs to be added. --TomEdwards 03:03, 2 Jul 2008 (PDT)

What's with the C++ tutorial?

This is a VDC article on how to mod in Source; why aren't we assuming that readers have a working knowledge of C++, and letting the unenlightened go to other, more in-depth websites actually intended to explain programming fundamentals? The extra stuff is making me have to sift through the article to find actual information. --TheRatcheteer 21:33, 7 Jul 2008 (PDT)

It's the first in the "Your First Entity" series, geared towards beginners. I'd argue that there is some use for the information, seeing as some modders might be very new to programming and they're learning to code by hacking through the SDK (as misguided as that might be).. but I see your point too. --Campaignjunkie (talk) 23:41, 7 Jul 2008 (PDT)
It comes down to the balance of requirements. There's little argument that the number of people already familiar with C++ trying to use this article isn't far smaller than the number who have never written a line of it before. (Plus if you already understand C++ you can just read the commented source code, surely?) --TomEdwards 02:07, 8 Jul 2008 (PDT)