View Single Post
Re: What's the best way to detect CS1.6?
Old
  (#5)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: What's the best way to detect CS1.6? - 22-02-2004

This is what I'm using:

Code:
    // see if we are running Counter-Strike v1.6...
    unsigned char *tempbuf;
 
    // only CS v1.6 has this file
    // use HL Engine function so that it would not be affected by Steam...
    tempbuf = LOAD_FILE_FOR_ME("sprites/weapon_famas.txt",NULL);
 
    if (tempbuf)
    {
 	  g_bIsVersion16 = TRUE;
 	  FREE_FILE(tempbuf);
    }
  
Reply With Quote