Results 1 to 2 of 2
  1. #1
    SuperShifty's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    2
    My Mood
    Twisted

    Post WORKING X-RAY(CAMERAS,ENEMIES,CIVILIANS)

    IMPROVED!
    I still see people trying to use the old X-Ray vision script and bursting into confusion when the game CTD's so I decided to post this
    I TAKE NO CREDIT FOR THIS SCRIPT!!!

    I can't get colors to work so everything will be marked red. Be patient as the X-ray script coming with Pirate Perfection v13 will at least have colored civilians when it releases.

    For people who don't know what to do with this, copy/paste into a text document or Notepad++ if you have it then save it as a .lua and replace it with your old X-Ray .lua

    Code:
    -- X-RAY VISION v2.0 (post infamy edition)
    -- MARKS ENEMIES,CIVIES,CAMS
    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
      --unit:contour():add( "mark_enemy" )
     end
     local units = World:find_units_quick( "all" )
     for i,unit in ipairs( units ) do
      if unit:contour() then 
                            unit:contour():add( "mark_unit" )
      end
     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
       end
      end
     end
    end

  2. #2
    sandervend's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    Wonder if it's possible to highlight the mission items, since it should be

Similar Threads

  1. [Source Code] X-Ray Vision 2.0 WORKING WITH CIVILIANS AND ENEMIES
    By SuperShifty in forum Payday 2 Hacks & Cheats
    Replies: 6
    Last Post: 03-25-2014, 06:47 AM
  2. Working X-ray for play.hackercraft.net?
    By basieb in forum Minecraft Help
    Replies: 3
    Last Post: 01-18-2014, 01:52 PM
  3. Camera Work/Scripting?
    By Raisinets in forum Vindictus Help
    Replies: 1
    Last Post: 04-23-2011, 01:06 PM
  4. Replies: 76
    Last Post: 09-03-2008, 05:32 AM

Tags for this Thread