Coder Social home page Coder Social logo

victorienxp / rainbow-player-color-cycle Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.56 MB

Gives an RGB rainbow color cycle to players. Also work on physgun color!

Home Page: https://steamcommunity.com/sharedfiles/filedetails/?id=1949419667

License: MIT License

Lua 100.00%
garrysmod garrysmod-addon gmod gmod-addon gmod-lua gmod-sbox gmod-gamemodes gmodlua gmodaddon addon

rainbow-player-color-cycle's Introduction

Rainbow Player Color Cycle (RGB)

Steam Views Steam Subscriptions Steam Downloads Steam Favorites Steam File Size

Gives an RGB rainbow color cycle to players. Also work on physgun color!


Client cvars list:

  • xp_rpcc_cl_enable: Enable the rainbow color cycle for yourself (bool). Default: 1
  • xp_rpcc_cl_physgun: Enable the rainbow color cycle for your physgun and other compatible weapons (bool). Default: 1
  • xp_rpcc_cl_health_lightness: Should your health affect color lightness (this can be disabled by the server) (bool). Default: 1
  • xp_rpcc_cl_health_speed: Should your health affect color cycle speed (this can be disabled by the server) (bool). Default: 1
  • xp_rpcc_cl_disable_cycle: If you wish to only have one static random color upon respawn (bool). Default: 0

Server cvars list:

  • xp_rpcc_enable: Enable/disable the Rainbow Player Color Cycle (bool). Default: 1
  • xp_rpcc_offset: Enable/disable an offset so that players doesn't cycle the same color (bool). Default: 1
  • xp_rpcc_default_speed: Default cycle speed (float). Default: 1
  • xp_rpcc_health_lightness: Should player health affect color lightness (bool). Default: 1
  • xp_rpcc_health_speed: Should player health affect cycle speed (bool). Default: 1
  • xp_rpcc_gamemode_whitelist: Gamemode whitelist (string). Default: "sandbox,cinema,elevator,jazztronauts"
  • xp_rpcc_gamemode_blacklist: Gamemode blacklist (string). Default: "guesswho,hideandseek,morbusgame,murder,superpedobear,terrortown,prophunters,supercookingpanic"
  • xp_rpcc_gamemode_whitelist_only: Set if gamemodes have to be whitelisted (bool). Default: 1
  • xp_rpcc_enable_bots: Enable the Rainbow Player Color Cycle for bots (bool). Default: 1
  • xp_rpcc_disable_cycle: If you wish players to only have one static random color upon respawn (bool). Default: 0

rainbow-player-color-cycle's People

Contributors

victorienxp avatar

Stargazers

 avatar

Watchers

 avatar  avatar

rainbow-player-color-cycle's Issues

Help with editing the lua to make the player get a random rgb color from 0 to 2 without cycle

Hello. I play without a cycle but I'm trying to edit it so that it generates a random rgb color, where each time a player respawns the r,g and b roll a random value from the [0,2] interval.

I tried simply editing the rgb locals into this

local r = math.random(0,2)
local g = math.random(0,2)
local b = math.random(0,2)

but that didn't seem to help. Instead it just started flickering my player color. Any suggestions?

Thanks a lot in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.