AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D] Score/Team Manager 1.1.1 (https://forums.alliedmods.net/showthread.php?t=87759)

Downtown1 03-16-2009 03:02

[L4D] Score/Team Manager 1.1.1
 
2 Attachment(s)
L4D Score/Team Manager 1.1.1

Now there is an easy way to manage the teams (who is on what teams), and the order that teams are played in.

This plugin provides functionality to:
  • unscramble the teams after a map change
  • change the order of which team goes survivor first
  • swap players around to a different team
  • swap an entire team with the other team
  • see the scores for previous levels and campaign scores at any time
  • swap or reset the campaign scores

Commands
Admin (BAN flag):
  • sm_swapmenu - bring up a menu to swap players between survivors or infected
  • sm_swap <player1> [player2] ... [playerN] - swap all listed players to opposite teams
  • sm_swapto <player1> [player2] ... [playerN] <teamnum> - swap all listed players to specified team (1,2,3)
  • sm_swapteams - swaps the infected and survivor teams
  • sm_swapscores - swaps the campaign scores
  • sm_resetscores - resets the campaign scores to 0/0

Anyone:
  • sm_printscores - prints the scores for each previously played map, and the campaign scores
  • sm_scores - displays the total scores for each map for both teams in a menu similar to sm_admin

Cvars
  • l4d_team_manager_ver - the version of this plugin
  • l4d_team_order - who goes survivor first after a map change?
    • 0 - default behaviour (highest score goes survivor first)
    • 1 - inverse default behaviour (highest score goes infected first)
    • 2 - classic behavior (teams are never swapped)
    • 3 - ABABA (teams are swapped every map)
    • 4 - AABBB (teams are swapped on 3rd map, ala CAL)
    • 5 - maps 1-4 highest goes survivor, 5 highest goes infected first
l4d_team_order 5 appears to be broken atm, I suggest avoiding it. Usually the highest score goes survivor first, which means that if the winning team from maps 1-4 wins the first round on the finale, the game is now over. Whatever the other team does, it doesn't matter because they already lost.

By having the losing team go survivor first on the finale, this will keep the full game going because they still can win the finale as survivors, and then have the potential to stop the other team as infected.

INSTALLATION
Note: This plugin is probably incompatible with any other plugins that changes a player's team at the beginning of the map, so you should probably avoid using those other plugins. I was using Unscrambler myself during the testing of this and found that it would almost completely reverse my team changes every time.

CUSTOM MENU
There is a menu invoked with sm_swapmenu, but it may not suit everyone. You can additional use this snippet, the full instructions are here:
http://wiki.alliedmods.net/Dynamic_A...nu_(SourceMod)
Code:

"Commands"
{
        "Left 4 Dead"
        {
                "Swap Player"
                {
                        "cmd"                "sm_swap #1"
                        "execute"        "player"
                        "1"
                        {
                                "type"                "teamplayer"
                                "method"        "name"
                                "title"                "Player:"
                        }
                }
        }
}

CHANGELOG
  • 1.1.1
    • bugfix: 06/25/2009 L4D update breaks GetCampaignScores which is used to detect when a new campaign has started
    • dependency: update to Left4Downtown Extension 0.3.1+ to fix the above problem
  • 1.1.0
    • command: sm_swapto - swap players to a specific team
    • command: sm_swapmenu - bring up a menu to swap players to opposite team
    • command: sm_scores - bring up the team round/campaign scores in a menu display
    • bugfix: campaign scores will reset properly (i.e. on a manual changelevel), score should no longer carry over from previous campaigns
    • bugfix: clients will no longer be infinitely moved back to spectate when their automatic team placement fails
    • bugfix: support teams larger than 4 by checking the survivor_limit and z_max_player_zombies cvars
    • bugfix: when round is restarted using l4dready plugin, the team score will no longer reset (l4dready 0.16.2 or later necessary)
  • 1.0.3
    • feature: added 'highest score goes survivor first, except on finale' to use this set the cvar l4d_team_order 5
  • 1.0.2
    • bugfix: sm_swap wouldn't work with more than 1 player due to a typo
  • 1.0.1
    • command: sm_swap now takes an unlimited number of players (i.e. "sm_swap joe bob fred smith" will swap them all to opposite teams)
    • bugfix: improve detection when the game automatically swaps teams
  • 1.0.0 - Initial release

Views:
1.0.3 - 534
1.1.0 - 272

L4D2 stable release by AtomicStryker is available at http://forums.alliedmods.net/showthread.php?t=113188
The .SP file will fail to compile using the web compiler, download the .SMX file instead.

Felycity 03-16-2009 09:06

Re: [L4D] Score/Team Manager
 
hello, i tried this plugin just now. :)
but almost 50%, this plugin doesn't work... :cry:
this is summary of 1 campaign.

