Method | Description | |
---|---|---|
AddDecal ( LuaState luaState, string decalName, string materialName ) : void |
Registers a new decal.
|
|
AddParticles ( LuaState luaState, string particleFileName ) : void |
Loads a particle file.
|
|
ConsoleCommand ( LuaState luaState, string stringCommand ) : void |
Runs a console command. Make sure to add a newline ("\n") at the end of the command.
|
|
GetAmmoID ( LuaState luaState, string name ) : double |
Returns the ammo type ID for given ammo type name. See GetAmmoName for reverse.
|
|
GetAmmoMax ( LuaState luaState, double id ) : double |
Returns the real maximum amount of ammo of the given ammo ID.
|
|
GetAmmoName ( LuaState luaState, double id ) : string |
Returns the ammo name for given ammo type ID. See GetAmmoID for reverse.
|
|
GetMap ( LuaState luaState ) : string |
Returns the name of the current map, without a file extension.
|
|
GetMapNext ( LuaState luaState ) : string |
Returns the next map that would be loaded according to the file that is set by the mapcyclefile convar.
|
|
GetMapVersion ( LuaState luaState ) : double |
Returns the VBSP version of the current map.
|
|
GetSkillLevel ( LuaState luaState ) : double |
Returns the difficulty level of the game.
|
|
GetTimeScale ( LuaState luaState ) : double |
Returns the timescale of the game.
|
|
IsDedicated ( LuaState luaState ) : bool |
Returns whenever the server or the server we are connected to is a dedicated server.
|
|
LoadNextMap ( LuaState luaState ) : void |
Loads the next map according to the file that is set by the mapcyclefile convar.
|
|
MapLoadType ( LuaState luaState ) : string |
Returns the map load type of the current map.
|
|
MaxPlayers ( LuaState luaState ) : double |
Returns the maximum number of players for this server.
|
|
RemoveRagdolls ( LuaState luaState ) : void |
Removes all the clientside ragdolls.
|
|
SetSkillLevel ( LuaState luaState, double level ) : void |
Sets the difficulty level of the game, can be retrieved with game.GetSkillLevel.
|
|
SetTimeScale ( LuaState luaState, double timeScale ) : void |
Sets the time scale of the game.
|
|
SinglePlayer ( LuaState luaState ) : bool |
Returns whenever the current session is a single player game.
|
public static AddDecal ( LuaState luaState, string decalName, string materialName ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
decalName | string | The name of the decal. |
materialName | string | /// The material to be used for the decal. May also be a list of material names, in which case a /// random material from that list will be chosen every time the decal is placed. /// |
return | void |
public static AddParticles ( LuaState luaState, string particleFileName ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
particleFileName | string | The path of the file to add. Must be (file).pcf. |
return | void |
public static ConsoleCommand ( LuaState luaState, string stringCommand ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
stringCommand | string | String containing the command and arguments to be ran. |
return | void |
public static GetAmmoID ( LuaState luaState, string name ) : double | ||
luaState | LuaState | Pointer to lua_State struct. |
name | string | Name of the ammo type to look up ID of. |
return | double |
public static GetAmmoMax ( LuaState luaState, double id ) : double | ||
luaState | LuaState | Pointer to lua_State struct. |
id | double | Ammo type ID. |
return | double |
public static GetAmmoName ( LuaState luaState, double id ) : string | ||
luaState | LuaState | Pointer to lua_State struct. |
id | double | Ammo ID to retrieve the name of. Starts from 1. |
return | string |
public static GetMap ( LuaState luaState ) : string | ||
luaState | LuaState | Pointer to lua_State struct. |
return | string |
public static GetMapNext ( LuaState luaState ) : string | ||
luaState | LuaState | Pointer to lua_State struct. |
return | string |
public static GetMapVersion ( LuaState luaState ) : double | ||
luaState | LuaState | Pointer to lua_State struct. |
return | double |
public static GetSkillLevel ( LuaState luaState ) : double | ||
luaState | LuaState | Pointer to lua_State struct. |
return | double |
public static GetTimeScale ( LuaState luaState ) : double | ||
luaState | LuaState | Pointer to lua_State struct. |
return | double |
public static IsDedicated ( LuaState luaState ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
return | bool |
public static LoadNextMap ( LuaState luaState ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
return | void |
public static MapLoadType ( LuaState luaState ) : string | ||
luaState | LuaState | Pointer to lua_State struct. |
return | string |
public static MaxPlayers ( LuaState luaState ) : double | ||
luaState | LuaState | Pointer to lua_State struct. |
return | double |
public static RemoveRagdolls ( LuaState luaState ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
return | void |
public static SetSkillLevel ( LuaState luaState, double level ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
level | double | The difficulty level, Easy( 1 ), Normal( 2 ), Hard( 3 ). |
return | void |
public static SetTimeScale ( LuaState luaState, double timeScale ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
timeScale | double | The new timescale, minimum value is 0.001 and maximum is 5. |
return | void |
public static SinglePlayer ( LuaState luaState ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
return | bool |