Update pushed with constraints, due to the forum downtime I haven't been able to add a new zip, so just download from the links.
API for the constraints is really fluid, don't advise using in a plugin just yet.
See an example
here.
EDIT: Also added Alien Swarm and Dark Messiah support, who knows why...
__________________