[Mod] Invisibility Command [invis]

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

[Mod] Invisibility Command [invis]

by octacian » Sun Apr 16, 2017 18:55

Invisibility Command [invis]

GitHub: octacian/minetest-mod-invis
Download: Master (latest, stable)

This extremely simple mod introduces a single command that allows you to make yourself or another player invisible (both the player itself and the nametag).

Usage:

/invisible: Toggle invisibility for yourself
/invisible <name>: Toggle invisibility for another player

Note: The /invisible command requires the invisible privilege.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

Brummi
Member
 
Posts: 41
Joined: Fri Mar 25, 2016 07:21
Location: de
 

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod] Invisibility Command [invis]

by octacian » Sun Apr 16, 2017 19:50

Brummi wrote:On the minimap one remains visible


That is unavoidable to my knowledge, no matter what. I'll take a look at the API soon though, and maybe suggest the feature.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

User avatar
TenPlus1
Member
 
Posts: 2424
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1
 

User avatar
azekill_DIABLO
Member
 
Posts: 7461
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod] Invisibility Command [invis]

by octacian » Mon Apr 17, 2017 00:19

TenPlus1 wrote:https://forum.minetest.net/viewtopic.php?f=11&t=14846


Yes, I'm aware of your mod, however, the purpose of this mod was more so a very lightweight tool for admins, without any bloating due to actual potions (aside from the fact that I'm not a fan of potions). I'm not trying to say that your mod isn't good, I feel that both mods are good in different ways.

azekill_DIABLO wrote:cool mod! is the hitbox still seeable?


AFAIK, no. I resize the hitbox to 0 meaning that it shouldn't be shown. However, someone told me today that the hitbox of the player cannot be changed, so more testing needs to be done. However, I think the hitbox isn't visible. I use the same method as does tenplus1 in his mod so I would assume everything works.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

User avatar
azekill_DIABLO
Member
 
Posts: 7461
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
texmex
Member
 
Posts: 1067
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: [Mod] Invisibility Command [invis]

by texmex » Thu Jun 08, 2017 12:12

Nice mod! Would you consider adding a command that makes the player semi-transparent?
 

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod] Invisibility Command [invis]

by octacian » Thu Jun 08, 2017 14:07

Just today I was finally able to push a few commits to this mod, take a look at the changes! (Yeah, there's only two :P)

Changes:
  • Renamed chatcommand to /vanish
  • An HUD is shown above the hotbar whenever you are in vanish mode (see screenshot below)

Image

texmex wrote:Would you consider adding a command that makes the player semi-transparent?


Sorry, I can't do this due to engine limitations. At this point, Minetest only supports making entity textures either fully opaque or fully transparent, there is no support for anything in-between yet.
Attachments
screenshot_20170608_070420.png
(5.12 KiB) Not downloaded yet
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

User avatar
texmex
Member
 
Posts: 1067
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: [Mod] Invisibility Command [invis]

by texmex » Thu Jun 08, 2017 15:01

Thanks for looking it up anyway, octacian. :)

But wait, what if it was connected to a skin change, and a skin that was semi-transparent…?
 

User avatar
azekill_DIABLO
Member
 
Posts: 7461
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
Lone_Wolf
Member
 
Posts: 1984
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: [Mod] Invisibility Command [invis]

by Lone_Wolf » Wed Sep 13, 2017 03:36

Wasn't able to vanish. I changed:
Code: Select all
 privs = {invisibility=true},

to
Code: Select all
 privs = {vanish=true},

It worked so now I'll make a pull request on Github
 

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod] Invisibility Command [invis]

by octacian » Wed Sep 13, 2017 14:30

Thanks for the PR! I appreciate it when people are willing to do stuff like that considering that I'm still away from MT.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

User avatar
BBmine
Member
 
Posts: 3460
Joined: Sun Jul 12, 2015 22:51
Location: USA
GitHub: BBmine
IRC: BBmine
In-game: Baggins

Re: [Mod] Invisibility Command [invis]

by BBmine » Wed Sep 13, 2017 14:32

octacian wrote:Thanks for the PR! I appreciate it when people are willing to do stuff like that considering that I'm still away from MT.

Away from MT......You don't seem like. Come back to the club, because I'm never gonna give you up :P
 

User avatar
Stix
Member
 
Posts: 1305
Joined: Fri Aug 04, 2017 14:19
Location: USA
IRC: nil
In-game: Stix [+alts]

Re: [Mod] Invisibility Command [invis]

by Stix » Wed Sep 13, 2017 22:59

Octacian are you gonna respond to the PM i sent you a week ago :P?
Hey, what can i say? I'm the bad guy.
Next release of your favorite game? "Bugfixes" --Wuzzy
[OLD]The new Minetest-offtopic can be found here: https://minetestoftopic.createaforum.com/index.php
 

User avatar
azekill_DIABLO
Member
 
Posts: 7461
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
Lone_Wolf
Member
 
Posts: 1984
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: [Mod] Invisibility Command [invis]

by Lone_Wolf » Tue Sep 26, 2017 20:26

Could you allow all players with the server priv to see invisible players?
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 7 guests