> It looks to be just a check to make sure the file exists. The thing is > though that it allows for up to ten more files of the same name + X. > > crossfire.dat > crossfire1.dat > crossfire2.dat.... > > then it is supposed to figure out how many files there are, then generate a > random number, and pick one. > > I don't have multiple files yet, so I can't test that it works?? > > Dave
If you have 1 file, just make multiple copies of it and change the filename. To count the number of files, the should have something that adds the number to the end of the filename then use access() to see if that file exists. When they get to a number that doesn't exist, they know how many files there are (i.e. in your example crossfire3.dat doesn't exist, which means there are 3 files). Jeffrey "botman" Broome _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders