Menu

Tools Commit Log


Commit Date  
[r2051] by SumolX

Updated Network Libs to match latest SDK support.

2008-11-30 17:42:28 Tree
[r2050] by kbandressen

Entities can now have unlimited spawn scripts.

2008-11-30 05:29:22 Tree
[r2049] by kbandressen

Optimizations to spawn script caching.

2008-11-28 23:17:06 Tree
[r2048] by kbandressen

Added new level header command:

cameraoffset {x} {z/y}
-used to control the point the camera focuses on
-values can also be changed via script with changelevelproperty("cameraxoffset"/"camerazoffset", value)

2008-11-28 22:42:32 Tree
[r2047] by kbandressen

New linked list cache system for spawnscripts reduces memory usage and loading time by checking to see if a spawnscript is already loaded before making another copy.

2008-11-27 22:18:16 Tree
[r2046] by kbandressen

Spawnscripts converted to a pointer system. Step one of getting them cached.

2008-11-27 09:28:54 Tree
[r2045] by kbandressen

Fixed memory leaking bug with updated_script.

2008-11-26 20:46:49 Tree
[r2044] by kbandressen

Some tweaking of the textobj code. Also increased the max for textobjs and filestreams to 50 now that their data is dynamically allocated.

2008-11-22 20:37:28 Tree
[r2043] by kbandressen

Fixed some allocation problems with textobjs.

2008-11-22 11:17:48 Tree
[r2042] by kbandressen

New script functions:

openfilestream("data/filepath/file.txt");
-opens a text file and returns the index that other functions can use to access it. Indexes are assigned in order of creation, from 0 to the maximum number of filestreams (currently 20).

getfilestreamline(int index);
-Returns the current line of the file as a string, cutting it off if it's larger than the maximum string length.

getfilestreamargument(int index, int argumentnumber, string returntype);
-Returns the specified argument at the current position. For example, with this line:

Stringargument 1 3.4

you would get these results:

getfilestreamargument(index, 0, "string") -> Stringargument
getfilestreamargument(index, 1, "int") -> 1
getfilestreamargument(index, 2, "float") -> 3.4
getfilestreamargument(index, 2, "int") 3

filestreamnextline(int index);
-Moves to the next line of the file that has any characters.

getfilestreamposition(int index);
-Returns the current position in the file.

setfilestreamposition(int index, int position);
-Sets the current position. Record a position with getfilestreamposition to go to, or set it to 0 to go back to the beginning of the file.

2008-11-21 23:31:02 Tree
Older >
MongoDB Logo MongoDB