Page 1 of 1

player.tint( <color> ) & surface.tint()

Posted: Tue Sep 27, 2016 2:48 am
by aubergine18
Allow tinting of world for specific player and/or surface via script.

Example uses:

* Weather effects (foggy/cloudy, lightning, heatwave, cold, etc)
* Poison symptoms (blurred/foggy vision, random blackouts, etc)
* Cutscenes (fading the screen before, during or after a scripted cutscene)

The effect will usually be surface specific (eg. weather effects), but sometimes player specific (eg. poison effect, cutscenes), hence wanting it on both LuaPlayer and LuaSurface.

There are workarounds such as damaging the player (causes map to flash tinted color) or equipping them with modded nightvision goggles (without time constraint), but there is very little control over tint color (eg. to tween). Both these workarounds are cumbersome to mod, and would be confusing to players (seeing random damage or equipment appearing due to tinting).

Assuming there needs to be an order of precedence:

1. Damage tint
2. Surface tint
3. Player tint
4. Equipment tint

However, if all active tints could somehow be 'merged' then that would be even better.