SlashCo
SlashCo
The main library containing almost everything related to the gamemode.
Methods
Registers or overrides a dangerlevel.
Registers or overrides a slasher class.
Returns a copy of the given Color allowing you to safely modify it.
SlashCo.DisableGlobalFog()
Disables the Global Fog
SlashCo.EnableGlobalFog()
Enables the Global Fog
table SlashCo.FindPlayersInRange( Vector origin, number radius, number specificTeam = nil, Entity|table ignoreEntity = nil )
Finds all players in a given radius and checks if their visible from the origin by doing a trace.
number SlashCo.GetRoundStartTime( )
Returns the time the round started at using CurTime
SlashCo.SetRoundStartTime( number time = CurTime() )
Sets the time the round started using CurTime
SlashCo.SetupLanOverrides()
Called when a game is hosted with sv_lan 1 to setup proper -multirun support for development and testing
but now we have to ensure that they won't use the same steamid's.
Right now we change these function and we add the userid to allow for multiple multirun instances to work without colliding with each other.
- PLAYER:SteamID()
- PLAYER:SteamID64()
- PLAYER:OwnerSteamID64()
- PLAYER:UniqueID()