Minor improvements and name changes
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
--Anti magnet script exploit
|
--Anti magnet script exploit
|
||||||
--by Greenlander
|
--by Greenlander
|
||||||
----------------------------
|
----------------------------
|
||||||
local debug = false -- visualize the line of sight which detects objects in game
|
local debug = true -- visualize the line of sight which detects objects in game
|
||||||
local blowTime = 10000 -- in milliseconds - Sets the time after which players vehicle gets blows if the timer is not reset within time
|
local blowTime = 5000 -- in milliseconds - Sets the time after which players vehicle gets blows if the timer is not reset within time
|
||||||
local resetTime = 100 -- in milliseconds - Sets the time interval to check if gravity is altered and objects are below vehivle
|
local resetTime = 100 -- in milliseconds - Sets the time interval to check if gravity is altered and objects are below vehivle
|
||||||
|
|
||||||
--Blow vehicle if no objects detected within "blowTime"
|
--Blow vehicle if no objects detected within "blowTime"
|
||||||
@@ -45,7 +45,7 @@ setTimer(
|
|||||||
|
|
||||||
-- visualize processLineOfSight and print result
|
-- visualize processLineOfSight and print result
|
||||||
if debug then
|
if debug then
|
||||||
dxDrawLine3D(cx, cy, cz, offX, offY, offZ, tocolor(255, 0, 0, 255), 2)
|
dxDrawLine3D(cx, cy, cz, offX, offY, offZ, tocolor(255, 0, 0, 255), 3)
|
||||||
print(tostring(hit))
|
print(tostring(hit))
|
||||||
end
|
end
|
||||||
|
|
||||||
2
meta.xml
2
meta.xml
@@ -1,4 +1,4 @@
|
|||||||
<meta>
|
<meta>
|
||||||
<info name="Anti-Magnet-Script" author="Greenlander" version="1.0.0" type="script" description="Prevents players from exploiting magnet script and fly to hunter."/>
|
<info name="Anti-Magnet-Script" author="Greenlander" version="1.0.0" type="script" description="Prevents players from exploiting magnet script and fly to hunter."/>
|
||||||
<script src="client.lua" type="client" />
|
<script src="ams.lua" type="client" />
|
||||||
</meta>
|
</meta>
|
||||||
Reference in New Issue
Block a user