Natural Selection 2
Недостатньо оцінок
SH Disco - Powerpoint Light Handler - Command & Config
   
Нагородити
До улюбленого
В улюблених
Прибрати
Modification: Gameplay Tweak
Compatibility: Must be run on Server
Розмір файлу
Додано
Оновлено
2.970 KB
14 черв. 2020 о 1:59
15 черв. 2020 о 0:25

Підпишіться, аби завантажити
SH Disco - Powerpoint Light Handler - Command & Config

Опис
Hello,

*IMPORTANT* Required is a "Disco.json" file inside Shine/Plugins for the sake of not getting an error :P
//Setting to true will have the disco lights always enabled
{
"discoEnabled": false,
"__Version": "1.0"
}

Roundstart checks for the above setting.

This version only supports the "sh_disco" console command and the configruation change.

How this is done:

Powerpoint has a new toggle "isDisco"
Why I take this approach?
The powerpointlighthandler is client sided. Uses powerpoint_client.
sh_disco is server / shared and tricky with client.
Easiest way from writing perspective is to have a setting on powerpoint which light handler checks
So this is written to be a toggle by shine command to toggle the powerpoint variable which the light handler reads
sh_disco toggles between true and false
if true - the lights will change to a random color when power is ON between every 4 to 16 seconds

Enjoy!!!
Коментарів: 4
Tishka Dront | top-clan.ru 19 черв. 2020 о 16:24 
Ohh, very fun mod! )))
Avoca  [автор] 14 черв. 2020 о 4:11 
Warning 1.0 conflicts with Siege Zero. Untested with Siege One but may conflict.
Avoca  [автор] 14 черв. 2020 о 3:05 
Note this version 1.0 only applies to "Normal" power - Power that is on / Not Damaged / Not Off ..whatever..
Avoca  [автор] 14 черв. 2020 о 2:03 
7ef598e6