³ò
˜õÜNc           @€  sc   d  Z  d d k l Z d d k l Z d d k l Z d d k l Z d d k l	 Z	 d „  Z
 d S(	   sj   
$Rev: 588 $
$LastChangedBy: satoon101 $
$LastChangedDate: 2011-11-13 10:23:46 -0500 (Sun, 13 Nov 2011) $
iÿÿÿÿ(   t   with_statement(   t   path(   t   AddonCFG(   t   get_game_dir(   t   ConfigContextManagerc          C€  s	  t  t t ƒ i i d ƒ du d ƒ i }  i ƒ  } zÓ| ~ } | i d ƒ i } i ƒ  } zp | ~ } d | _ | i	 i
 d d ƒ | i	 i
 d d	 ƒ | i i
 d
 ƒ | i i
 d ƒ d | _ d | _ Wd  | ~ QX| i d ƒ i } i ƒ  } z@ | ~ } d | _ | i i
 d d ƒ d | _ d d | _ Wd  | ~ QX| i d ƒ i } i ƒ  }	 zä |	 ~	 } d | _ | i	 i
 d ƒ | i	 i
 d d ƒ | i i
 d d ƒ | i i
 d d ƒ | i i
 d d ƒ | i i
 d ƒ | i i
 d ƒ | i i
 d  ƒ | i i
 d! d" ƒ | i i
 d# d$ ƒ d% | _ d& d' | _ Wd  | ~ QX| i d( ƒ | i d) ƒ i }
 i ƒ  } z| | ~ } d* | _ | i i
 d+ d, ƒ | i	 i
 d- d. ƒ | i	 i
 d/ d0 d1 ƒ | i	 i
 d2 d3 ƒ d4 | _ d5 | _ Wd  |
 ~
 QX| i d6 ƒ i } i ƒ  } z€ | ~ } d7 | _ | i i
 d+ d8 ƒ | i	 i
 d- d. ƒ | i	 i
 d9 d: d; d< ƒ | i	 i
 d2 d3 ƒ d= | _ d> | _ Wd  | ~ QX| i d? ƒ | i d@ ƒ i } i ƒ  } z< | ~ } dA | _ | i i
 dB dC ƒ d | _ dD | _ Wd  | ~ QX| i dE ƒ i } i ƒ  } z8 | ~ } dF | _ | i i
 dG ƒ d | _ dH | _ Wd  | ~ QX| i dI ƒ i } i ƒ  } zp | ~ } dJ | _ | i i
 dK dL ƒ | i i
 dM ƒ | i i
 dN dO ƒ | i i
 dP ƒ d | _ dQ | _ Wd  | ~ QXWd  |  ~  QXt t dR ƒ ƒ } | i ƒ  pt | ƒ } | i dS dT dU ƒ | i dU i dV ƒ ƒ | i dW i dT ƒ dU ƒ | i dU i dV ƒ ƒ | i dX dY i dT ƒ dU ƒ | i dZ d[ i dT ƒ dU ƒ | i dU i dV ƒ ƒ | i d\ d] i dT ƒ dU ƒ | i d^ d_ i dT ƒ dU ƒ | i d` i dT ƒ dU ƒ | i dU i dV ƒ ƒ | i da db i dT ƒ dU ƒ | i dc i dT ƒ dU ƒ | i dd i dT ƒ dU ƒ | i de i dT ƒ dU ƒ | i dU i dV ƒ ƒ | i df dg i dT ƒ dU ƒ | i dh i dT ƒ dU ƒ | i dU i dV ƒ ƒ | i dS dT dU ƒ | i ƒ  n t t di ƒ ƒ } | i ƒ  p2t | ƒ } | i dS dT dU ƒ | i dU i dV ƒ ƒ | i dj i dT ƒ dU ƒ | i dU i dV ƒ ƒ | i dX dk i dT ƒ dU ƒ | i dl dm i dT ƒ dU ƒ | i dU i dV ƒ ƒ | i d\ d] i dT ƒ dU ƒ | i d^ d_ i dT ƒ dU ƒ | i d` i dT ƒ dU ƒ | i dU i dV ƒ ƒ | i da dn i dT ƒ dU ƒ | i do i dT ƒ dU ƒ | i dp i dT ƒ dU ƒ | i dU i dV ƒ ƒ | i df dq i dT ƒ dU ƒ | i dr i dT ƒ dU ƒ | i ds i dT ƒ dU ƒ | i dt i dT ƒ dU ƒ | i dU i dV ƒ ƒ | i dS dT dU ƒ | i ƒ  n d  S(v   Nt   scriptsi    i   t   gg_warmup_rounds   WARMUP ROUNDs   Players cannot s!   level up during the warmup round.s   Warmup round is triggered s    at the start of each map change.s   0 = Disabled.s   1 = Enabled.s    Enables or disables warmupround.t   gg_warmup_timers   WARMUP ROUND TIMERs   The amount of time (in s)   seconds) that the warmup round will last.i   s-   seconds) that the the warmup round will last.t   gg_warmup_weapons   WARMUP ROUND WEAPONs"   Only supports "weapon_*" entities.s   Warmup round is triggered at s   the start of each map change.s    awp   	scout	aug   	mac10s   	tmp   	mp5navy	ump45	p90s    galil	famas	ak47	sg552	s   sg550	g3sg1	m249	m3s    xm1014	m4a1	glock	usp   s   	p228	deagle	elite	fivesevens    hegrenade	knifet    s    0 = The first level weapons    weapon1,weapon2,weapon3 = For s+   each warmup, one of these weapons is chosens    #random = For s'   each warmup, a random weapon is chosen.t	   hegrenades   The weapon that players s!   will use during the warmup round.s!   WARMUP START AND END CFG SETTINGSt   gg_warmup_start_files   WARMUP ROUND START CFG FILEs   Set to the .cfg s-   file to be executed when Warmup Round starts.s    The cfg file should contain the s3   GunGame values you wish to use for the current map.s)   Make sure to turn off addons that should s6   not be used during Warmup Round "prior" to turning on s3   any addons that should be used during Warmup Round.s   The path to the file "must" s-   be relative to the "../cfg/gungame51/" folders1   included_addon_configs/warmup_round_start_defaults1   CFG file to be executed when Warmup Round starts.t   gg_warmup_end_files   WARMUP ROUND END CFG FILEs+   file to be executed when Warmup Round ends.s&   Make sure to turn off any addons that s5   were used during Warmup Round and are not needed for s4   the current match, "prior" to turning on any addons s&   that are needed for the current match.s/   included_addon_configs/warmup_round_end_defaults/   CFG file to be executed when Warmup Round ends.s   WARMUP ROUND EXTENSION SETTINGSt   gg_warmup_round_min_playerss   MINUMUM HUMAN PLAYERSs   Set to the minimum s1   number of players needed for Warmup Round to end.s7   Number of human players needed for Warmup Round to end.t   gg_warmup_round_max_extensionss   MAX EXTENSIONSsD   Number of extensions allowed before Warmup Round automatically ends.s>   Maximum number of extensions allowed before Warmup Round ends.t   gg_warmup_round_players_reacheds   MIN HUMAN PLAYERS REACHEDs.   Determines whether or not to end Warmup Round s4   when the minimum number of players has been reached.s7   0 = Never end Warmup as soon as min players is reached.s   1 = Only end Warmup s2   if in "extended" time when min players is reached.s7   2 = End Warmup Round as soon as min players is reached.s7   Allows Warmup Round to end when min players is reached.sC   cfg/gungame51/included_addon_configs/warmup_round_start_default.cfgt   -iJ   s   //iL   s   warmup_round_start_default.cfgs$   This is the default file (using the s   value of gg_warmup_start_file)s   used to determine the gameplay s   "during" Warmup Rounds$   As an example, if the server should s    have gg_deathmatch during Warmups"   and gg_elimination, gg_turbo, and s!   gg_teamwork for the actual match,s*   the contents could look like the followings    // Turn off any addons that s   should not be ran during warmups    gg_elimination 0s    gg_turbo 0s    gg_teamwork 0s    // Turn on any addons that s   should be ran during warmups    gg_deathmatch 1sA   cfg/gungame51/included_addon_configs/warmup_round_end_default.cfgs   warmup_round_end_default.cfgs   value of gg_warmup_end_file)s!   used to change the gameplay from s   Warmup to the actual matchs   were ran during warmup,s)    //   but need to be off during the matchs    gg_deathmatch 0s   should be ran for the matchs    gg_elimination 1s    gg_turbo 1s    gg_teamwork 1iÿÿÿÿ(   R   R   t   __file__t   parentt   splitt   __exit__t	   __enter__t   cfg_cvart   namet   notest   appendt   optionst   defaultt   textt   cfg_sectiont   descriptionR   t   isfileR   t   rjustt   centert   ljustt   write(   t   _[1]t   _[2]t   configt   _[3]t   _[4]t   cvart   _[5]t   _[6]t   _[7]t   _[8]t   _[9]t   _[10]t   _[11]t   _[12]t   _[13]t   _[14]t   _[15]t   _[16]t   _[17]t   _[18]t
   start_patht   startt   end_patht   end(    (    s{   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/scripts/included/gg_warmup_round/gg_warmup_round_config.pyt   load   s:   <(		(		(		(			(			(		(		(					!												N(   t   __doc__t
   __future__R    R   t   cfglibR   t   gungame51.coreR   t   gungame51.core.cfg.configsR   R<   (    (    (    s{   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/scripts/included/gg_warmup_round/gg_warmup_round_config.pys   <module>   s   