Add files via upload

master
AiTechEye 2018-08-13 12:08:20 +02:00 committed by GitHub
parent 0f27f64872
commit 7788238b04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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,
})