Author Topic: Invisible Plugin - Make yourself or others ghosts! (v2)  (Read 30907 times)

0 Members and 1 Guest are viewing this topic.

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Invisible Plugin - Make yourself or others ghosts! (v2)
« on: November 11, 2005, 04:38:16 PM »
Version 2
Thats right, any amount of transparency you want!


A plugin for ULX v2 admins by Golden-Death.

Installation:


Step 1: Download here: http://ulyssesmod.net/gd/invisible.html

Step 2:
Extract the files into your gmod9/lua directory, in their respective places.
( Should be like this: Gmod9/lua/ulx/ulx_inv.lua )

Step 3: (Important) Go to gmod9/lua/init/ulx_init.lua

Step 4: Open it up and scroll to the bottom. Add the following lines:

Code: [Select]
_OpenScript( "ulx/ulx_inv.lua" ) -- Adds the ulx_inv Function

Step 5: Load the game and type: lua_openscript init/ulx_init.lua. Say !inv (your name) or (uninv (your name)


Changelog (v2):

1) Removed the extra unneeded lua file (cvar.lua)
2) Added CVAR - ulx_gd_shimmer (default 0) - This makes invisible people shimmer when set to 1
3) Added CVAR - ulx_gd_drawworld (default false) - This will prevent the world model from showing if false
4) Added CVAR - ulx_gd_drawview (default false) - This will prevent the view model from showing if false
5) (Here for reference) Use ulx_gd_inv to set alpha (1-255)

(Thanks to Megiddo and fprefect111)
« Last Edit: December 18, 2006, 06:58:14 PM by Golden-Death »


Offline Mank

  • Full Member
  • ***
  • Posts: 209
  • Karma: 9
    • Ulysses Mod!
Re: Invisable Plugin - Make yourself or others ghosts!
« Reply #1 on: November 11, 2005, 04:44:47 PM »
Good work!
If you doubt your powers you bring powers to your doubts.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Invisable Plugin - Make yourself or others ghosts!
« Reply #2 on: November 11, 2005, 04:58:19 PM »
Experiencing God's grace one day at a time.

Offline Mank

  • Full Member
  • ***
  • Posts: 209
  • Karma: 9
    • Ulysses Mod!
Re: Invisable Plugin - Make yourself or others ghosts!
« Reply #3 on: November 11, 2005, 05:06:38 PM »
Now make it change the color of the player as an addtion!
If you doubt your powers you bring powers to your doubts.

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Invisable Plugin - Make yourself or others ghosts!
« Reply #4 on: November 11, 2005, 05:12:30 PM »
but what good would color do if your invisible?  ;D


Offline Jesusaurus-Rex

  • Newbie
  • *
  • Posts: 29
  • Karma: 3
Re: Invisable Plugin - Make yourself or others ghosts!
« Reply #5 on: November 11, 2005, 05:57:26 PM »
but what good would color do if your invisible?  ;D
True! Anyways, I belive there is a thing called the "color gun", so whats the point?

Offline Mank

  • Full Member
  • ***
  • Posts: 209
  • Karma: 9
    • Ulysses Mod!
Re: Invisible Plugin - Make yourself or others ghosts! (v2)
« Reply #6 on: November 12, 2005, 12:52:51 AM »
I guess.

Good to see you around again GD.
If you doubt your powers you bring powers to your doubts.

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Invisible Plugin - Make yourself or others ghosts! (v2)
« Reply #7 on: November 12, 2005, 08:37:21 AM »
 8)


Offline Jesusaurus-Rex

  • Newbie
  • *
  • Posts: 29
  • Karma: 3
Re: Invisible Plugin - Make yourself or others ghosts! (v2)
« Reply #8 on: November 18, 2005, 02:49:26 PM »
I am having the hardest time getting guns to go invisi. I set the following cmds:
ulx_gd_shimmer 0
ulx_gd_drawworld false
ulx_gd_drawview false
ulx_gd_inv 0

Is there an impulse I can use to make the gun invisi intead?

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Invisible Plugin - Make yourself or others ghosts! (v2)
« Reply #9 on: November 18, 2005, 03:36:10 PM »
weird that you cant get it to work.. try impulse 201


Now hosted on Blue Fire: http://www.goldendeath.byethost11.com/
« Last Edit: December 03, 2005, 07:33:24 PM by Golden-Death »


Offline darkdeath

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 2
Re: Invisible Plugin - Make yourself or others ghosts! (v2)
« Reply #10 on: February 09, 2006, 06:45:18 AM »
ok it maby sounds like a noob but it says that i have imunity for it :S...
how come ?

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Invisible Plugin - Make yourself or others ghosts! (v2)
« Reply #11 on: February 09, 2006, 07:33:41 PM »
Odd, well if you remove the immunity flag in the admins list it should work.


Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Invisible Plugin - Make yourself or others ghosts! (v2)
« Reply #12 on: February 09, 2006, 08:00:42 PM »
* Megiddo points GD in the direction of the wiki

getUser( (number)userid, (string)target, (boolean)obey_immunity )
The obey_immunity (optional) argument defaults to true. If true, players with ACCESS_IMMUNITY can't be targetted.
Experiencing God's grace one day at a time.

Offline darkdeath

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 2
Re: Invisible Plugin - Make yourself or others ghosts! (v2)
« Reply #13 on: February 10, 2006, 02:49:16 AM »
oh well thank u very mutch guys :)...

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Invisible Plugin - Make yourself or others ghosts! (v2)
« Reply #14 on: February 10, 2006, 02:13:08 PM »
Please update this plugin to use ULX v1.1's new module system
Experiencing God's grace one day at a time.