Delete the old version of Epilepsy Warning before updating to v1.0.
Requires BeardLib and Animated Skin Framework. Drop into mod_overrides.
This mod contains two animated skins:
- Epilepsy Warning: this skin plays music when equipped. The song will change after switching weapons.
- Epilepsy Warning Legacy: the original apperance of the skin without music.
Note on the music: big budget songs are usually not allowed, but the moderators have allowed this particular case because only a very short segment of the song is used. Fair use usually allows a short part of copyrighted material to be used for non-commerical purpose.
Rex/Mercu gave me the idea for changing the appearance of a skin by adjusting the wear value ingame. This mod is just a proof of concept.
This mod demonstrates how you can set up a universal skin or weapon color to use the Animated Skin Framework.
- Epilepsy Warning is set up as a universal skin so it supports stickers. The CAR-4 family of guns will have a yellow warning sticker on the lower receiver.
- Epilepsy Warning Legacy is set up as a weapon color. It is configured to always appear "Dipped" so the texture covers the entire gun regardless of what paint scheme is chosen.
In-game the base color is black and the skin will give you seizures. The skin is static in inventory and looks kinda gold. I don't know why it's gold, I know nothing about making skins. It doesn't matter what paint scheme / wear / pattern scale you choose, the skin will always look the same.
You can change how fast the skin flashes by editing line 9 of hooks/cosmeticsweaponbase.lua
. The frequency is in Hz, i.e. setting f=4
makes the gun flash 4 times per second. Set the frequency larger than 0 (doesn't need to be an integer).
I used ScoffingAtol's Miami Night skin as a reference for getting the universal skin set up.