Add files via upload
parent
0f27f64872
commit
7788238b04
|
@ -105,7 +105,7 @@ aliveai_electric.hit=function(ob,level,dmg1)
|
|||
end
|
||||
aliveai.punchdmg(ob,dmg)
|
||||
if en==1 and ob then
|
||||
ob:setvelocity({x=math.random(-1,1)*0.1, y=ob:getvelocity().y, z=math.random(-1,1)*0.1})
|
||||
ob:set_velocity({x=math.random(-1,1)*0.1, y=ob:get_velocity().y, z=math.random(-1,1)*0.1})
|
||||
end
|
||||
elseif aliveai_nitroglycerine and dmg>4 and math.random(1,5)==1 then
|
||||
aliveai_nitroglycerine.explode(ob:get_pos(),{radius=2,blow_nodes=0})
|
||||
|
@ -355,3 +355,4 @@ minetest.register_node("aliveai_electric:chock", {
|
|||
minetest.set_node(pos,{name="air"})
|
||||
end,
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue