Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: ghost spectator

  1. #1
    Private
    Join Date
    Feb 2014
    Posts
    27
    Thanks
    11
    Thanked 0 Times in 0 Posts

    ghost spectator

    hi,

    is there any way to make a player goes invisible on the score menu (just for spectating)?

    I want to include this function in my mod.
    for example, if the player enters the server with the name "something" does not appear notifications and the player will not be listed on the scores table.

  2. #2
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by qwrtyp View Post
    hi,

    is there any way to make a player goes invisible on the score menu (just for spectating)?

    I want to include this function in my mod.
    for example, if the player enters the server with the name "something" does not appear notifications and the player will not be listed on the scores table.
    Nope, not without a change to the engine.

  3. #3
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    It is possible to be in axis/allies team and be spectator.
    You can do this by setting self.sessionstate from playing to spectator. (and reverse too in order to rejoin the game)

  4. The Following User Says Thank You to Mitch For This Useful Post:

    qwrtyp (9th April 2014)

  5. #4
    Private
    Join Date
    Feb 2014
    Posts
    27
    Thanks
    11
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Mitch View Post
    It is possible to be in axis/allies team and be spectator.
    You can do this by setting self.sessionstate from playing to spectator. (and reverse too in order to rejoin the game)
    yes, i tried using "self.killcam = true;" scriptresponse before dying and it works.
    but if I created a hidden menu, like game ["menu_ingame_spectator"]? or a third team..
    Last edited by qwrtyp; 9th April 2014 at 07:11.

  6. #5
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by qwrtyp View Post
    yes, i tried using "self.killcam = true;" scriptresponse before dying and it works.
    but if I created a hidden menu, like game ["menu_ingame_spectator"]? or a third team..
    I meant this

    PHP Code:
    self iprintlnbold("^7You are a hidden spectator");
    self.sessionstate "spectator";
    self.spectatorclient = -1;
    self.archivetime 0;

    self allowSpectateTeam("allies"true);
    self allowSpectateTeam("axis"true);
    self allowSpectateTeam("freelook"true);
    self allowSpectateTeam("none"true); 
    PHP Code:
    self iprintlnbold("^7You are now added to the game");
    self.sessionstate "playing";
    self.spectatorclient = -1;
    self.archivetime 0
    I can also use killcam like this:
    PHP Code:
    self.sessionstate "spectator";
    self.spectatorclient int(attackerNum);
    self.archivetime int(time); // total time to watch
    self.psoffsettime offsetTime// time to start watching (higher number is further from now) 
    Last edited by Mitch; 9th April 2014 at 07:15.

  7. #6
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by Mitch View Post
    It is possible to be in axis/allies team and be spectator.
    You can do this by setting self.sessionstate from playing to spectator. (and reverse too in order to rejoin the game)
    I thought his request was to NOT APPEAR AT ALL on the scoreboard. To make a spectator appear in another team is not making them invisible - it's simply changing their team.

  8. #7
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Only way to do this is to make a custom scoreboard from scratch.

    Here is something I have been working on (Unfinished);
    http://i.imgur.com/POHf2x7.jpg

    Click image for larger version. 

Name:	filthyfreak_scoreboard.jpg 
Views:	91 
Size:	374.8 KB 
ID:	689
    Last edited by kung foo man; 9th April 2014 at 11:09. Reason: Please do not rely on external image hosts

  9. #8
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by filthy_freak_ View Post
    Only way to do this is to make a custom scoreboard from scratch.

    Here is something I have been working on (Unfinished);
    http://i.imgur.com/POHf2x7.jpg
    That's some nice work there. I did a custom scoreboard a few years back but it wasn't as good as that. Mine was very basic.

    As to the topic heading - yeah, the only real way to deal with any custom edits to the scoreboard is to make one yourself, and replace the stock one. That way, you can do what you like to it.

  10. #9
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Quote Originally Posted by Tally View Post
    That's some nice work there.
    Yeah i'm trying to add the ability to rename bots. Hence why I'v been making my own obituary/killfeed & scoreboard.

    Besides that its always fun to change stuff the engine normally won't allow.

    Only thing left to figure out is how to get rid of their names while spectating them.

  11. #10
    ... connecting
    Join Date
    Apr 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by filthy_freak_ View Post
    Only way to do this is to make a custom scoreboard from scratch.

    Here is something I have been working on (Unfinished);
    http://i.imgur.com/POHf2x7.jpg

    Click image for larger version. 

Name:	filthyfreak_scoreboard.jpg 
Views:	91 
Size:	374.8 KB 
ID:	689
    How did you do that? Could you explain?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •