And so it begins...
35
mods/artifact_characters/init.lua
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
|
||||
local ns = artifact
|
||||
|
||||
function ns.apply_key(m)
|
||||
m.object:set_properties {
|
||||
textures = {"artifact_key.png"},
|
||||
visual_size = vector.new(1,1,1) *0.88,
|
||||
eye_height = 1.6
|
||||
}
|
||||
m.eye_height = 1.6
|
||||
end
|
||||
|
||||
function ns.apply_vix(m)
|
||||
m.object:set_properties {
|
||||
textures = {"artifact_vix.png"},
|
||||
visual_size = vector.new(1,1,1) *0.8,
|
||||
eye_height = 1.5
|
||||
}
|
||||
m.eye_height = 1.5
|
||||
end
|
||||
|
||||
function ns.swap_character(m)
|
||||
if m.character == "vix" then
|
||||
m:set_character("key")
|
||||
ns.apply_key(m)
|
||||
else
|
||||
m:set_character("vix")
|
||||
ns.apply_vix(m)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
include "key.lua"
|
||||
include "vix.lua"
|
||||
3
mods/artifact_characters/key.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
local ns = artifact
|
||||
|
||||
2
mods/artifact_characters/mod.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
name = artifact_characters
|
||||
depends = artifact_story
|
||||
1
mods/artifact_characters/models/artifact_character.gltf
Normal file
BIN
mods/artifact_characters/textures/artifact_key.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
mods/artifact_characters/textures/artifact_key_splash.png
Normal file
|
After Width: | Height: | Size: 755 KiB |
BIN
mods/artifact_characters/textures/artifact_key_splash_low.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
mods/artifact_characters/textures/artifact_swap.png
Normal file
|
After Width: | Height: | Size: 265 B |
BIN
mods/artifact_characters/textures/artifact_vix.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
mods/artifact_characters/textures/artifact_vix_splash.png
Normal file
|
After Width: | Height: | Size: 753 KiB |
BIN
mods/artifact_characters/textures/artifact_vix_splash_low.png
Normal file
|
After Width: | Height: | Size: 5 KiB |