chapter 1 ... failed
chapter 2 ... succeced
chapter 3 ... succeced
chapter 4 ... succeced
chapter 5 ... failed

every failed time, full of team players was different team.
here is demo files.
password "l4dscores"
if this one helpful for fix this problem, im happy. :)

thanks for great plugin.

santaclaus 03-16-2009 13:24

Re: [L4D] Score/Team Manager
 
sm_swapsscores lol :D isn't that a bit tricky ...

I hope some admin won't use it with evil though :D

Downtown1 03-16-2009 16:30

Re: [L4D] Score/Team Manager
 
Quote:

Originally Posted by Felycity (Post 781796)
hello, i tried this plugin just now. :)
but almost 50%, this plugin doesn't work... :cry:
this is summary of 1 campaign.

chapter 1 ... failed
chapter 2 ... succeced
chapter 3 ... succeced
chapter 4 ... succeced
chapter 5 ... failed

every failed time, full of team players was different team.
here is demo files.
password "l4dscores"
if this one helpful for fix this problem, im happy. :)

thanks for great plugin.

Can you please let me know what your l4d_team_order was, and also if you were running any other plugins that would change people's teams?

Number Six 03-16-2009 16:33

Re: [L4D] Score/Team Manager
 
-menu in sourcemod incorpored , or all manuel console cvar ?

- second question ^^
http://forums.alliedmods.net/showthread.php?t=85994 l4d versus tools worked 90% , but a really bad bug again :

"and another thing - after survivors team finish (survive) 5th map of death toll or dead air, coming credits and map end, and the infected team cant play round cause of this.if survivor team dies, infected can play thier round. any ideas?"

Possibly integrated in your pluggin force swap team and turn round team on the 2 final map dead air and deathtrool with your plugin ?

Thank in advance for answers .

Downtown1 03-16-2009 17:16

Re: [L4D] Score/Team Manager
 
There are no menus right now, I am planning on adding a player swap menu for the next major version update however. I could also post a custom menu snippet that could be pasted into your custom menu files.

Felycity 03-16-2009 19:52

Re: [L4D] Score/Team Manager
 
Quote:

Originally Posted by Downtown1 (Post 782134)
Can you please let me know what your l4d_team_order was, and also if you were running any other plugins that would change people's teams?

l4d_team_order is,

Code:

l4d_team_order 0

im using plugin below.
  • advertisements.smx
  • country_filter.smx
  • hzombies.smx
  • L4DSafeRoomHunterGlitch.smx
  • l4dscores.smx
  • sm_l4dvs_mapchanger.smx
other than that, default plugin of SourceMOD 1.3.0-hg2665.

Downtown1 03-16-2009 20:07

Re: [L4D] Score/Team Manager
 
Quote:

Originally Posted by Felycity (Post 782293)
l4d_team_order is,

Code:

l4d_team_order 0

im using plugin below.
  • advertisements.smx
  • country_filter.smx
  • hzombies.smx
  • L4DSafeRoomHunterGlitch.smx
  • l4dscores.smx
  • sm_l4dvs_mapchanger.smx
other than that, default plugin of SourceMOD 1.3.0-hg2665.

I'll check it out, sm_l4dvs_mapchanger.smx looks like it might be suspicious because it seems to force a changelevel after 4 round_end events?

Also, how can the teams fail on the first map exactly? I am lost, my plugin doesn't "fix" teams on the first map at all because it doesn't save what teams to fix until the end of a map.

Felycity 03-16-2009 20:24

Re: [L4D] Score/Team Manager
 
Quote:

Originally Posted by Downtown1 (Post 782300)
I'll check it out, sm_l4dvs_mapchanger.smx looks like it might be suspicious because it seems to force a changelevel after 4 round_end events?

Also, how can the teams fail on the first map exactly? I am lost, my plugin doesn't "fix" teams on the first map at all because it doesn't save what teams to fix until the end of a map.

my explanation was wrong, im sorry XD

chapter 1 to 2 ... failed
chapter 2 to 3 ... succeced
chapter 3 to 4 ... succeced
chapter 4 to 5 ... failed

when failed, winning team didn't change to survivors first.
(that winning team was 2nd survivors at prev-chapter)

im using sm_l4dvs_mapchanger.smx only after chapter 5 for next campaign start automatically.
therefore, i think that plugin is not reason of this problem. :)

Downtown1 03-16-2009 21:11

Re: [L4D] Score/Team Manager
 
So what happened when it "failed" were the teams opposite of what they should have been? Or were they "scrambled?" Were the scores still correct?


All times are GMT -4. The time now is 03:02.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.