-
Notifications
You must be signed in to change notification settings - Fork 4
InfiniteFlashlight.as
First Created: June 20th, 2017
Last Updated: June 20th, 2017
Current Status: Stable.
Works with the 5517 (v5.12) Build of Sven Co-Op.
Copy 'InfiniteFlashlight.as' to 'svencoop\scripts\plugins'. And add this to 'default_plugins.txt':
"plugin"
{
"name" "InfiniteFlashlight"
"script" "InfiniteFlashlight"
"concommandns" "ifl"
}
Add this to 'server.cfg'
// Infinite Flashlight Global Configuration
as_command ifl.infiniteFlashlightEnable 1
Prevents Flashlight battery from draining. Can be disabled per map.
There are one variable you can manipulate, you have to go to console and type as_command ifl.cvarhere value
.
Add the below defaults to your "server.cfg" file if you haven't already.
You can use a .cfg file to give a map unique settings for the plugin.
Just navigate to the folder of the map, and find/create a file named mapname.cfg
and input any of these
as_command ifl.infiniteFlashlightEnable 1
Adjust values above as needed. If a .cfg file is not found for the map, then it will assume the values you put in server.cfg
CVar Help:
infiniteFlashlightEnable - (1 or 0) Enable or Disable the plugin.
- N/A