Garry's Mod

Garry's Mod

49 betyg
Oneko Cursor Follower (Marisa Kirisame included)
2
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Content Type: Addon
Addon Type: Effects
Addon Tags: Cartoon, Fun
Filstorlek
Lades upp
Uppdaterades
27.095 KB
31 dec, 2024 @ 21:58
31 dec, 2024 @ 22:22
3 ändringsnotiser ( visa )

Abonnera för att ladda ner
Oneko Cursor Follower (Marisa Kirisame included)

Beskrivning
A Garry's Mod port of an Oneko-style cursor follower, with a Marisa Kirisame skin provided as default.

You are able to make your own custom skins by defining them in your data folder; I do not currently feel like writing good documentation for that (I am sick and uploading this for a friend) but will likely write docs after. In case I forget, the jist is this and your mileage will probably vary (sorry...);

make a file (path should be similar to this: GarrysMod/garrysmod/data/oneko/YOUR_SPRITENAME_HERE.json), which has the following key-values:

material = "material/path.png"

tilesize = (size of each tile in the spritesheet)

sprites = {} (a key-value table)
key is one of the following: idle, alert, scratchSelf, scratchWallN, scratchWallS, scratchWallE, scratchWallW, tired, sleeping, N, NE, E, SE, S, SW, W, NW
value is a table of tables defining the X and Y offsets (local to a "tile", so 1, 4 would be tilesize * 1 x, tilesize * 4 y)

They can also be defined in the Lua API but that's boring and doesnt let you customize it without Lua access

then, use the oneko_spritesheet concommand, with the first argument being YOUR_SPRITENAME_HERE (no .json), and it should just work, I haven't tested it properly yet so if it doesn't work leave a comment and I'll fix it later. Again, hastily uploaded, friend wanted Marisa following his cursor

here's the marisa definition (via the Lua API, but you could do the same thing in json)
oneko.registerNeko("marisa", { material = "oneko/marisa.png", tilesize = 32, sprites = { idle = {{3, 3}}, alert = {{7, 3}}, scratchSelf = {{5, 0}, {6, 0}, {7, 0},}, scratchWallN = {{0, 0}, {0, 1},}, scratchWallS = {{7, 1}, {6, 2},}, scratchWallE = {{2, 2}, {2, 3},}, scratchWallW = {{4, 0}, {4, 1},}, tired = {{3, 2}}, sleeping = {{2, 0}, {2, 1},}, N = {{1, 2}, {1, 3},}, NE = {{0, 2}, {0, 3},}, E = {{3, 0}, {3, 1},}, SE = {{5, 1}, {5, 2},}, S = {{6, 3}, {7, 2},}, SW = {{5, 3}, {6, 1},}, W = {{4, 2}, {4, 3},}, NW = {{1, 0}, {1, 1},} } })
and here's the marisa image: https://i.imgur.com/SXPuWOI.png

CREDITS:
This PR: https://github.com/DishpitDev/Slopify/pull/87
Which, itself, uses this: https://github.com/adryd325/oneko.js
5 kommentarer
FredojiraX 4 okt @ 1:16 
cutey
M10-ersatz 18 maj @ 20:44 
this is good
MLG Enjoyer 6 jan @ 20:24 
little marisa :3
im waving as big as i can! can y  [skapare] 3 jan @ 17:06 
iirc oneko_enabled 0

All concommands/convars start with oneko_ so just type that in and itll show up
catnip 2 jan @ 14:02 
is there away to turn it off