xhookLua
Game

Custom content

Your own skies, models, sounds, fonts and themes. Where the files go and what works.

Your folder

Everything goes in C:\xhook cs16\.

xhook makes the folders below the first time it starts. If Windows is not on C:, the folder is on the Windows drive.

Skies

  • One folder per sky: skyboxes\<name>\.
  • 6 faces named <prefix>bk.tga, dn, ft, lf, rt and up. A folder with a face missing is not listed.
  • TGA only, 24 or 32 bit, uncompressed or RLE. BMP, PNG and paletted TGA are not read.
  • Faces up to 2048 x 2048.
  • Keep the folder name at 31 characters or less.

The game draws skies at 256 x 256. Faces bigger than that are loaded at full size on top.

Pick one under Render, Sky. The list also shows the game's own skies and skies from downloaded maps. Your folder wins when two have the same name.

The sky shows while you are on a server. Picking it copies the faces into the game's gfx\env folder. It is turned off in streamer mode and while anti-screenshot captures.

Player models

  • models\player\<folder>\<file>.mdl. Any names; the first .mdl in the folder is used.
  • GoldSrc models only (version 10). Anything else is ignored without a message and you keep the normal model.
  • A model with its textures in a separate file needs both: name.mdl and nameT.mdl in the same folder.
  • Only your own player gets it. If the server already has a model at the same path, the server's copy is used.

Animations are matched to the Counter-Strike ones by name, so models from other games still move.

Hands

  • models\hands\<folder>\<file>.mdl.
  • Drawn over the weapon and follows its bones, so one hands model works with every weapon.

A bodypart named arms with 2 or more submodels switches by team.

Weapon skins

  • models\<weapon>\<skin>\ with a v_*.mdl inside. That view model is what you see.
  • w_ and p_ files in the folder are only used for the menu picture.
  • Only your first person view changes. Third person and other players keep the normal models.

Weapon folders: glock18, usp, p228, deagle, elite, fiveseven, m249, tmp, p90, mp5, mac10, ump45, m4a1, galil, famas, aug, ak47, sg552, xm1014, m3, awp, scout, g3sg1, sg550, knife, hegrenade, flashbang, smokegrenade.

With Skin's own sounds on, a skin can bring its weapon sounds. Put them in <skin>\sounds\ or next to the model, named like the game's file (ak47-1.wav). Only weapon sounds, and only yours.

Sounds

  • sounds\, .wav files at the top of the folder. Subfolders are not listed.
  • Used by the hit sound, kill sound, edge bug sound and pixel surf sound. Pixel surf also has 5 built in sounds.
  • 16 bit PCM WAV works best. Other WAV codecs are converted when the sound loads.
  • 24 and 32 bit files play at full volume and ignore the slider.
  • Volume goes from 0 to 1 and is multiplied by the game's own volume.
  • Up to 16 sounds play at once.

An mp3 renamed to .wav does not play. A file you replace while the game runs keeps its old sound until you restart the game.

Fonts

fonts\, .ttf, .otf or .ttc. Set Font type to Custom on the Themes page and pick the file. If the file is gone, the normal font stays.

Themes and configs

  • Themes: themes\<name>.xtheme. A colour missing from the file takes the Dark theme's value.
  • Configs: configs\<name>.xcfg.
  • Config banners: configs\banners\, png, jpg, bmp or tga.

Texture changer

Pick an image from anywhere with the file dialog: png, jpg, tga, bmp, gif (animated works), tif or dds, up to 8192 x 8192. Your rules are saved in texture_replacements.txt.

Other files

  • scripts\: Lua scripts, see Quick start.
  • recordings\<map>\<slot>.rec: movement recordings.
Custom content ยท Lua API ยท xhook