Results 1 to 5 of 5
  1. #1
    Banned
    Join Date
    Nov 2009
    Posts
    42

    Default Team Deathmatch modification

    I have a few questions for my little team deathmatch modification:

    1) How can i make each team have different player models? For example: Team Red will use Model Red A, B and C. And Team Blue will use Model Blue D, E, F.

    2) How can i make each team have a different weapon set?

    3) How can i make different weapon pickups appear for each team?

  2. #2
    Boomshot
    Join Date
    Oct 2007
    Posts
    2,300
    Gamer IDs

    Gamertag: Fr0z3nB0nes

    Default

    1) You could use the team.index variable in (controller me thinks) to find the team number. Then use if, else statements to chnage the SkeletalMesh = property in the Pawn class. That could be done by gametype, controller etc.

    2) Similar except you would use give inventory. I'm not sure about picking weapons up but you could perhaps compare whether they are the right team, and if not destroy the weapon etc.

    3) Dunno

  3. #3
    MSgt. Shooter Person
    Join Date
    Nov 2009
    Posts
    171
    Gamer IDs

    Gamertag: xXTheSpaceManXx

    Default

    for different weapon pickups you need to poke around in the render and collision code.
    There you could do checks if the current player is in team 1 or 2 and if the weapon is for team 1 or 2 if they don't match you skip the render collision code. Else you execute it as usual.

  4. #4
    Banned
    Join Date
    Nov 2009
    Posts
    42

    Default

    Thank you all.

  5. #5
    Administrator
    Join Date
    Jun 2006
    Posts
    272

    Default

    1). In your GameInfo class, you should override GameInfo.GetDefaultPlayerClass() to change the pawn class based on the team.
    2). Override GameInfo.AddDefaultInventory().
    3). Use SetHidden() to control whether a pickup is made visible based on the team of the local playercontroller. You'll probably want to override PickupFactory.SetPickupHidden() and SetPickupVisible().


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.