ShittingSimulator/mods/shit_robocops/init.lua

57 lines
980 B
Lua
Raw Normal View History

2022-11-22 01:14:18 +01:00
minetest.register_abm({
2022-11-22 03:58:39 +01:00
nodenames = {"poop:grey_bricks"},
2022-11-22 12:47:56 +01:00
interval = 40,
2022-11-22 04:32:31 +01:00
chance = 200,
2022-11-22 01:14:18 +01:00
action = function(pos, node, active_object_count, active_object_count_wider)
2022-11-22 03:58:39 +01:00
minetest.add_entity({x = pos.x, y = pos.y + 1, z = pos.z}, "robocops:robocop")
2022-11-22 01:14:18 +01:00
end
})
2022-11-22 01:01:11 +01:00
mobs:register_mob("robocops:robocop", {
type = "monster",
passive = false,
2022-11-22 03:58:39 +01:00
attack_type = "dogfight",
2022-11-22 01:01:11 +01:00
pathfinding = true,
reach = 2,
2022-11-22 04:32:31 +01:00
damage = 1,
2022-11-22 01:01:11 +01:00
hp_min = 21,
hp_max = 25,
armor = 100,
collisionbox =
{
-.4, 0, -.4, .4, 2, .4
},
pushable = true,
visual = "mesh",
mesh = "character.b3d",
textures =
{
{"robocops_robocop.png"},
},
makes_footstep_sound = true,
walk_velocity = 4,
2022-11-22 04:32:31 +01:00
run_velocity = 5,
2022-11-22 01:01:11 +01:00
jump_height = 1,
stepheight = 0,
floats = 0,
view_range = 60,
animation =
{
speed_normal = 30,
speed_run = 50,
stand_start = 0,
stand_end = 79,
walk_start = 168,
walk_end = 187,
run_start = 168,
run_end = 187,
punch_start = 200,
punch_end = 219
},
})