+description
parent
7b84917f48
commit
5a61298cd9
|
@ -68,6 +68,7 @@ minetest.register_craft({
|
||||||
|
|
||||||
|
|
||||||
aliveai.create_bot({
|
aliveai.create_bot({
|
||||||
|
description="Superfast eleltric Terminator",
|
||||||
drop_dead_body=0,
|
drop_dead_body=0,
|
||||||
attack_players=1,
|
attack_players=1,
|
||||||
name="eletric_terminator3",
|
name="eletric_terminator3",
|
||||||
|
@ -86,6 +87,7 @@ aliveai.create_bot({
|
||||||
name_color="",
|
name_color="",
|
||||||
attack_chance=3,
|
attack_chance=3,
|
||||||
damage_by_blocks=0,
|
damage_by_blocks=0,
|
||||||
|
mindamage=5,
|
||||||
on_step=function(self,dtime)
|
on_step=function(self,dtime)
|
||||||
if self.fight and aliveai.visiable(self,self.fight) then
|
if self.fight and aliveai.visiable(self,self.fight) then
|
||||||
local p=self.object:get_pos()
|
local p=self.object:get_pos()
|
||||||
|
@ -101,11 +103,9 @@ aliveai.create_bot({
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
on_load=function(self)
|
on_load=function(self)
|
||||||
self.hp2=self.object:get_hp()
|
|
||||||
self.move.speed=4
|
self.move.speed=4
|
||||||
end,
|
end,
|
||||||
spawn=function(self)
|
spawn=function(self)
|
||||||
self.hp2=self.object:get_hp()
|
|
||||||
self.move.speed=4
|
self.move.speed=4
|
||||||
end,
|
end,
|
||||||
on_blow=function(self)
|
on_blow=function(self)
|
||||||
|
@ -137,12 +137,7 @@ aliveai.create_bot({
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
on_punched=function(self,puncher)
|
on_punched=function(self,puncher)
|
||||||
if self.hp2-self.hp<5 then
|
if aliveai.team(puncher)~="nuke" then aliveai_electric.hit(puncher) end
|
||||||
self.object:set_hp(self.hp2)
|
|
||||||
self.hp=self.hp2
|
|
||||||
if aliveai.team(puncher)~="nuke" then aliveai_electric.hit(puncher) end
|
|
||||||
return self
|
|
||||||
end
|
|
||||||
local pos=self.object:get_pos()
|
local pos=self.object:get_pos()
|
||||||
minetest.add_particlespawner({
|
minetest.add_particlespawner({
|
||||||
amount = 20,
|
amount = 20,
|
||||||
|
@ -163,6 +158,7 @@ aliveai.create_bot({
|
||||||
})
|
})
|
||||||
|
|
||||||
aliveai.create_bot({
|
aliveai.create_bot({
|
||||||
|
description="Lightning Terminator",
|
||||||
drop_dead_body=0,
|
drop_dead_body=0,
|
||||||
attack_players=1,
|
attack_players=1,
|
||||||
name="eletric_terminator",
|
name="eletric_terminator",
|
||||||
|
@ -180,6 +176,7 @@ aliveai.create_bot({
|
||||||
name_color="",
|
name_color="",
|
||||||
attack_chance=3,
|
attack_chance=3,
|
||||||
damage_by_blocks=0,
|
damage_by_blocks=0,
|
||||||
|
mindamage=5,
|
||||||
on_step=function(self,dtime)
|
on_step=function(self,dtime)
|
||||||
if self.fight and math.random(1,3)==1 and aliveai.visiable(self,self.fight) and aliveai.viewfield(self,self.fight) then
|
if self.fight and math.random(1,3)==1 and aliveai.visiable(self,self.fight) and aliveai.viewfield(self,self.fight) then
|
||||||
local pos=self.object:get_pos()
|
local pos=self.object:get_pos()
|
||||||
|
@ -188,12 +185,6 @@ aliveai.create_bot({
|
||||||
aliveai.use(self)
|
aliveai.use(self)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
on_load=function(self)
|
|
||||||
self.hp2=self.object:get_hp()
|
|
||||||
end,
|
|
||||||
spawn=function(self)
|
|
||||||
self.hp2=self.object:get_hp()
|
|
||||||
end,
|
|
||||||
on_blow=function(self)
|
on_blow=function(self)
|
||||||
aliveai.kill(self)
|
aliveai.kill(self)
|
||||||
self.death(self,self.object,self.object:get_pos())
|
self.death(self,self.object,self.object:get_pos())
|
||||||
|
@ -229,12 +220,7 @@ aliveai.create_bot({
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
on_punched=function(self,puncher)
|
on_punched=function(self,puncher)
|
||||||
if self.hp2-self.hp<5 then
|
if aliveai.team(puncher)~="nuke" then aliveai_electric.hit(puncher) end
|
||||||
self.object:set_hp(self.hp2)
|
|
||||||
self.hp=self.hp2
|
|
||||||
if aliveai.team(puncher)~="nuke" then aliveai_electric.hit(puncher) end
|
|
||||||
return self
|
|
||||||
end
|
|
||||||
local pos=self.object:get_pos()
|
local pos=self.object:get_pos()
|
||||||
minetest.add_particlespawner({
|
minetest.add_particlespawner({
|
||||||
amount = 20,
|
amount = 20,
|
||||||
|
@ -255,6 +241,7 @@ aliveai.create_bot({
|
||||||
})
|
})
|
||||||
|
|
||||||
aliveai.create_bot({
|
aliveai.create_bot({
|
||||||
|
description="Flying lightning Terminator",
|
||||||
drop_dead_body=0,
|
drop_dead_body=0,
|
||||||
attack_players=1,
|
attack_players=1,
|
||||||
name="eletric_terminator2",
|
name="eletric_terminator2",
|
||||||
|
@ -273,6 +260,7 @@ aliveai.create_bot({
|
||||||
attack_chance=3,
|
attack_chance=3,
|
||||||
floating=1,
|
floating=1,
|
||||||
damage_by_blocks=0,
|
damage_by_blocks=0,
|
||||||
|
mindamage=5,
|
||||||
on_step=function(self,dtime)
|
on_step=function(self,dtime)
|
||||||
if self.fight and math.random(1,3)==1 and aliveai.visiable(self,self.fight) and aliveai.viewfield(self,self.fight) then
|
if self.fight and math.random(1,3)==1 and aliveai.visiable(self,self.fight) and aliveai.viewfield(self,self.fight) then
|
||||||
local pos=self.object:get_pos()
|
local pos=self.object:get_pos()
|
||||||
|
@ -281,12 +269,6 @@ aliveai.create_bot({
|
||||||
aliveai.use(self)
|
aliveai.use(self)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
on_load=function(self)
|
|
||||||
self.hp2=self.object:get_hp()
|
|
||||||
end,
|
|
||||||
spawn=function(self)
|
|
||||||
self.hp2=self.object:get_hp()
|
|
||||||
end,
|
|
||||||
on_blow=function(self)
|
on_blow=function(self)
|
||||||
aliveai.kill(self)
|
aliveai.kill(self)
|
||||||
self.death(self,self.object,self.object:get_pos())
|
self.death(self,self.object,self.object:get_pos())
|
||||||
|
@ -319,15 +301,10 @@ aliveai.create_bot({
|
||||||
aliveai_electric.hit(target,10)
|
aliveai_electric.hit(target,10)
|
||||||
end,
|
end,
|
||||||
on_punched=function(self,puncher)
|
on_punched=function(self,puncher)
|
||||||
if self.hp2-self.hp<5 then
|
if aliveai.team(puncher)~="nuke" then
|
||||||
self.object:set_hp(self.hp2)
|
if aliveai.is_bot(puncher) then aliveai.dying(puncher:get_luaentity(),1) end
|
||||||
self.hp=self.hp2
|
aliveai.punchdmg(puncher,15)
|
||||||
if aliveai.team(puncher)~="nuke" then
|
aliveai_electric.hit(puncher)
|
||||||
if aliveai.is_bot(puncher) then aliveai.dying(puncher:get_luaentity(),1) end
|
|
||||||
aliveai.punchdmg(puncher,15)
|
|
||||||
aliveai_electric.hit(puncher)
|
|
||||||
end
|
|
||||||
return self
|
|
||||||
end
|
end
|
||||||
local pos=self.object:get_pos()
|
local pos=self.object:get_pos()
|
||||||
minetest.add_particlespawner({
|
minetest.add_particlespawner({
|
||||||
|
|
Loading…
Reference in New Issue