Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/g/e/ges-python-HEAD/Ai/bot_deathmatch.py   ges-python(Download)
 
        # Ammo Checks
        currWeap = self.GetActiveWeapon()
        assert isinstance( currWeap, GEWeapon.CGEWeapon )
        if currWeap and not currWeap.IsMeleeWeapon() and currWeap.GetWeaponId() != Glb.WEAPON_MOONRAKER:
            memory.DumpMemories()
        elif cmd == "dump_weapon":
            weap = self.GetActiveWeapon()
            assert isinstance( weap, GEWeapon.CGEWeapon )
            if weap is not None:
    def bot_WeaponParamCallback( self ):
        curr_weap = self.GetActiveWeapon()
        if curr_weap and curr_weap.IsExplosiveWeapon() and self.HasCondition( Cond.TOO_CLOSE_TO_ATTACK ):
            return { "explosive_bonus" :-5, }
        else: