³ò
 ýìNc           @   s`   d  Z  d d k l Z d d k l Z d d k l Z d d k l Z d e f d „  ƒ  YZ	 d S(	   sj   
$Rev: 597 $
$LastChangedBy: satoon101 $
$LastChangedDate: 2011-12-13 13:43:43 -0500 (Tue, 13 Dec 2011) $
iÿÿÿÿ(   t   isbot(   t	   getPlayer(   t   Player(   t   PlayerCountdownt
   BasePlayerc           B   s5   e  Z d  Z d „  Z d „  Z h  d „ Z d „  Z RS(   s-   Class used to interact with a specific playerc         C   s1   | |  _  t |  i  ƒ |  _ t |  i  ƒ |  _ d S(   s*   Called when the class is first initializedN(   t   useridR   t	   gg_playerR    (   t   selfR   (    (    sq   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/scripts/included/gg_deathmatch/modules/player.pyt   __init__    s    	c         C   sD   t  |  i ƒ i p d Sn |  i i d j  o d Sn |  i ƒ  d S(   s&   Called when DeathMatch is first loadedNi   (   R   R   t   isdeadR   t   teamt   start_repeat(   R   (    (    sq   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/scripts/included/gg_deathmatch/modules/player.pyt	   dm_loaded(   s
    c         C   s%   |  i  p |  i i | | ƒ n d S(   s7   Checks if a player is a bot, and sends a hudhint if notN(   R    R   t   hudhint(   R   t   messaget   tokens(    (    sq   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/scripts/included/gg_deathmatch/modules/player.pyt   send_hudhint:   s    
c         C   s¨   t  | ƒ d j p t Sn | d i ƒ  d j oM t | d ƒ d j o6 |  i i d j o |  i ƒ  |  i d ƒ n t Sn | d i ƒ  d j o |  i ƒ  n t S(   s=   Checks to see if the player needs spawned when joining a teami   i    t   jointeamt   RespawnCountdown_CancelTeamt	   joinclass(	   t   lent   Truet   lowert   intt   repeatt   statust   stop_repeatR   R   (   R   t   args(    (    sq   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/scripts/included/gg_deathmatch/modules/player.pyt   check_join_teamC   s    .
(   t   __name__t
   __module__t   __doc__R   R   R   R   (    (    (    sq   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/scripts/included/gg_deathmatch/modules/player.pyR      s
   			N(
   R   t   esR    t	   playerlibR   t    gungame51.core.players.shortcutsR   t	   countdownR   R   (    (    (    sq   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/scripts/included/gg_deathmatch/modules/player.pys   <module>   s
   