电脑大家应该不怎么陌生吧!现在电脑已经普及到大多数人的家庭之中了,电脑的用途非常地广,不同年龄段、不同行业的人对电脑的用处不同。但是对于很多的年轻人来说电脑最大的用途就是玩游戏了。电脑游戏大家肯定玩过吧!它可以使人上瘾。
本文是由玩家nicki1314分享的收获日2的透视修改代码,能透视敌人和市民,可以用海盗修改器v12版修改,也可手动修改,有兴趣的玩家可以来看看。
透视敌人和市民:
-- 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 都会跳窗吧
修复这个以后就不会了 而且实测可用
懂改的直接取代即可
不懂改的就以下的:
用笔记本打开 X RAY.lua 然后搜寻 function mark_enemies() 將 function mark_enemies() 以下的所有 全部取代 即可
关键词: 收获日2透视辅助lua代码 支持海盗v12_收获日2怎样设置透视敌人与市民_单机秘籍_跑跑车单机游戏网