Ulysses

Ulysses Stuff => Releases => Topic started by: Neku on May 28, 2014, 08:10:57 PM

Title: ULX Observation Mode
Post by: Neku on May 28, 2014, 08:10:57 PM
ULX Observation Mode - 1.2

This adds a command into the utility tab called ulx observe. It places the target into Observation Mode, making them noclipped, godded, and invisible. This also stores the target's location and restores it upon reuse. If no target is defined with the chat command, it will target the person calling the command.

I made this for a guy on coderhire, but since it was easy to do, I did it for free.

Link to the job (http://coderhire.com/jobs/view/4917)

Title: Re: ULX Observation Mode
Post by: Cobalt on May 29, 2014, 12:14:01 PM
ULX Observation Mode - 1.0

This adds a command into the utility tab called ulx observe. It places the target into Observation Mode, making them noclipped, godded, and invisible. This also stores the target's location and restores it upon reuse.

I made this for a guy on coderhire, but since it was easy to do, I did it for free.

Link to the job (http://coderhire.com/jobs/view/4917)

Instead of running a console command just do this:
target_ply:SetMoveType( MOVETYPE_NOCLIP )
and
target_ply:SetMoveType( MOVETYPE_WALK )
Title: Re: ULX Observation Mode
Post by: Zombine on June 01, 2014, 08:53:36 PM
Well I finally got around to nagging my server manager to put it in, and when using it I get this:
Code: [Select]
[ERROR] addons/ulx/lua/ulx/modules/sh/observation.lua:12: attempt to call method 'GetEyePos' (a nil value)
  1. call - addons/ulx/lua/ulx/modules/sh/observation.lua:12
   2. __fn - addons/ulib/lua/ulib/shared/commands.lua:943
    3. unknown - addons/ulib/lua/ulib/shared/commands.lua:1296
     4. unknown - lua/includes/modules/concommand.lua:69

Title: Re: ULX Observation Mode
Post by: Neku on June 01, 2014, 09:21:07 PM
I'll take a look at that, I don't think your eye position is needed anyway.
Title: Re: ULX Observation Mode
Post by: Cobalt on June 01, 2014, 11:10:27 PM
I'll take a look at that, I don't think your eye position is needed anyway.
It's not GetEyePos(), just EyePos()
Title: Re: ULX Observation Mode
Post by: Neku on June 01, 2014, 11:21:44 PM
Alrighty, I fixed that issue up. Thanks Cobalt!
Title: Re: ULX Observation Mode
Post by: Zombine on June 02, 2014, 08:17:17 PM
Is there any way the weapon could be made invisible, too? Or is that not a possibility with ULX functions?
Title: Re: ULX Observation Mode
Post by: Neku on June 02, 2014, 08:22:37 PM
They should be invisible too.
Title: Re: ULX Observation Mode
Post by: Zombine on June 04, 2014, 02:33:39 PM
No, unfortunately the weapons are not invisible. As well, I can still slightly see people in observer mode, almost as if they have the vol_light material on.
Title: Re: ULX Observation Mode
Post by: JamminR on June 05, 2014, 07:34:08 AM
Zombine, providing a bit more information would help greatly.
What gamemode? Do you use any addons that would affect the way a player looks visually?
Do you use any addons that do _anything_ with weapons? Is it all weapons, or custom ones? Which ones?
It sounds like this release works, perhaps just not in your server environment due to gamemode and or addon conflict.
Title: Re: ULX Observation Mode
Post by: Zombine on June 05, 2014, 10:13:10 PM
Sandbox gamemode, no external player modification, and -all- weapons show up. I'm looking through a camera, if that helps, if for any reason cameras don't properly show invisiblity.
Title: Re: ULX Observation Mode
Post by: Neku on June 05, 2014, 11:41:30 PM
Try running ULX Cloak on yourself and see if the guns still appear.
Title: Re: ULX Observation Mode
Post by: Zombine on June 06, 2014, 06:28:38 PM
ULX Cloak works just fine, but observer mode does this:

(http://puu.sh/9ihWZ/497da054b9.jpg)
Title: Re: ULX Observation Mode
Post by: Neku on June 07, 2014, 08:48:07 PM
ULX Cloak works just fine, but observer mode does this:

<snip>

Alright, I overlooked that the amount that would cloak you by was 255 subtracted by the amount.
I fixed this in the update. Hopefully, this will be the last update! (Unless Garry breaks things.)
I don't know about the weapons though.
Title: Re: ULX Observation Mode
Post by: Zombine on June 08, 2014, 07:53:40 PM
Well whatever you did to the fix the cloaking fixed the weapons issue with it!

It's absolutely perfect now, thank you so much for all of your help!
Title: Re: ULX Observation Mode
Post by: Neku on June 08, 2014, 08:00:25 PM
Well whatever you did to the fix the cloaking fixed the weapons issue with it!

It's absolutely perfect now, thank you so much for all of your help!

No problem, I'm sure other people will enjoy this release as well.  :)

Edit: I see you removed my statistics file.  :'( lol
Title: Re: ULX Observation Mode
Post by: Zombine on June 08, 2014, 10:23:39 PM
Oh all I did was drop the module in, wasn't sure what that was for. I'm using it in singleplayer and my server co-hort hasn't put the module in the server yet, so I'm not sure what good it would do you, but I can put it in if you really want to see my singleplayer goodness. Also, I forgot to mention that SetEyePos doesn't exist, and I removed that line on my end. It still properly sets everything without it, as I'm sure SetEyeAngles takes care of it.
Title: Re: ULX Observation Mode
Post by: Neku on June 08, 2014, 10:45:50 PM
Oh all I did was drop the module in, wasn't sure what that was for. I'm using it in singleplayer and my server co-hort hasn't put the module in the server yet, so I'm not sure what good it would do you, but I can put it in if you really want to see my singleplayer goodness. Also, I forgot to mention that SetEyePos doesn't exist, and I removed that line on my end. It still properly sets everything without it, as I'm sure SetEyeAngles takes care of it.

Haha, the autorun folder contains the statistics file. It doesn't do anything other than send me your server name and its IP address.