收獲日2透視輔助lua代碼 支持海盜v12
本文是由玩家nicki1314分享的收獲日2的透視修改代碼,能透視敵人和市民,可以用海盜修改器v12版修改,也可手動(dòng)修改,有興趣的玩家可以來(lái)看看。
透視敵人和市民:
-- X-RAY VISION v2.0 (post infamy edition) EDITED BY SUPER SHIFTY
-- MARKS ENEMIES AND CIVILIANS ONLY (NO CAMERAS)
function mark_enemies()
for u_key,u_data in pairs(managers.enemy:all_civilians()) do
u_data.unit:contour():add( "mark_enemy" )
end
for u_key,u_data in pairs(managers.enemy:all_enemies()) do
u_data.unit:contour():add( "mark_enemy" )
end
for u_key, unit in pairs( managers.groupai:state()._security_cameras ) do
--u_data.unit:contour():add( "mark_enemy" )
end
end
function UnitNetworkHandler:mark_enemy( unit, marking_strength, sender )
end
if not _markingToggle then _marktoggle = nil _markingToggle = true
else _markingToggle = nil
end
if not _gameUpdate then _gameUpdate = GameSetup.update
end
do
local _gameUpdateLastMark
function GameSetup:update( t, dt )
_gameUpdate(self, t, dt)
_gameUpdateLastMark = t
if _markingToggle then
mark_enemies()
else
if not _marktoggle then
_marktoggle = true
for u_key,u_data in pairs(managers.enemy:all_enemies()) do
u_data.unit:contour():remove( "mark_enemy" )
end
for u_key,u_data in pairs(managers.enemy:all_civilians()) do
u_data.unit:contour():remove( "mark_enemy" )
end
end
end
end
end只透視敵人:
-- X-RAY VISION v2.0 (post infamy edition) EDITED BY SUPER SHIFTY
-- MARKS ENEMIES ONLY
function mark_enemies()
for u_key,u_data in pairs(managers.enemy:all_civilians()) do
--u_data.unit:contour():add( "mark_enemy" )
end
for u_key,u_data in pairs(managers.enemy:all_enemies()) do
u_data.unit:contour():add( "mark_enemy" )
end
for u_key, unit in pairs( managers.groupai:state()._security_cameras ) do
--u_data.unit:contour():add( "mark_enemy" )
end
end
function UnitNetworkHandler:mark_enemy( unit, marking_strength, sender )
end
if not _markingToggle then _marktoggle = nil _markingToggle = true
else _markingToggle = nil
end
if not _gameUpdate then _gameUpdate = GameSetup.update
end
do
local _gameUpdateLastMark
function GameSetup:update( t, dt )
_gameUpdate(self, t, dt)
_gameUpdateLastMark = t
if _markingToggle then
mark_enemies()
else
if not _marktoggle then
_marktoggle = true
for u_key,u_data in pairs(managers.enemy:all_enemies()) do
u_data.unit:contour():remove( "mark_enemy" )
end
for u_key,u_data in pairs(managers.enemy:all_civilians()) do
u_data.unit:contour():remove( "mark_enemy" )
end
end
end
end
end
只透視市民:
-- X-RAY VISION v2.0 (post infamy edition) EDITED BY SUPER SHIFTY
-- MARKS ENEMIES AND CIVILIANS ONLY (NO CAMERAS)
function mark_enemies()
for u_key,u_data in pairs(managers.enemy:all_civilians()) do
u_data.unit:contour():add( "mark_enemy" )
end
for u_key,u_data in pairs(managers.enemy:all_enemies()) do
--u_data.unit:contour():add( "mark_enemy" )
end
for u_key, unit in pairs( managers.groupai:state()._security_cameras ) do
--u_data.unit:contour():add( "mark_enemy" )
end
end
function UnitNetworkHandler:mark_enemy( unit, marking_strength, sender )
end
if not _markingToggle then _marktoggle = nil _markingToggle = true
else _markingToggle = nil
end
if not _gameUpdate then _gameUpdate = GameSetup.update
end
do
local _gameUpdateLastMark
function GameSetup:update( t, dt )
_gameUpdate(self, t, dt)
_gameUpdateLastMark = t
if _markingToggle then
mark_enemies()
else
if not _marktoggle then
_marktoggle = true
for u_key,u_data in pairs(managers.enemy:all_enemies()) do
u_data.unit:contour():remove( "mark_enemy" )
end
for u_key,u_data in pairs(managers.enemy:all_civilians()) do
u_data.unit:contour():remove( "mark_enemy" )
end
end
end
end
end
下載了的人V12的按X 都會(huì)跳窗吧
修復(fù)這個(gè)以后就不會(huì)了 而且實(shí)測(cè)可用
懂改的直接取代即可
不懂改的就以下的:
用筆記本打開 X RAY.lua 然后搜尋 function mark_enemies() 將 function mark_enemies() 以下的所有 全部取代 即可
查看所有0條評(píng)論>>