Yes, it is possible! It took a bit of work, but here's how it looks:
You must be registered to see the links
I tried to future proof as much as possible and this mod works for both anal and vaginal xrays.
I also made it work with webms, rather than the spritesheets! It requires a single edit to the main HTML of the game:
Code:
<script src="style.js"></script>
It will end up looking like this when added to the right place:
Code:
<!DOCTYPE html>
<html data-init="no-js" lang=en>
<head>
<script src="style.js"></script>
So just add it right after <head> opens. Alternatively you can add the included style.js as a UserScript. If you know what an UserScript is you should know how to do it so I leave it to you.
HOW I MADE IT WORK WITHOUT CHANGING TONS OF HTML:
- Every 250ms the style.js script will check if a xray animation is playing
- If it is, it will look at which animation it's playing
- Then it will remove it and attempt to replace it with a WEBM from the mod folder
- If it fails (like when a new animation was added and the mod doesn't cover it), it goes back to the default animation, so if an animation is missing you still get the original experience
- If it finds an webm, it replaces the default animation with the WEBM
- It also speeds up or down the webm accordingly to the default animation speed, so it can go faster or slower just like the main game does. The amount of speed up would probably need to be adapted to whatever animations are being added. The current numbers work for the Not-so Premium mod webms, but probably require some tuning to 100% match the default animations.
- Since you can't speed up gifs I just made it work with webms, but I doubt anyone would prefer gifs anyway. Webms can look better and are smaller. Should require pretty little work to make work with gifs, in any case.
The included style.css is already called by the game. It just does some fixups on the new video element so it always fits the container, regardless of the original video size. It'd be pretty nice if vrelnir could make it so the game also automatically loads style.js, that way it'd be even easier to mod. Since he added the style.css support, I imagine he's not against mods, so if anyone asks for it, it should happen.
So with this you can add any video for the xray animations by simply adding an webm with the right name to the /mod folder. You can check the names in the /img/sex folder of the main game. It doesn't matter the webm size or duration, it should be contained within the container element and "it just works!".
I also went through the original Not-so premium Mod animations and converted them into webms. If this is not allowed just me and I'll remove them. I didn't have any other webms to use and I also can't draw, so I shouldn't be updating this, but this should make it easy for people who already have the assets and just want to add them in-game. Unless something big changes about how the game does the xray animations, this mod should survive through updates just fine.
In theory it should be possible to apply the same thing to the closeup animations, but since those involve more stuff it might be hard to cover everything - it'd have butt size, penis type, state (penetrating, rubbing, tip, etc), anyway, theoretically possible to make it for the other side animations, but x-rays are the only ones that are easy since they're just a single big animation to begin with.
In theory, it'd be possible to use entirely different animations according to speed. It should even be possible to do other checks to do further replacements. e.g. use bigger dongs for the black wolf, use more aggressive animation for when the horse is going very fast, etc. If someone already has the webms ready I could maybe spend some time researching how to add even more webms, but for now I'm satisfied with just making it possible to replace the default animations.
Anyway, I don't think it gets any easier to mod than this:
View attachment 1560928