Пример #1
0
 def testGetmaxplayers(self):
     j = es.getmaxplayercount()
     self.failUnless(j)
     # in CS:S we know the max players is cs_team_manager index -1 
     if es.getgame() == "Counter-Strike: Source":
       q = es.getentityindex('cs_team_manager') - 1
       if q:
         self.failUnless(q==j)
Пример #2
0
 def testGetmaxplayers(self):
     j = es.getmaxplayercount()
     self.failUnless(j)
     # in CS:S we know the max players is cs_team_manager index -1
     if es.getgame() == "Counter-Strike: Source":
         q = es.getentityindex('cs_team_manager') - 1
         if q:
             self.failUnless(q == j)
Пример #3
0
def siteCheck():
    bombsitesNum.clear()
    managerindex = es.getentityindex('cs_player_manager')
    if managerindex > 0:
        index = getSiteIndex(vecmath.vector(es.getindexprop(managerindex, 'CCSPlayerResource.m_bombsiteCenterA')))
        if index:
            bombsitesNum['A'] = index
        index = getSiteIndex(vecmath.vector(es.getindexprop(managerindex, 'CCSPlayerResource.m_bombsiteCenterB')))
        if index:
            bombsitesNum['B'] = index
Пример #4
0
def siteCheck():
    bombsitesNum.clear()
    managerindex = es.getentityindex('cs_player_manager')
    if managerindex > 0:
        index = getSiteIndex(
            vecmath.vector(
                es.getindexprop(managerindex,
                                'CCSPlayerResource.m_bombsiteCenterA')))
        if index:
            bombsitesNum['A'] = index
        index = getSiteIndex(
            vecmath.vector(
                es.getindexprop(managerindex,
                                'CCSPlayerResource.m_bombsiteCenterB')))
        if index:
            bombsitesNum['B'] = index
Пример #5
0
def getentityindex(argv):
    sv[argv[0]] = es.getentityindex(*argv[1:])
Пример #6
0
def func_entityindex(args):
    temp = '0'
    temp = str(es.getentityindex(args[0]))
    return temp
Пример #7
0
def func_entityindex(args):
    temp = '0'
    temp = str(es.getentityindex(args[0]))
    return temp
Пример #8
0
def getentityindex(argv):
  sv[argv[0]] = es.getentityindex(*argv[1:])