Welcome to Tactical Gamer

User Tag List

Results 1 to 6 of 6
Discussion: Natural Selection / Natural Selection - General Discussion - Pug Plugin - Hate to hijack a thread, but I have sent a few PMs and gotten no
  1. #1

    micr0c0sm's Avatar

    Join Date
    Mar 2004
    Posts
    819
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Pug Plugin

    Hate to hijack a thread, but I have sent a few PMs and gotten no reply - does anyone know where I could get the .sma for the captains plugin, I want to dissect it to get some work done on a new pugging plugin that people are interested in. Here is a rough outline of how I want it to work:

    Code:
    /*****************************************************
     Captains v0.1					  2008
     by micr0c0sm
    
      $startpug // internal command
    	readyrooms everyone
    	disables jointeamone, jointeamtwo
    	enables tournament mode
      .j[oin] // any player
    	calls $startpug if it hasn't been
    	join the players list
      .c[aptain] // any player
    	calls $startpug if it hasn't been
    	volunteer as captain
    	when 2 are captain, calls .pick
      .p[ick] // captain only
    	picks random second captain
    	mapstyle choosing of players
    	when 12 are chosen, runs $ok
      .r[andom] // 5 person vote
    	autoassigns captains
    	autoassigns teams
    	calls $ok
      $ok 	// 5 person vote
    	if teams are bad, amx_readyroomall
    	if teams are ok, start 10 minute ready timer
    	  only captains can type ready
      .n[ote] something // captain only
    	assign a note to someone on your team
      .n[ote] something // any player
    	assign a note to yourself
      .s[how] // any player
    	shows all notes
    *****************************************************/

  2.  
  3. #2

    blu.knight's Avatar

    Join Date
    Jun 2006
    Posts
    571
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Pug Plugin

    I wrote my own plugin for captains, if you're interested.

    It handles the picking stuff, but doesn't have notes.

  4.  
  5. #3

    micr0c0sm's Avatar

    Join Date
    Mar 2004
    Posts
    819
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Pug Plugin

    I would love to see someone else's code on this blu.knight!

    So far i have join/leave, captain/uncaptain, and auto working, and some of the team choosing. The code is a mess but it works.
    Code:
    /*****************************************************
     Captains v0.1					  2008
     by micr0c0sm
    
      $startpug // internal command
    	readyrooms everyone
    	disables jointeamone, jointeamtwo
    	enables tournament mode
            sends steam community event
      .join | .leave // any player
    	calls $startpug if it hasn't been
    	joins / leaves the pugger list
      .captain | .uncaptain // any player
    	calls $startpug if it hasn't been
    	(un)volunteer as captain
    	when 2 are captain, calls .auto
      .auto // any pugger
    	fills out captains randomly
    	mapstyle choosing of players
            starts 10 minute ready timer
      .random // 5 person vote
    	randoms captains
    	randoms teams
    	if teams are bad, amx_readyroomall
           runs $startround
      $startround
            start 10 minute ready timer
            only captains can type ready (calls $on_ready)
            .note [player] something
    	    assign yourself a note
                assign player a note // captain only
            .show // any player
    	    shows all notes
      $on_ready
            on player_leave, enables jointeam[one,two]
            on jointeam[one,two], adds player to pug in correct slot
            on round_end, disables jointeam[one,two]
            switches teams
            if any team is missing a player, enables jointeam[one,two]
    *****************************************************/

  6.  

     
  7. #4

    Pokerface's Avatar

    Join Date
    May 2003
    Location
    MD, USA
    Age
    35
    Posts
    5,010
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pug Plugin

    I've alerted Wyz to this thread.

    NS Game Officer. TF2 Admin. BF2 Admin / Scripter. PM with issues.
    Tempus: Pokerface is nailing it right on the head. Everyone who is arguing against him is simply arguing against reality.
    <anmuzi> it is not permitted to have privacy or anonymity
    <LazyEye> yeah when I play on TG the server digs though my trash

    Arm yourself with knowledge: TG NS TF2 BF2

  8.  
  9. #5

    blu.knight's Avatar

    Join Date
    Jun 2006
    Posts
    571
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Pug Plugin

    Quote Originally Posted by micr0c0sm View Post
    I would love to see someone else's code on this blu.knight!

    So far i have join/leave, captain/uncaptain, and auto working, and some of the team choosing. The code is a mess but it works.
    I don't know if I sent this to Wyz way back when, i may have...

    If I did, Wyz, could you post it?

  10.  
  11. #6

    Wyzcrak's Avatar

    Join Date
    May 2003
    Location
    Memphis, TN
    Posts
    15,364
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

    Re: Pug Plugin

    My apologies for not sharing this sooner. This code is very recent, if not the most recent.

    http://pastebin.com/f335277a5

    P.S. Look for me in L4D.
    Steam Community? Add me. | Free Remote, Encrypted Backup

    Darkilla: In short, NS is pretty much really fast chess. With guns. Apophis: I haven't seen anyone say that SM's are better than non-SMs. Nordbomber: This is THE first server I've seen where either side can comeback from out of seemingly nowhere with the right teamwork. en4rcment: I have NEVER experienced the type of gameplay that I have found here. Nightly I am amazed at the personalities and gaming talent. Zephyr: Apophis is clearly a highly sophisticated self-aware AI construct that runs on a highly modified toaster oven in Wyzcrak's basement.

  12.  

     

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
  •  


  
 

Back to top