- Use two spaces instead of one tab for indentation
- All new files must be lower case for linux support
- Line endings must always be unix complaint
LF
- Trim the tailing space before you save
- Create files
init.lua
,cl_init.lua
andshared.lua
- Create a folder with the name of the class
here
- Put all your files from point
(1)
in your new folder - Use Paint.NET to draw your
*.jpg
image or download from google - Make sure the image has green laser, as it is pleaseing to human eyes.
- Import the image to VTFEdit and create a texture
256x256
- Store the new texture in the vgui folder and create a
*.vmt
- Open your new
*.vmt
file with text editor and update$basetexture
- Use your texture in game by calling
resource.AddFile()
on the*.vmt