Project Guidelines - SourceCE/Source-SP GitHub Wiki

These guidelines are not enforced, but they are here to keep the project neat.

Directories

Assets

Raw assets (PSDs, PNGs, SMDs, etc) go in the content/<game>/ folder. Compiled assets (VTF, MDL, etc) go in the game/<game>/

Code

Any third-party code goes in src/thirdparty/, and libs can then be copied over to src/lib/public/.

New large-scale systems go in the root src/ folder. Try to add functionality to existing systems first. Development tools can go in src/utils/.

Code

Always follow the single responsibility principle. Classes like CBaseEntity are bloated beyond all reason, and take on a vast amount of responsibilities they don't always need.

⚠️ **GitHub.com Fallback** ⚠️