Announcement

Collapse
No announcement yet.

Team Select in Blue Prints for Multiplayer

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    [TUTORIAL] Team Select in Blue Prints for Multiplayer

    There have been some questions and requests for help with making team select in a multiplayer game. I've decided since I'm rewriting my code for Ultraball (http://www.ultraballgame.com vote for my greenlight soon!) to go over how I accomplish this in an example project that is all blue prints.

    Ultimately we want to stream line all players to funnel into a dedicated server much like team fortress where you pick a team and join it. No lobby needed.

    In this example project we are going to do the following.

    1. Create team spawn points and spectator spawn point
    2. By default you join as spectator
    3. We use a custom spectator class because true spectator cannot cast to game mode as they are not considered a player.
    4. We will keep our widgets on PC because we don't want to lose access to them when changing classes of pawn
    5. We will also have the game mode keep track of player starts so we don't spawn on top of each other by going through a list.
    6. We will have a chance team bind on PC so we can access it even when we have destroyed our character
    7. We will use various built in overrides and built in functions to keep this simple.

    Download Link:
    https://www.dropbox.com/s/mwxou75euu...elect.zip?dl=0
    or
    http://www.ultraballgame.com/downloads/TeamSelect.zip

    I didn't parse out the starter content that was not used so its 671Megs UE4 v4.15.0

    I'll be making a video explaining the building of this system soon enough.

    Click image for larger version

Name:	2017-03-23_23-50-28.png
Views:	1
Size:	187.8 KB
ID:	1213656
    Click image for larger version

Name:	2017-03-23_23-53-10.png
Views:	1
Size:	299.2 KB
ID:	1213657
    Click image for larger version

Name:	2017-03-23_23-57-36.png
Views:	1
Size:	248.2 KB
ID:	1213658
    Click image for larger version

Name:	2017-03-23_23-58-26.png
Views:	1
Size:	276.5 KB
ID:	1213659

    Included:
    1. Team Spawns for team players adjustable by a simple enumeration var.
    2. Replicated Health Bars over players
    3. Damage by world placed object on overlap.
    4. Regeneration of health by pickup in world.
    5. Use of blur in UMG.
    6. Skin Change based on Team when possessing Character
    7. Use of Spawn Points through array to ensure players do not spawn in the same place.
    8. Override use in game mode for Choose/Select Player Start.
    9. Override use in game mode for Choose Default Pawn
    10. Use of RestartPlayer to make it all possible.
    Attached Files
    Last edited by Inph1del; 03-24-2017, 08:28 AM. Reason: Updated link and info.
    Inphidel / Brian - Developer of Ultraball
    http://www.ultraballgame.com

    Don't shy away from bugs in your game. Don't play it as intended. Break your game so you can fix it!

    #2
    Amzaing!!!

    thank you very much!

    Comment


      #3
      No problem. I'm gonna throw in a few more things to this to complete it.

      1. Flag
      2. Capture point for flag
      3. Umg representation of captures per team.
      4. Player drops flag when dead or disconnects.
      5. Simple line trace "gun"
      6. Grenade damage.
      7. Player stats for kills and captures.

      This way someone could take the base project and fly with it as an example of a working ctf game.
      Inphidel / Brian - Developer of Ultraball
      http://www.ultraballgame.com

      Don't shy away from bugs in your game. Don't play it as intended. Break your game so you can fix it!

      Comment


        #4
        Thanks, glad some ppl are getting done use out of it.

        Working on the new version adding some things.

        Just my way of paying it forward on everything I've learned in the last year of becoming an indie dev myself.

        Ps managed to cut out unneeded assists in what I'm doing to less then 200 Megs soon enough time allotted it'll have aim offset using animation starter pack. And ctf assets, widget based score board for team caps, players kills deaths caps sorting.

        Not that we need more ctf ganes made but the fundamentals of creating these assets was hard for me to come by.
        Inphidel / Brian - Developer of Ultraball
        http://www.ultraballgame.com

        Don't shy away from bugs in your game. Don't play it as intended. Break your game so you can fix it!

        Comment


          #5
          https://www.dropbox.com/s/bk9sjdveuj...t-CTF.zip?dl=0

          I'm unfortunately not having time to continue the project, but this includes capturing the flag picking itup, dropping it on death and a little grenede shooter that will kill yourself and other players.

          Grenade launcher shoots further the longer you hold the button due to a timer.

          Last edited by Inph1del; 05-24-2017, 09:05 AM. Reason: add vid clip
          Inphidel / Brian - Developer of Ultraball
          http://www.ultraballgame.com

          Don't shy away from bugs in your game. Don't play it as intended. Break your game so you can fix it!

          Comment


            #6
            thanks!!! and if possible make a tutorial of this project

            Comment


              #7
              I wish I had the time mate, busy with my project been over a year need to get the alpha out
              Inphidel / Brian - Developer of Ultraball
              http://www.ultraballgame.com

              Don't shy away from bugs in your game. Don't play it as intended. Break your game so you can fix it!

              Comment


                #8
                thx for sharing this!

                Comment


                  #9
                  is this game still in dev?

                  Comment

                  Working...
                  X