Reply To: Free Ride for DLC Joe’s Adventures v2.0
Home / Forums / Modders Corner / Mafia Scene Modders / eXistenZ34’s Mods / Free Ride for DLC Joe’s Adventures v2.0 / Reply To: Free Ride for DLC Joe’s Adventures v2.0
it’s fonction math.abs
but in car it all depends on the speed – walk is still Ok
and it poses a problem for mansion.
Here are different test and for verify it removes the hat of Vito.
for i=1,1 do — entre 41 plus de chapeau
if math.abs(game.game:GetActivePlayer():GetPos().x-testx)<4 and math.abs(game.game:GetActivePlayer():GetPos().y-testy)<4 and testw==1 then testw=0 game.game:GetActivePlayer():ShowHat(false)end
if math.abs(game.game:GetActivePlayer():GetPos().x-testx)>1 or math.abs(game.game:GetActivePlayer():GetPos().y-testy)>1 and testw==0 then testw=1 end
end
for i=1,1 do — de infini a >1Ãâàplus de chapeau
if math.abs(game.game:GetActivePlayer():GetPos().x-testx)<4 and math.abs(game.game:GetActivePlayer():GetPos().y-testy)<4 and testw==1 then testw=0 end
if math.abs(game.game:GetActivePlayer():GetPos().x-testx)>1 or math.abs(game.game:GetActivePlayer():GetPos().y-testy)>1 and testw==0 then testw=1 game.game:GetActivePlayer():ShowHat(false)end
end
for i=1,1 do — Couloir de 1 et de 4 plus de chapeau
if math.abs(game.game:GetActivePlayer():GetPos().x-testx)<4 or math.abs(game.game:GetActivePlayer():GetPos().y-testy)<4 and testw==1 then testw=0 game.game:GetActivePlayer():ShowHat(false)end
if math.abs(game.game:GetActivePlayer():GetPos().x-testx)>1 and math.abs(game.game:GetActivePlayer():GetPos().y-testy)>1 and testw==0 then testw=1 end
end
for i=1,1 do — Bizzare comme un couloir
if math.abs(game.game:GetActivePlayer():GetPos().x-testx)<4 or math.abs(game.game:GetActivePlayer():GetPos().y-testy)<4 and testw==1 then testw=0 end
if math.abs(game.game:GetActivePlayer():GetPos().x-testx)>1 and math.abs(game.game:GetActivePlayer():GetPos().y-testy)>1 and testw==0 then testw=1 game.game:GetActivePlayer():ShowHat(false)end
end
for i=1,1 do — de infini a >4 et de 1< a 0 plus de chapeau
if math.abs(game.game:GetActivePlayer():GetPos().x-testx)>4 or math.abs(game.game:GetActivePlayer():GetPos().y-testy)<4 and testw==1 then testw=0 game.game:GetActivePlayer():ShowHat(false)end
if math.abs(game.game:GetActivePlayer():GetPos().x-testx)<1 and math.abs(game.game:GetActivePlayer():GetPos().y-testy)<1 and testw==0 then testw=1 end
end
for i=1,1 do — de 0 a >1Ãâàplus de chapeau
if math.abs(game.game:GetActivePlayer():GetPos().x-testx)>4 or math.abs(game.game:GetActivePlayer():GetPos().y-testy)<4 and testw==1 then testw=0 end
if math.abs(game.game:GetActivePlayer():GetPos().x-testx)<1 and math.abs(game.game:GetActivePlayer():GetPos().y-testy)<1 and testw==0 then testw=1 game.game:GetActivePlayer():ShowHat(false)end
end
for i=1,1 do — Couloir
if math.abs(game.game:GetActivePlayer():GetPos().x-testx)>4 and math.abs(game.game:GetActivePlayer():GetPos().y-testy)<4 and testw==1 then testw=0 game.game:GetActivePlayer():ShowHat(false)end
if math.abs(game.game:GetActivePlayer():GetPos().x-testx)<1 or math.abs(game.game:GetActivePlayer():GetPos().y-testy)<1 and testw==0 then testw=1 end
end
for i=1,1 do — Couloir
if math.abs(game.game:GetActivePlayer():GetPos().x-testx)>4 and math.abs(game.game:GetActivePlayer():GetPos().y-testy)<4 and testw==1 then testw=0 end
if math.abs(game.game:GetActivePlayer():GetPos().x-testx)<1 or math.abs(game.game:GetActivePlayer():GetPos().y-testy)<1 and testw==0 then testw
