if something similiar that has been already written, sorry for posting this
commands:
/togglewatercolors (/twc): toggles this script on and off
/watercolor <R> <G> <B> (/wc): sets the watercolors, similiar to the usage of /fog (eg. /wc 255 0 255 for a manly pink tone)
/watercoloroffset <value> (/wco): adds a little offset to the colors since a plain monochrome tone would be boring right? (needless to say that any value above 255 aint smart here)
this might be totaly useless but some of you may like to change the atmosphere of a map like turning it into a bloody hell or a paradisiacal beach
or you are just crazy and set up eye cancers like this one
anyways changes apply only after changing a map
aand i dont know whether this is just an issue on my side, but players might disconnect during mapchange when the server / computer is too slow, it worked without any issues on a public server but when i tried it out on my localhost i had to make sure that my pc isnt running at 100% in order to prevent it
--------------------------------the enhancement------------------------------------------
so since izzy had some suggestions regarding this script, i tried implementing his ideas
the second attachmed script features following additions/commands:
- you can set it now with the command /watercolor <R><G><B> [offset]
- /watercolorcommands (/wcmd) show you all available commands for this script
- the watercolor is being randomly chosen from a colorlist in the script
Code: Select all
[you can enhance this list however you want, im too lazy to find good matches, would appreciate it if someone else posts a beter list with colors that wont make you want tearing your eyes off]watercolors = [(255,0,0), (0,255,0), (0,0,255), (255,255,0), (0,255,255), (255,0,255)]
this can be toggled off via the command /watercolorrandom (/wcr)
- with the command /watercolorprevent (/wcp) you can deactivate the changes after each map advance
- watercolors can be set within the map.txt file, it must look like that for example:
Code: Select all
- to deactivate this feature use /watercolormapextensions = {
'water_damage' : 10,
'water_color' : [(255, 0, 255), (125, 0, 0)],
'water_color_offset' : 80 }
- to set the watercolor to the winning teams color (whoever has more caps) type /watercolorteams (/wct)
however i couldnt find a suitable hook so it works only as long as a map is being advanced by an admin, in other words if a map is being changed once a game has been won, it automaticaly takes 0-0 as the ending score and thus detecting a tie which makes the server pick the spectator teams color (black) as the winning teams color
if anyone has an alternative idea for that, feel free to state it