ULX

Author Topic: Predator Tracking  (Read 4223 times)

0 Members and 1 Guest are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Predator Tracking
« on: September 29, 2006, 07:09:53 PM »
Example Screenshots

Crab, Antlion, Barney



Approaching Targets! Is it safe?



Headcrab in midflight VS Monk, with other spectators



See Vorti? Who? I see nothing! (Without NightVision)



THERE'S Vorti!! (With NightVision)



http://ulyssesmod.net/JamminR/Predator/Vision/Predator_Tracking_v1_1.rar
--UPDATED to v1.1 - Several fixes/added new AvP material by Devil_Rooster of FP forums

As this doesn't rely on ULib, I decided to release in Developer's corner.
Predator Tracking V1

Instructions -
Unrar the file into your (server/or game) root gmod9 folder.
Once extracted, you should have
gmod9/materials/KJPredator/ 2 files there
gmod9/lua/init/Pvision.lua
Open up Pvision.lua and adjust any variables you might want at the top.
Most are well explained.

To use,
In console, type, or, bind to one of your empty control keys,
Quote from: USAGE
Ptarget - Once turns on, Second increases distance, third time turns off.
This turns on the targeting boxes

Pmat - Cycles through the targeting material used for the targeting boxes. Several to choose from.
Wireframe (default) seems quickest.

Pback - Turn on or off night vision. This is a custom overlay, and should be compatible with video
cards that Gmod 9's 'night vision' doesn't work with. (See 'ToDo' list below for comment regarding those
that don't have the texture who join your server)

Originally intended (and still someday ) to be part of the entire 'Predator' lua Kronic (aka happyherbs69 on FP forums) and I are working on, it does two things.

1. Provides night vision overlay for those who have downloaded the custom texture, it's a green overlay that enhances contrast in dark rooms/areas.
 I originally hoped I could use a blue background, like Predator in the movies originally had, but never could make/find a blue that worked the same, so, I just used the green.
The nightvision overlay, and code base for the nightvision(only) are from
http://forums.facepunchstudios.com/showthread.php?t=160481&highlight=NightVision

2. When Targeting is turned on, it 'targets' all npcs within a sphere, center point starting an adjustable amount of units away from
you. A target box is drawn on screen for each player/npc, and can be seen even if they're behind a wall, in the dark, in a fog, etc.

Quote from: CREDITS

-- Kronic - For just being an all around decent guy. The entire Predator lua mod idea I'm working on was taken from
-- a console script mod he'd released. Though I've tried to assign him lua tasks to learn, I've pretty much taken on 95%
-- of the lua code. I don't think he minds. :)
-- See his mod at http://forums.facepunchstudios.com/showthread.php?t=152404
-- Megiddo (vector support, dynamic HUD distance adjustment, moral support) - http://www.ulyssesmod.net - Ulib/ULX developer
-- Jinto (vector support, target sphere distance adjustment)
-- DeathStrike - he wrote a nightvision overlay that I got ideas from. Though not much of his code is used, it made
-- for great ideas. See his nightvision at http://forums.facepunchstudios.com/showthread.php?t=114088
-- Other users have helped in both FacePunch forums, and Ulyssesmod.net forums. Thanks to you, now and in future.

Quote from: ToDo: (Possibly)
- Add error checking to see if user has night vision overlay. If not, notify, and give url to get it.
- Edit more of the npc sizes. Currenltly only headcrabs and antlion are different.
That means, birds/zombie torso/non human size npcs will have 'human' size target boxes.
- Add color changes or some other signal for 'behind wall' npcs/players.
- Always looking for optimization. Constructive ideas accepted.
- have the boxes drawn in 3d around the npc/player
There's a LUA post Spoco made on Facepunch that has almost all of the model
sizes in mix/max vector format. I hope to possibly one day use quads using vectors
from the work Spoco has done.
- I'm sure more will come. This is V1 :)


« Last Edit: October 08, 2006, 12:49:48 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Predator Tracking
« Reply #1 on: September 29, 2006, 08:58:24 PM »
Good work JamminR! :)
Experiencing God's grace one day at a time.

Offline Happyherbs69

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
  • Season Of da Siccness
    • Kronic Page
Re: Predator Tracking
« Reply #2 on: September 29, 2006, 10:49:44 PM »
Wow, doesn't that just grab you by the **** :o. Great work JamminR, better get releasing and releasing version 3 ten minutes later.  ;D

*CENSORED*
« Last Edit: September 30, 2006, 12:13:50 AM by JamminR »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Predator Tracking
« Reply #3 on: September 30, 2006, 12:14:16 AM »
Happy, we don't use that language here. We get your point though. Ouch! :)
Thanks, I think
:P
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Hagrid

  • Newbie
  • *
  • Posts: 1
  • Karma: -2
Re: Predator Tracking
« Reply #4 on: February 22, 2015, 08:34:50 AM »
! I saw the post, and I thought that'd be cool to use on a server that my friend owns. The link to download it, is broken; I get the 404 error :'(.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: Predator Tracking
« Reply #5 on: February 22, 2015, 09:54:58 AM »
<censor>! I saw the post, and I thought that'd be cool to use on a server that my friend owns. The link to download it, is broken; I get the 404 error :'(.
You do realize this is nearly 9 years old, right?
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.