added random mini crewmate colors
This commit is contained in:
parent
bc21a51a77
commit
71cf78c304
@ -41,6 +41,7 @@ local entity = {
|
||||
on_activate = function(self, staticdata)
|
||||
local texture = textures_b[math.random(#textures_b)]
|
||||
self.object:set_properties({textures = {texture}})
|
||||
|
||||
self.object:set_yaw(math.random() * 2 * math.pi)
|
||||
self.rotation_direction = math.random(-1, 1)
|
||||
self.min_max_jump_force_diff = self.max_jump_force - self.min_jump_force
|
||||
|
@ -1,3 +1,9 @@
|
||||
local textures_b = {
|
||||
"amogus_entity.png",
|
||||
"amogus_entity_b.png",
|
||||
"amogus_entity_g.png",
|
||||
"amogus_entity_br.png"
|
||||
}
|
||||
|
||||
local entity = {
|
||||
physical = true,
|
||||
@ -7,7 +13,6 @@ local entity = {
|
||||
visual_size = {x=5, y=5, z=5},
|
||||
|
||||
mesh = "amogus_entity.obj",
|
||||
textures = {"amogus_entity.png"},
|
||||
|
||||
on_rightclick = function(self, clicker)
|
||||
minetest.chat_send_player(clicker:get_player_name(), "SO SUSSY!")
|
||||
@ -73,6 +78,9 @@ local entity = {
|
||||
mode = 0, -- | 0 - stand still | 1 - walk | 2 - chase | 3 - run away | 4 - rest mode |
|
||||
|
||||
on_activate = function(self, staticdata)
|
||||
local texture = textures_b[math.random(#textures_b)]
|
||||
self.object:set_properties({textures = {texture}})
|
||||
|
||||
self.object:set_yaw(math.random() * 2 * math.pi)
|
||||
self.rotation_direction = math.random(-1, 1)
|
||||
end,
|
||||
|
Loading…
x
Reference in New Issue
Block a user