ULX

Author Topic: Find Player (V2) - Locate a player anywhere in a map  (Read 26336 times)

0 Members and 4 Guests are viewing this topic.

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Find Player (V2) - Locate a player anywhere in a map
« on: April 29, 2006, 12:49:49 PM »
I was on a huge map on a server and I just couldn't find my friends, so I made this script.

Simply type '!find playername' and the player your looking for will be located

Version 2:
* Now makes finding players easier (Fading lines didn't quite cut it on huge maps like b6_mountain)
* Sets the players name over their head for 10 seconds, seeable through walls and objects within a few hundred feet
* Sends a slow AR2 rifle bullet to the player, so you can follow it ( http://img75.imageshack.us/img75/3138/gmconstruct00423gt.jpg )

[I tried to set your view to the player, but It was always off for some reason]
(Thanks arosner for the vecAdd, *claps*)




Download version 2:
http://ulyssesmod.net/gd/findplayer.html
« Last Edit: December 18, 2006, 06:58:49 PM by Golden-Death »


Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Find Player - Locate a player anywhere in a map
« Reply #1 on: May 01, 2006, 06:52:45 PM »
Nice work!

Isn't vecAdd a GMod included function?
Experiencing God's grace one day at a time.

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Find Player - Locate a player anywhere in a map
« Reply #2 on: May 01, 2006, 10:24:13 PM »
If you mean my referance to arosner, yeah, I just didn't know how to do it :P

Has come in handy on Rexys server


Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Find Player (V2) - Locate a player anywhere in a map
« Reply #3 on: May 07, 2006, 10:30:30 PM »
Version 2


H²-=NooB=-

  • Guest
Re: Find Player (V2) - Locate a player anywhere in a map
« Reply #4 on: May 08, 2006, 05:08:38 PM »
The problem about setting player angle is z is always 0 or -0 ... dumb garry. The _PlayerGetShotAng() does give a Z value :)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Find Player (V2) - Locate a player anywhere in a map
« Reply #5 on: May 08, 2006, 06:46:35 PM »
The problem about setting player angle is z is always 0 or -0 ... dumb garry. The _PlayerGetShotAng() does give a Z value :)

You see it as -0 because you're printing the value of the vector directly. This only prints to two decimal precision, but if you print the whole thing you'd see it can be something like -0.000067.
Experiencing God's grace one day at a time.

JamminR

  • Guest
Re: Find Player (V2) - Locate a player anywhere in a map
« Reply #6 on: June 07, 2006, 04:48:45 PM »
Golden Death, could you make two versions within one file?

ulx_find = finds person, shows everyone
ulx_sfind = finds person, shows only person requesting it (silent)

I believe the text float can't be made private, can it?
But at least some other arrow/bullet indication would be helpful.

Everytime I use find on a large gmod map when someone says 'Hey JamminR, come look at my ...',
people always seem more interested in the find lua than they do whatever someone is trying to show off.

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Find Player (V2) - Locate a player anywhere in a map
« Reply #7 on: June 07, 2006, 09:01:34 PM »
I'd love to, but it seems my host is suspended and I have no access to my stuff...


An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given