Untitled

mail@pastecode.io avatar
unknown
lua
2 months ago
1.5 kB
0
Indexable
Never
--creating a class for fighter characters
local FIGHTER = {
	[hash("nanaya")] = {
		atlas = "nanaya",
		name = "Nanaya",
		speed_forwards = 5,
		speed_backwards = 3,
		moves = {
			[hash("punch")] = {
				{
					keys_held = {hash("duck")},
					keys_sequence = {},
					state = hash("ready"),
					anim = "crouch_punch",
					hitbox = "#hitbox_simple",
					damage_point = 1,
					damage_pos = vmath.vector3(100, 50, 0),
					force = vmath.vector3(6000, 10000, 0),
					damage = 7,
					recovery = 20
				},
				{
					keys_held = {},
					keys_sequence = {hash("punch"), hash("backward"), hash("forward")},
					state = hash("ready"),
					anim = "dragonkick",
					hitbox = "#hitbox_simple",
					speed = 8,
					damage_point = 60,
					damage_pos = vmath.vector3(85, 50, 0),
					force = vmath.vector3(14000, 120000, 0),
					damage = 40,
					recovery = 90
				},
				{
					keys_held = {},
					keys_sequence = {},
					state = hash("ready"),
					anim = "punch",
					hitbox = "#hitbox_simple",
					damage_point = 1,
					damage_pos = vmath.vector3(150, 50, 0),
					force = vmath.vector3(6000, 10000, 0),
					damage = 7,
					recovery = 10
				},
				{
					keys_held = {},
					keys_sequence = {},
					state = hash("jump"),
					anim = "jump_kick",
					hitbox = "#hitbox_jump",
					damage_point = 1,
					damage_pos = vmath.vector3(180, -37, 0),
					force = vmath.vector3(60000, 15000, 0),
					damage = 12,
					recovery = nil
				}
			}
		}
	},
}

return FIGHTER
Leave a Comment