Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [Release] SND & TDM Mapvote menu on end game

[Release] SND & TDM Mapvote menu on end game

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
31 Posts 5 Posters 5.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Sorex Offline
    Sorex Offline
    Sorex
    Contributor
    wrote on last edited by Sorex
    #1

    SND and TDM Mapvote for all Maps
    Developer: DoktorSAS
    For TDM add || getDvar("timelimit") <= 0 in the if inside the init()

    Finaly i end it SND mapvote menu working on endgame, there the download and the source code, for any problems respond to this post

    Download:
    Github: https://github.com/DoktorSAS/BO2-GSC/tree/master/Trickshot/DoktorSAS-Mapvote SND
    Virustotal: https://www.virustotal.com/gui/file/d600e9a486582885c4ef5353c14c336ff012ba8a5b875addf5bbd0ad6df3b146/detection

    60768dbd-7881-440f-8206-25f39e84d5de-image.png

    How to use it:

    • Put the mods on your mods or export project
    • Put on sv_mapRotation only one map
    Kalitos 1 Reply Last reply
    0
    • Sorex Sorex

      SND and TDM Mapvote for all Maps
      Developer: DoktorSAS
      For TDM add || getDvar("timelimit") <= 0 in the if inside the init()

      Finaly i end it SND mapvote menu working on endgame, there the download and the source code, for any problems respond to this post

      Download:
      Github: https://github.com/DoktorSAS/BO2-GSC/tree/master/Trickshot/DoktorSAS-Mapvote SND
      Virustotal: https://www.virustotal.com/gui/file/d600e9a486582885c4ef5353c14c336ff012ba8a5b875addf5bbd0ad6df3b146/detection

      60768dbd-7881-440f-8206-25f39e84d5de-image.png

      How to use it:

      • Put the mods on your mods or export project
      • Put on sv_mapRotation only one map
      Kalitos Online
      Kalitos Online
      Kalitos
      wrote on last edited by
      #2

      Sorex is it also for a TDM mode?

      1 Reply Last reply
      0
      • Sorex Offline
        Sorex Offline
        Sorex
        Contributor
        wrote on last edited by
        #3

        Kalitos yes

        Kalitos 1 Reply Last reply
        0
        • Sorex Sorex

          Kalitos yes

          Kalitos Online
          Kalitos Online
          Kalitos
          wrote on last edited by Kalitos
          #4

          Sorex I was testing it, commenting on the problems:

          • The images of the maps do not load
          • When the game ends, the votemap begins but as soon as the final chamber of death begins it overlaps the voting menu and does not allow players to vote.
          1 Reply Last reply
          0
          • Sorex Offline
            Sorex Offline
            Sorex
            Contributor
            wrote on last edited by Sorex
            #5

            Kalitos Weird on me everything work, image load and is possible to vote on endgame, do u tuch something?
            Okey i found 2 errors but i dont have your errors

            Kalitos 1 Reply Last reply
            0
            • Sorex Sorex

              Kalitos Weird on me everything work, image load and is possible to vote on endgame, do u tuch something?
              Okey i found 2 errors but i dont have your errors

              Kalitos Online
              Kalitos Online
              Kalitos
              wrote on last edited by Kalitos
              #6

              Sorex said in [Release] SND & TDM Mavote menu on end game:

              Okey encontré 2 errores pero no tengo tus errores

              Tried with a real game, where there is a final killcam?, Because when I try it on my server myself, killing myself, no final final killcam

              Add::
              This I get, at the end of the game when I commit suicide, without a final camera
              https://gyazo.com/afc994655ea8d1a456f9a4bdf404e965

              1 Reply Last reply
              0
              • Sorex Offline
                Sorex Offline
                Sorex
                Contributor
                wrote on last edited by
                #7

                Kalitos Whats your scorelimits? because i see 0 and 0, the code work when 1 team win the match, on me everything work correcly, i think is your file problems, on the image of the post u can see it work, i rly don't know where is the error.
                Try to download the code again and test to use only the code of mapvote and see if work, i solved the 2 errors and i added a the string to make mapvote working on TDM.
                Thanks for reporting problems i'll see if depends form my code

                Kalitos 1 Reply Last reply
                0
                • Sorex Sorex

                  Kalitos Whats your scorelimits? because i see 0 and 0, the code work when 1 team win the match, on me everything work correcly, i think is your file problems, on the image of the post u can see it work, i rly don't know where is the error.
                  Try to download the code again and test to use only the code of mapvote and see if work, i solved the 2 errors and i added a the string to make mapvote working on TDM.
                  Thanks for reporting problems i'll see if depends form my code

                  Kalitos Online
                  Kalitos Online
                  Kalitos
                  wrote on last edited by Kalitos
                  #8

                  Sorex I downloaded your code, compiled it without making any changes, and also ended the game winning the game as you suggested, and still the map image error remains.

                  https://gyazo.com/b4ae5233ee2670cf7b2cb6c56e95e8a8

                  Unless these lines level.maptovote["image"][index] = "loadscreen_mp_hijacked"; refer to image files in the server directory.

                  alejandrodarz 1 Reply Last reply
                  0
                  • Sorex Offline
                    Sorex Offline
                    Sorex
                    Contributor
                    wrote on last edited by
                    #9

                    Okey, is weird, on plutonium SND dont load the image but work, on redacted work correctly

                    Kalitos 1 Reply Last reply
                    0
                    • Sorex Sorex

                      Okey, is weird, on plutonium SND dont load the image but work, on redacted work correctly

                      Kalitos Online
                      Kalitos Online
                      Kalitos
                      wrote on last edited by
                      #10

                      Sorex Additionally, did you try the finalkillcam? This overlaps the voting menu.

                      1 Reply Last reply
                      0
                      • Sorex Offline
                        Sorex Offline
                        Sorex
                        Contributor
                        wrote on last edited by Sorex
                        #11

                        Not depends from that, the game don't load the image, thats the problem.
                        im testing on other gamemodes, and is strange

                        Kalitos 1 Reply Last reply
                        0
                        • Sorex Sorex

                          Not depends from that, the game don't load the image, thats the problem.
                          im testing on other gamemodes, and is strange

                          Kalitos Online
                          Kalitos Online
                          Kalitos
                          wrote on last edited by
                          #12

                          Sorex I mean, the voting menu is hidden when the killcam comes out.

                          1 Reply Last reply
                          0
                          • Sorex Offline
                            Sorex Offline
                            Sorex
                            Contributor
                            wrote on last edited by
                            #13

                            Kalitos the menu can't show after killcam, because after there scoreboard and i can't remove it, the menu show before killcam

                            Kalitos 1 Reply Last reply
                            0
                            • Sorex Sorex

                              Kalitos the menu can't show after killcam, because after there scoreboard and i can't remove it, the menu show before killcam

                              Kalitos Online
                              Kalitos Online
                              Kalitos
                              wrote on last edited by
                              #14

                              Sorex There is the problem. The killcam does not allow players to vote.

                              1 Reply Last reply
                              0
                              • Sorex Offline
                                Sorex Offline
                                Sorex
                                Contributor
                                wrote on last edited by
                                #15

                                Kalitos But the mapvote si before killcam, is on end game, when u see the score.
                                The map dont load because is the game, i made a lot of test and dont load images after endgame

                                Kalitos 1 Reply Last reply
                                0
                                • Sorex Sorex

                                  Kalitos But the mapvote si before killcam, is on end game, when u see the score.
                                  The map dont load because is the game, i made a lot of test and dont load images after endgame

                                  Kalitos Online
                                  Kalitos Online
                                  Kalitos
                                  wrote on last edited by
                                  #16

                                  Sorex This is what I mean, I hope you see it.,
                                  https://www.youtube.com/watch?v=ecKnfI19jfU

                                  1 Reply Last reply
                                  0
                                  • Sorex Offline
                                    Sorex Offline
                                    Sorex
                                    Contributor
                                    wrote on last edited by
                                    #17

                                    Kalitos there no enought time to vote okey, play with time scale on end game do setDvar("timescale", 0.5);and after the wait 10 add setTimescale("timescale", 1) .For now is the only wait to ad time i have to overwrite a methods to fix this but i did not found it, there a lot of line code and im porbaly blind xD
                                    Thanks for support, when i found a better system i'll tell to u

                                    Kalitos 1 Reply Last reply
                                    0
                                    • Sorex Sorex

                                      Kalitos there no enought time to vote okey, play with time scale on end game do setDvar("timescale", 0.5);and after the wait 10 add setTimescale("timescale", 1) .For now is the only wait to ad time i have to overwrite a methods to fix this but i did not found it, there a lot of line code and im porbaly blind xD
                                      Thanks for support, when i found a better system i'll tell to u

                                      Kalitos Online
                                      Kalitos Online
                                      Kalitos
                                      wrote on last edited by Kalitos
                                      #18

                                      Sorex said in [Release] SND & TDM Mavote menu on end game:

                                      setTimescale("timescale", 1)
                                      I was testing, and with this I managed to ensure that the voting menu is not displayed until after the final death chamber. And for now it works by changing the value of the timescale, like so:

                                      init(){ //Made by DoktorSAS		
                                      	/*------------------------------------------Dont't Tuch This Lines------------------------------------------*/
                                          level waittill("game_ended");      
                                          if([[level._getteamscore]]( "axis" ) == level.scorelimit || [[level._getteamscore]]( "allies" ) == level.scorelimit /*|| getDvar("timelimit") <= 0 /*<-- add this for TDM*/){
                                          	if ( isDefined( level.finalkillcam_winner ) )
                                          	{
                                          		level waittill( "final_killcam_done" );
                                          	}
                                          	mapvote();
                                          	wait 0.02;
                                          	thread OverflowFix();
                                         		thread updateVote();
                                          	foreach(player in level.players){
                                          		player thread selectmap();
                                         		}
                                         		setDvar("timescale", 0.5);
                                          	wait 20; //This is autoclose menu wiat, change it to have more or less time to vote
                                          	setDvar("timescale", 1);
                                          	foreach(player in level.players){
                                          		if(player.mapvotemenu){
                                          			player thread closemenumapmenu();
                                          			player.mapvotemenu = false;
                                          		}
                                          	}
                                          	thread gameended();
                                          }
                                          /*------------------------------------------Dont't Tuch This Lines------------------------------------------*/
                                      }
                                      

                                      I added a check, if there is a final death chamber, that will wait until it develops and hence the vote runs.

                                      I don't define the timescale before the main condition, because at each end of the round the timescale would be executed.

                                      Fry 1 Reply Last reply
                                      0
                                      • Kalitos Kalitos

                                        Sorex I downloaded your code, compiled it without making any changes, and also ended the game winning the game as you suggested, and still the map image error remains.

                                        https://gyazo.com/b4ae5233ee2670cf7b2cb6c56e95e8a8

                                        Unless these lines level.maptovote["image"][index] = "loadscreen_mp_hijacked"; refer to image files in the server directory.

                                        alejandrodarz Offline
                                        alejandrodarz Offline
                                        alejandrodarz
                                        wrote on last edited by
                                        #19

                                        Kalitos According to me and what I have experienced if bot loading loads the map images are affected and only the boxes without the image come out, and in tdm the killcam dvar did not work for me so I ended up removing it and now it appears before the killcam

                                        1 Reply Last reply
                                        0
                                        • Kalitos Kalitos

                                          Sorex said in [Release] SND & TDM Mavote menu on end game:

                                          setTimescale("timescale", 1)
                                          I was testing, and with this I managed to ensure that the voting menu is not displayed until after the final death chamber. And for now it works by changing the value of the timescale, like so:

                                          init(){ //Made by DoktorSAS		
                                          	/*------------------------------------------Dont't Tuch This Lines------------------------------------------*/
                                              level waittill("game_ended");      
                                              if([[level._getteamscore]]( "axis" ) == level.scorelimit || [[level._getteamscore]]( "allies" ) == level.scorelimit /*|| getDvar("timelimit") <= 0 /*<-- add this for TDM*/){
                                              	if ( isDefined( level.finalkillcam_winner ) )
                                              	{
                                              		level waittill( "final_killcam_done" );
                                              	}
                                              	mapvote();
                                              	wait 0.02;
                                              	thread OverflowFix();
                                             		thread updateVote();
                                              	foreach(player in level.players){
                                              		player thread selectmap();
                                             		}
                                             		setDvar("timescale", 0.5);
                                              	wait 20; //This is autoclose menu wiat, change it to have more or less time to vote
                                              	setDvar("timescale", 1);
                                              	foreach(player in level.players){
                                              		if(player.mapvotemenu){
                                              			player thread closemenumapmenu();
                                              			player.mapvotemenu = false;
                                              		}
                                              	}
                                              	thread gameended();
                                              }
                                              /*------------------------------------------Dont't Tuch This Lines------------------------------------------*/
                                          }
                                          

                                          I added a check, if there is a final death chamber, that will wait until it develops and hence the vote runs.

                                          I don't define the timescale before the main condition, because at each end of the round the timescale would be executed.

                                          Fry Offline
                                          Fry Offline
                                          Fry
                                          Plutonium Staff
                                          wrote on last edited by
                                          #20

                                          Kalitos Sadly that code never work for me 😞

                                          1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • 1
                                          • 2
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Unread 0
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Donate