Garry's Mod

Garry's Mod

48 个评价
Oneko Cursor Follower (Marisa Kirisame included)
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 卡通, 快乐
文件大小
发表于
更新日期
27.095 KB
2024 年 12 月 31 日 下午 9:58
2024 年 12 月 31 日 下午 10:22
3 项改动说明 ( 查看 )

订阅以下载
Oneko Cursor Follower (Marisa Kirisame included)

描述
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 条留言
FredojiraX 10 月 4 日 上午 1:16 
cutey
M10-ersatz 5 月 18 日 下午 8:44 
this is good
MLG Enjoyer 1 月 6 日 下午 8:24 
little marisa :3
dexter mickey mouse edits  [作者] 1 月 3 日 下午 5:06 
iirc oneko_enabled 0

All concommands/convars start with oneko_ so just type that in and itll show up
catnip 1 月 2 日 下午 2:02 
is there away to turn it off