Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
830 B

  1. //====== Copyright � 1996-2004, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose: This file loads a KeyValues file containing material name mappings.
  4. // When the bsp is compiled, all materials listed in the file will
  5. // be replaced by the second material in the pair.
  6. //
  7. //=============================================================================
  8. #ifndef MATERIALSUB_H
  9. #define MATERIALSUB_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. extern bool g_ReplaceMaterials;
  14. // Setup / Cleanup
  15. void LoadMaterialReplacementKeys( const char *gamedir, const char *mapname );
  16. void DeleteMaterialReplacementKeys( void );
  17. // Takes a material name and returns it's replacement, if there is one.
  18. // If there isn't a replacement, it returns the original.
  19. const char* ReplaceMaterialName( const char *name );
  20. #endif // MATERIALSUB_H