Hopefully modding the engine itself won't be necessary to get done what you'd like. If it doesn't become a built-in feature, with any luck you'll be able to accomplish it with Lua. Look what tomjscott has already done with it and the Lua commands are thus far fairly limited. (I haven't messed much with Lua for the past couple betas, but I know we're not all the way there yet!)
MAME Cab PC: i7 4770@3.4Ghz (passmark 9945), 12GB RAM, Win 8.1/64, GeForce GTX645 (passmark 1898); Shiny new laptop: i7 4800MQ@2.7Ghz (passmark 8586), 16GB RAM, Win 8.1/64, GeForce GTX870M (passmark 3598); Old laptop: i5@2.3Ghz, 8GB RAM, Win 7/64, Intel 3000 graphics