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

    Exclamation

    OUTDATED!
    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 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
    		--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
    			end
    		end
    	end
    end
    Last edited by SuperShifty; 03-25-2014 at 06:43 AM. Reason: OUTDATED

  2. #2
    sandervend's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    Nice code, I for one though found it really annoying that it highlighted civilians, or maybe make it another color. (I fixed it for myself)

  3. #3
    xboxlivenerd's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    My Room @.@
    Posts
    21
    Reputation
    10
    Thanks
    5
    My Mood
    Inspired
    Thanks a lot! I've been looking for something like this for the past few days

  4. #4
    SuperShifty's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    2
    My Mood
    Twisted
    Quote Originally Posted by sandervend View Post
    Nice code, I for one though found it really annoying that it highlighted civilians, or maybe make it another color. (I fixed it for myself)
    I've been trying to fix it but it seems that changing the color now causes it to CTD
    For anyone else that doesn't want marked civilians change Line 5 to this.

    Code:
    --u_data.unit:contour():add( "mark_enemy" )
    basically just put 2 dashes in front of it.

  5. #5
    nicki1314's Avatar
    Join Date
    Mar 2014
    Gender
    female
    Posts
    1
    Reputation
    10
    Thanks
    0
    same colour /.\??

  6. #6
    SuperShifty's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    2
    My Mood
    Twisted
    Quote Originally Posted by nicki1314 View Post
    same colour /.\??
    Read the above post..
    Last edited by SuperShifty; 03-25-2014 at 02:19 AM.

  7. #7
    SuperShifty's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    2
    My Mood
    Twisted
    Could a Moderator please remove or mark this thread as outdated?

Similar Threads

  1. [Tutorial] How to connect to your IW5M 4D1 (Also works with Steam and Teknomw3)
    By nik nal in forum Call of Duty Modern Warfare 3 Private Server Hacks
    Replies: 3
    Last Post: 09-30-2012, 06:24 PM
  2. Working with sounds and attachments
    By lalo9 in forum Combat Arms Mod Request
    Replies: 0
    Last Post: 06-21-2011, 07:32 PM
  3. Does an087535 hacks works with xp and vista?
    By Mat17 in forum Combat Arms Hacks & Cheats
    Replies: 29
    Last Post: 06-11-2009, 04:27 AM
  4. Replies: 2
    Last Post: 03-01-2007, 07:10 PM
  5. [Tutorial]Working with cheatengine these days
    By System79 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 09-06-2006, 11:48 PM

Tags for this Thread