Method | Description | |
---|---|---|
ActiveGamemode ( LuaState luaState ) : string |
Returns the name of the currently running gamemode.
|
|
CloseServer ( LuaState luaState ) : void |
Closes the server and completely exits.
|
|
GetDemoPlaybackStartTick ( LuaState luaState ) : double |
When starting playing a demo, GetDemoPlaybackTick will be reset and its old value will be added to this functions return value.
|
|
GetDemoPlaybackTick ( LuaState luaState ) : double |
Current tick of currently loaded demo.
|
|
GetDemoPlaybackTimeScale ( LuaState luaState ) : double |
Returns time scale of demo playback.
|
|
GetDemoPlaybackTotalTicks ( LuaState luaState ) : double |
Returns total amount of ticks of currently loaded demo.
|
|
IsPlayingDemo ( LuaState luaState ) : bool |
Returns true if we're currently playing a demo.
|
|
IsRecordingDemo ( LuaState luaState ) : bool |
Returns true if the game is currently recording a demo file (.dem) using gm_demo console variable.
|
|
LightStyle ( LuaState luaState, double lightstyle, string pattern ) : void |
This is a direct binding to the function “engine->LightStyle”. This function allows you to change the default light style of the map - so you can make lighting lighter or darker. You’ll need to call render.RedownloadAllLightmaps clientside to refresh the lightmaps to this new color.
|
|
OpenDupe ( LuaState luaState, string dupeName ) : string |
Loads a duplication from the local filesystem.
|
|
TickInterval ( LuaState luaState ) : double |
Returns the number of seconds between each gametick.
|
|
WriteDupe ( LuaState luaState, string dupe, string jpeg ) : void |
Saves a duplication as a file.
|
|
WriteSave ( LuaState luaState, string saveData, string name, double time, string map ) : void |
Stores savedata into the game (can be loaded using the LoadGame menu).
|
public static ActiveGamemode ( LuaState luaState ) : string | ||
luaState | LuaState | Pointer to lua_State struct. |
return | string |
public static CloseServer ( LuaState luaState ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
return | void |
public static GetDemoPlaybackStartTick ( LuaState luaState ) : double | ||
luaState | LuaState | Pointer to lua_State struct. |
return | double |
public static GetDemoPlaybackTick ( LuaState luaState ) : double | ||
luaState | LuaState | Pointer to lua_State struct. |
return | double |
public static GetDemoPlaybackTimeScale ( LuaState luaState ) : double | ||
luaState | LuaState | Pointer to lua_State struct. |
return | double |
public static GetDemoPlaybackTotalTicks ( LuaState luaState ) : double | ||
luaState | LuaState | Pointer to lua_State struct. |
return | double |
public static IsPlayingDemo ( LuaState luaState ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
return | bool |
public static IsRecordingDemo ( LuaState luaState ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
return | bool |
public static LightStyle ( LuaState luaState, double lightstyle, string pattern ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
lightstyle | double | The lightstyle to edit. 0 to 63. If you want to edit map lighting, you want to set this to 0. |
pattern | string | /// The pattern to change the lightstyle to. "a" is the darkest, "z" is the brightest. You can use /// stuff like "abcxyz" to make flashing patterns. The normal brightness for a map is "m". /// |
return | void |
public static OpenDupe ( LuaState luaState, string dupeName ) : string | ||
luaState | LuaState | Pointer to lua_State struct. |
dupeName | string | Name of the file. e.g "dupes/8b809dd7a1a9a375e75be01cdc12e61f.dupe". |
return | string |
public static TickInterval ( LuaState luaState ) : double | ||
luaState | LuaState | Pointer to lua_State struct. |
return | double |
public static WriteDupe ( LuaState luaState, string dupe, string jpeg ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
dupe | string |
/// Dupe table, encoded by |
jpeg | string | The dupe icon, created by |
return | void |
public static WriteSave ( LuaState luaState, string saveData, string name, double time, string map ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
saveData | string | Data generated by |
name | string | Name the save will have. |
time | double | When the save was saved during the game (use |
map | string | The map the save is used for. |
return | void |