[Mod] Spectator Mode [git] [spectator_mode]

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

[Mod] Spectator Mode [git] [spectator_mode]

by jp » Tue Dec 08, 2015 15:34

A simple mod allowing you to watch and continuously follow the other players in their 3rd person view.
You're invisible and undetectable for the players when you're in this mode.

Can be useful for admins or moderators in their task of monitoring.

Requires the privilege "watch".

Commands :
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
/watch <player name>
/unwatch (get back to your initial position)

Download | Sources | Bug report

Image
Last edited by jp on Sat Feb 13, 2016 19:00, edited 3 times in total.
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

Re: [Mod] Spectator Mode [git] [spectator_mode]

by benrob0329 » Tue Dec 08, 2015 16:03

Nice! Could you make it so that you can watch a givin coordanince?

I see a Mesecons camera system in the making....
 

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

Re: [Mod] Spectator Mode [git] [spectator_mode]

by jp » Tue Dec 08, 2015 16:04

benrob0329 wrote:Could you make it so that you can watch a givin coordanince?

No.
 

User avatar
firefox
Member
 
Posts: 1185
Joined: Wed Jan 14, 2015 07:34
In-game: Red_Fox

Re: [Mod] Spectator Mode [git] [spectator_mode]

by firefox » Wed Dec 09, 2015 08:00

cool =(0.0)=

but since the targeted player doesn't know when being watched, you should rename it to "Stalker" ;)
 

User avatar
prof-turbo
Member
 
Posts: 518
Joined: Mon May 07, 2012 17:02

Re: [Mod] Spectator Mode [git] [spectator_mode]

by prof-turbo » Sun Dec 20, 2015 13:28

Nice !
The actual existing spectators modes are very buggy in PvP games/modes.
Thanks a lot !
 

User avatar
programmingchicken
Member
 
Posts: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

Re: [Mod] Spectator Mode [git] [spectator_mode]

by programmingchicken » Tue Dec 22, 2015 03:16

Made my first pull request, and I think it's pretty useful! :DDD
I'm bold. I'm sarcastic. I'm PChicken.
 

User avatar
kaadmy
Member
 
Posts: 627
Joined: Thu Aug 27, 2015 23:07
GitHub: kaadmy
IRC: KaadmY
In-game: KaadmY kaadmy NeD

Re: [Mod] Spectator Mode [git] [spectator_mode]

by kaadmy » Tue Dec 22, 2015 03:47

Cool! :D
Never paint white stripes on roads near Zebra crossings.
 

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

Re: [Mod] Spectator Mode [git] [spectator_mode]

by jp » Wed Dec 23, 2015 10:21

Update : the watcher is now able to switch of player while already watching someone. Thanks to programmingchicken for the idea.
 

User avatar
programmingchicken
Member
 
Posts: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

Re: [Mod] Spectator Mode [git] [spectator_mode]

by programmingchicken » Wed Dec 23, 2015 21:42

Was an easy fix but I didn't look into it well enough lol
I'm bold. I'm sarcastic. I'm PChicken.
 

Fixerol
Member
 
Posts: 633
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer

Re: [Mod] Spectator Mode [git] [spectator_mode]

by Fixerol » Wed Dec 23, 2015 23:14

Trololo! This is very good and useful, what is TODO for now? Also, make it able to fly on its own (without attach to play), that will be VERY-VERY useful :}
 

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

Re: [Mod] Spectator Mode [git] [spectator_mode]

by jp » Wed Dec 23, 2015 23:56

No TODO actually, I don't have a big ambition for this mod.
 

User avatar
luizrpgluiz
Member
 
Posts: 17
Joined: Thu Mar 19, 2015 18:11
IRC: luizrpgluiz
In-game: luizinho

Re: [Mod] Spectator Mode [git] [spectator_mode]

by luizrpgluiz » Sat Jan 02, 2016 20:34

you can create a new command to see first person with the camera fixed on the player? For you will be very complicated to program it?
 

Fixerol
Member
 
Posts: 633
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer

Re: [Mod] Spectator Mode [git] [spectator_mode]

by Fixerol » Sun Jan 03, 2016 12:40

Does it work if the watched person deep in the cave around the blocks?
 

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

Re: [Mod] Spectator Mode [git] [spectator_mode]

by jp » Sun Jan 03, 2016 14:23

Fixerol wrote:Does it work if the watched person deep in the cave around the blocks?

You can use F7 for avoid the black screen in tight areas. The 3rd person view makes the camera "collide-able" with the nodes.
 

User avatar
maikerumine
Member
 
Posts: 946
Joined: Mon Aug 04, 2014 14:27
GitHub: maikerumine
In-game: maikerumine

Re: [Mod] Spectator Mode [git] [spectator_mode]

by maikerumine » Sun Jan 03, 2016 18:28

Hello!

I just tested this out and found a few bugs:

*on exit of game as watcher the game crashes.
*on unwatch, watcher is teleported to the person being watched.
*during watch mode you are able to break all nodes and even hurt the player.
 

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

Re: [Mod] Spectator Mode [git] [spectator_mode]

by jp » Sun Jan 03, 2016 19:03

Trying to reproduce and working on this.

EDIT: seems like the troublemaker was the latest feature added. Now reverted.
 

amadin
Member
 
Posts: 471
Joined: Tue Jun 16, 2015 16:23
GitHub: Amadin

Re: [Mod] Spectator Mode [git] [spectator_mode]

by amadin » Tue Jan 05, 2016 12:25

This is good anti-griefing mod if you suspect of griefing or cheating someone. Also its presence on the server can terrify their :)
 

Fixerol
Member
 
Posts: 633
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer

Re: [Mod] Spectator Mode [git] [spectator_mode]

by Fixerol » Thu Jan 07, 2016 19:06

Looks like if you have hunger mod, it will show double one over your hud after watching someone with it.
Another problem, if someone you watch leaves the server, you will stay as a ghost on that place.
 

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

Re: [Mod] Spectator Mode [git] [spectator_mode]

by jp » Thu Jan 07, 2016 19:22

Fixerol wrote:Looks like if you have hunger mod, it will show double one over your hud after watching someone with it.

I know, Hunger mod uses HUD elements in a special manner it seems.
Second problem is not fixable without checking within a globalstep (meaning more lag).

Anyways I won't bother to fix this. Don't expect much from me for this mod.
 

neoascetic
Member
 
Posts: 24
Joined: Wed Dec 24, 2014 08:56
GitHub: neoascetic
IRC: neoascetic
In-game: neoascetic

Re: [Mod] Spectator Mode [git] [spectator_mode]

by neoascetic » Sun Jan 10, 2016 09:44

 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: [Mod] Spectator Mode [git] [spectator_mode]

by Minetestforfun » Sat Jan 23, 2016 19:37

The MinetestForFun Team [spectator_mode] improved from the jp's mod : https://github.com/MinetestForFun/serve ... tator_mode

New features listed here : https://github.com/MinetestForFun/serve ... /issues/79
 

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

Re: [Mod] Spectator Mode [git] [spectator_mode]

by jp » Tue Mar 22, 2016 09:59

Update : project moved on Minetest Mods.


Last bumped by jp on Tue Mar 22, 2016 09:59.
 


Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 60 guests

cron